Commit 5a5b56ac authored by Philipp Helios's avatar Philipp Helios

moved docker scripts

parent cbe1b039
Pipeline #185574 passed with stage
in 6 minutes and 56 seconds
Exception: STATUS_STACK_OVERFLOW at rip=0010040451F
rax=000000000000002F rbx=0000000600013350 rcx=000000000000002F
rdx=0000000000000000 rsi=00000001802676A0 rdi=00000000FFFFCDF0
r8 =00000006000135A5 r9 =00000000FFFFC8A0 r10=0000000100000000
r11=000000010048DFCC r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000000000
rbp=00000000FFE04010 rsp=00000000FFE03FD0
program=C:\Program Files\Git\usr\bin\winpty.exe, pid 4444, thread
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
000FFE04010 0010040451F (00000000000, 006000135A5, 00000000000, 00000000000)
000FFE04070 00100404EF8 (006000135A5, 00000000001, 000FFFFC8A0, 00600086730)
000FFE040D0 001004050FC (006000135A5, 000FFFFC8A0, 00600086730, 000FFE04160)
000FFE04100 00100404C07 (006000135A5, 00000000007, 000FFFFC8A0, 00600086730)
000FFE04160 00100404F53 (006000135A5, 00000000001, 000FFFFC8A0, 00600086730)
000FFE041C0 001004050FC (006000135A5, 000FFFFC8A0, 00600086730, 000FFE04250)
000FFE041F0 00100404C07 (006000135A5, 00000000007, 000FFFFC8A0, 00600086730)
000FFE04250 00100404F53 (006000135A5, 00000000001, 000FFFFC8A0, 00600086730)
000FFE042B0 001004050FC (006000135A5, 000FFFFC8A0, 00600086730, 000FFE04340)
000FFE042E0 00100404C07 (006000135A5, 00000000007, 000FFFFC8A0, 00600086730)
000FFE04340 00100404F53 (006000135A5, 00000000001, 000FFFFC8A0, 00600086730)
000FFE043A0 001004050FC (006000135A5, 000FFFFC8A0, 00600086730, 000FFE04430)
000FFE043D0 00100404C07 (006000135A5, 00000000007, 000FFFFC8A0, 00600086730)
000FFE04430 00100404F53 (006000135A5, 00000000001, 000FFFFC8A0, 00600086730)
000FFE04490 001004050FC (006000135A5, 000FFFFC8A0, 00600086730, 000FFE04520)
000FFE044C0 00100404C07 (006000135A5, 00000000007, 000FFFFC8A0, 00600086730)
End of stack trace (more stack frames may be present)
winpty docker exec \
-it carlacomponents \
bash \
-c 'source /opt/ros/kinetic/setup.bash && cd /usr/src/carlacomponents/Autopilot/ && rm -rf target && java -jar ../mw-generator.jar Autopilot/Autopilot.json && target/compile.sh && target/build/test_autopilot/coordinator/Coordinator_test_autopilot'
\ No newline at end of file
cd /c//Programs/carla/PythonAPI/examples/
python manual_control.py --rolename=ego_vehicle
\ No newline at end of file
ARG CARLA_VERSION='0.9.5'
ARG CARLA_BUILD=''
FROM carlasim/carla:$CARLA_VERSION$CARLA_BUILD as carla
FROM ros:kinetic-ros-base
RUN apt-get update \
&& apt-get install -y libpng16-16 ros-kinetic-ackermann-msgs ros-kinetic-derived-object-msgs ros-kinetic-tf ros-kinetic-cv-bridge --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ARG CARLA_VERSION
COPY --from=carla --chown=root /home/carla/PythonAPI /opt/carla/PythonAPI
ENV PYTHONPATH=/opt/carla/PythonAPI/carla/dist/carla-$CARLA_VERSION-py2.7-linux-x86_64.egg:/opt/carla/PythonAPI
RUN git clone --branch 0.9.5.1 https://github.com/carla-simulator/ros-bridge.git /opt/carla-ros-bridge/git
RUN mkdir -p /opt/carla-ros-bridge/src
RUN cp -r /opt/carla-ros-bridge/git/carla_ackermann_control /opt/carla-ros-bridge/src/carla_ackermann_control
RUN cp -r /opt/carla-ros-bridge/git/carla_ros_bridge /opt/carla-ros-bridge/src/carla_ros_bridge
RUN cp -r /opt/carla-ros-bridge/git/carla_manual_control /opt/carla-ros-bridge/src/carla_manual_control
RUN cp -r /opt/carla-ros-bridge/git/carla_msgs /opt/carla-ros-bridge/src/carla_msgs
RUN cp -r /opt/carla-ros-bridge/git/carla_ego_vehicle /opt/carla-ros-bridge/src/carla_ego_vehicle
RUN cp -r /opt/carla-ros-bridge/git/carla_waypoint_publisher /opt/carla-ros-bridge/src/carla_waypoint_publisher
RUN sed -i 's/localhost/134.61.174.75/g' /opt/carla-ros-bridge/src/carla_ros_bridge/config/settings.yaml
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /opt/carla-ros-bridge; catkin_make -DCMAKE_BUILD_TYPE=Release install'
# replace entrypoint
RUN cp -r /opt/carla-ros-bridge/git/docker/content/ros_entrypoint.sh /
# Install Emam & Java
RUN apt-get update \
&& apt-get install -y unzip g++ libopenblas-dev libhdf5-serial-dev cmake maven default-jdk --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV CMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}:/opt/carla-ros-bridge/devel/share/carla_msgs/cmake"
ENV PATH="/usr/lib/x86_64-linux-gnu/:${PATH}"
ADD https://rwth-aachen.sciebo.de/s/igDWzLpdO5zYHBj/download?path=%2Fubuntu%2F18.10.24-armadillo-linux&files=armadillo-8.500.1-linux.zip /root/armadillo.zip
RUN unzip /root/armadillo.zip -d /root/
ENV Armadillo_HOME=/root/armadillo-8.500.1-linux
ENV ROS_HOME=/opt/ros/kinetic
ENV CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:/opt/ros/kinetic/
CMD ["roslaunch", "carla_ros_bridge", "carla_ros_bridge.launch"]
#!/bin/sh
# (c) https://github.com/MontiCore/monticore
docker build -t carla-ros-bridge -f Dockerfile ./.. "$@"
curDir=$(readlink -f `dirname $0`)
# (c) https://github.com/MontiCore/monticore
docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/carlacomponents/emam-carla-ros-bridge:latest -f Dockerfile ./.. "$@"
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
set -e
# setup ros environment
source "/opt/carla-ros-bridge/install/setup.bash"
exec "$@"
docker push registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/carlacomponents/emam-carla-ros-bridge:latest
# (c) https://github.com/MontiCore/monticore
#!/bin/sh
# (c) https://github.com/MontiCore/monticore
usage() { echo "Usage: $0 [-t <tag>] [-i <image>]" 1>&2; exit 1; }
# Defaults
DOCKER_IMAGE_NAME="registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/carlacomponents/emam-carla-ros-bridge"
TAG="latest"
while getopts ":ht:i:" opt; do
case $opt in
h)
usage
exit
;;
t)
TAG=$OPTARG
;;
i)
DOCKER_IMAGE_NAME=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done
shift $((OPTIND-1))
echo "Using $DOCKER_IMAGE_NAME:$TAG"
docker run -it --rm $DOCKER_IMAGE_NAME:$TAG "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment