mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
restructured things a little bit
This commit is contained in:
@@ -1,16 +1,21 @@
|
|||||||
#
|
#
|
||||||
# Base ROS Indigo
|
# Base ROS Indigo
|
||||||
#
|
#
|
||||||
|
# TODO
|
||||||
|
# - use https://github.com/phusion/baseimage-docker as base
|
||||||
|
# - add user, best synced with host
|
||||||
|
# - configure ssh to work with vagrant out of the box
|
||||||
|
#
|
||||||
|
|
||||||
FROM ubuntu:14.04.1
|
FROM ubuntu:14.04.1
|
||||||
MAINTAINER Andreas Antener "andreas@antener.name"
|
MAINTAINER Andreas Antener "andreas@uaventure.com"
|
||||||
|
|
||||||
# Install basics
|
# Install basics
|
||||||
## Use the "noninteractive" debconf frontend
|
## Use the "noninteractive" debconf frontend
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install wget git mercurial openssh-server
|
&& apt-get -y install wget git mercurial
|
||||||
|
|
||||||
# Main ROS Setup
|
# Main ROS Setup
|
||||||
# Following http://wiki.ros.org/indigo/Installation/Ubuntu
|
# Following http://wiki.ros.org/indigo/Installation/Ubuntu
|
||||||
@@ -42,13 +47,16 @@ RUN apt-get -y install ros-indigo-octomap-msgs
|
|||||||
# && apt-get update \
|
# && apt-get update \
|
||||||
# && apt-get -y install drcsim
|
# && apt-get -y install drcsim
|
||||||
|
|
||||||
# some QT-Apps/Gazebo don't not show controls without this
|
|
||||||
ENV QT_X11_NO_MITSHM 1
|
|
||||||
|
|
||||||
#RUN apt-get install -y openssh-server
|
|
||||||
# Install x11-utils to get xdpyinfo, for X11 display debugging
|
# Install x11-utils to get xdpyinfo, for X11 display debugging
|
||||||
# mesa-utils provides glxinfo, handy for understanding the 3D support.
|
# mesa-utils provides glxinfo, handy for understanding the 3D support.
|
||||||
#RUN apt-get -y install x11-utils
|
#RUN apt-get -y install x11-utils
|
||||||
#RUN apt-get -y install mesa-utils
|
#RUN apt-get -y install mesa-utils
|
||||||
|
|
||||||
#CMD ["/bin/sbin/sshd", "-D"]
|
# Some QT-Apps/Gazebo don't not show controls without this
|
||||||
|
ENV QT_X11_NO_MITSHM 1
|
||||||
|
|
||||||
|
COPY scripts/setup-workspace.sh ~/
|
||||||
|
RUN chmod +x ~/setup-workspace.sh
|
||||||
|
|
||||||
|
|
||||||
|
CMD ["/usr/bin/xterm"]
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
#
|
|
||||||
# PX4 ROS SITL
|
|
||||||
#
|
|
||||||
|
|
||||||
FROM px4ros/ros-base:no-drcsim
|
|
||||||
MAINTAINER Andreas Antener "andreas@antener.name"
|
|
||||||
|
|
||||||
# TODO
|
|
||||||
#USER px4
|
|
||||||
|
|
||||||
RUN . /opt/ros/indigo/setup.sh \
|
|
||||||
&& mkdir -p /catkin_ws/src \
|
|
||||||
&& cd /catkin_ws/src \
|
|
||||||
&& catkin_init_workspace \
|
|
||||||
&& cd /catkin_ws \
|
|
||||||
&& catkin_make \
|
|
||||||
&& echo "source /catkin_ws/devel/setup.bash" >> ~/.bashrc
|
|
||||||
|
|
||||||
COPY get-sources.sh /catkin_ws/src/
|
|
||||||
RUN chmod +x /catkin_ws/src/get-sources.sh
|
|
||||||
|
|
||||||
CMD /bin/bash
|
|
||||||
+20
-5
@@ -1,28 +1,43 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Fetch source repositories
|
# Create workspace at current location and fetch source repositories
|
||||||
#
|
#
|
||||||
|
|
||||||
|
WDIR=`pwd`
|
||||||
|
WORKSPACE=$WDIR/catkin_ws
|
||||||
|
|
||||||
|
# Setup workspace
|
||||||
|
mkdir -p $WORKSPACE/src
|
||||||
|
cd $WORKSPACE/src
|
||||||
|
catkin_init_workspace
|
||||||
|
cd $WORKSPACE
|
||||||
|
catkin_make
|
||||||
|
echo "source $WORKSPACE/devel/setup.bash" >> ~/.bashrc
|
||||||
|
|
||||||
# PX4 Firmware
|
# PX4 Firmware
|
||||||
|
cd $WORKSPACE/src
|
||||||
git clone https://github.com/PX4/Firmware.git \
|
git clone https://github.com/PX4/Firmware.git \
|
||||||
&& cd Firmware \
|
&& cd Firmware \
|
||||||
&& git checkout ros \
|
&& git checkout ros
|
||||||
&& cd ..
|
|
||||||
|
|
||||||
# euroc simulator
|
# euroc simulator
|
||||||
|
cd $WORKSPACE/src
|
||||||
git clone https://github.com/PX4/euroc_simulator.git \
|
git clone https://github.com/PX4/euroc_simulator.git \
|
||||||
&& cd euroc_simulator \
|
&& cd euroc_simulator \
|
||||||
&& git checkout px4_nodes \
|
&& git checkout px4_nodes
|
||||||
&& cd ..
|
|
||||||
|
|
||||||
# mav comm
|
# mav comm
|
||||||
|
cd $WORKSPACE/src
|
||||||
git clone https://github.com/PX4/mav_comm.git
|
git clone https://github.com/PX4/mav_comm.git
|
||||||
|
|
||||||
# glog catkin
|
# glog catkin
|
||||||
|
cd $WORKSPACE/src
|
||||||
git clone https://github.com/ethz-asl/glog_catkin.git
|
git clone https://github.com/ethz-asl/glog_catkin.git
|
||||||
|
|
||||||
# catkin simple
|
# catkin simple
|
||||||
|
cd $WORKSPACE/src
|
||||||
git clone https://github.com/catkin/catkin_simple.git
|
git clone https://github.com/catkin/catkin_simple.git
|
||||||
|
|
||||||
|
cd $WORKSPACE
|
||||||
echo "Execute catkin_make to compile all the sources."
|
echo "Execute catkin_make to compile all the sources."
|
||||||
|
|
||||||
+4
-1
@@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
# "vagrant up" will build the images. Should start "xterm" in the end.
|
# "vagrant up" will build the images. Should start "xterm" in the end.
|
||||||
#
|
#
|
||||||
# Notes
|
# Notes:
|
||||||
# (will change, need proper docs)
|
# (will change, need proper docs)
|
||||||
#
|
#
|
||||||
# Build with multiple dependent docker containers:
|
# Build with multiple dependent docker containers:
|
||||||
@@ -17,6 +17,9 @@
|
|||||||
# "vagrant docker-run ros -- <cmd>"
|
# "vagrant docker-run ros -- <cmd>"
|
||||||
# Attention: will loose all data when stopped, vagrant runs this with "--rm"
|
# Attention: will loose all data when stopped, vagrant runs this with "--rm"
|
||||||
#
|
#
|
||||||
|
# TODO
|
||||||
|
# - maybe map a local working directory to compile stuff without loosing it in side the docker container
|
||||||
|
#
|
||||||
|
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
# Configure docker host
|
# Configure docker host
|
||||||
Reference in New Issue
Block a user