Commit d019596e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

run in docker

parent f5348dc3
FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu${UBUNTU_VERSION}
# ROS packages
RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -qqy gnupg2 && rm -rf /var/lib/apt/lists \
&& echo "deb ${UBUNTU} main" > /etc/apt/sources.list.d/ros-latest.list \
&& apt-key adv --keyserver hkp:// --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
# robotpkg packages
RUN echo "deb [arch=amd64] ${UBUNTU} robotpkg" > /etc/apt/sources.list.d/robotpkg.list \
&& echo "deb [arch=amd64] ${UBUNTU} robotpkg" >> /etc/apt/sources.list.d/robotpkg.list \
&& apt-key add /robotpkg.key
# environment helpers
ENV ROS_PREFIX=/opt/ros/${ROS_DISTRO} ROBOTPKG_BASE=/opt/openrobots
# required environment variables
ENV PYTHONPATH=${ROBOTPKG_BASE}/lib/python2.7/site-packages:${ROS_PREFIX}/lib/python2.7/dist-packages \
LD_LIBRARY_PATH=${ROBOTPKG_BASE}/lib/dynamic-graph-plugins \
# talos-integration-tests dependencies
RUN apt-get update -qqy \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
git \
python-catkin-tools \
python-rosdep \
robotpkg-py27-talos-dev \
&& rm -rf /var/lib/apt/lists
# catkin workspace
RUN rosdep init \
&& rosdep update \
&& ${ROS_PREFIX}/bin/catkin_init_workspace
# talos-integration-tests build
ADD . /ws/src/talos_integration_tests
RUN catkin build talos_integration_tests
......@@ -9,7 +9,7 @@ of the algorithm and the weights used to in the simulator.
In this specific context PID gains for position control are not the one provided by PAL-robotics.
They are much more high and provide a more rigid behavior that was found experimentally closer to reality for some part
of the robot. However, for now the flexibility in the hip found in real TALOS humanoid robots is not simulated.
# Setup
mkdir -p test_ws/src
......@@ -59,3 +59,22 @@ rostest talos_integration_tests test_online_walking.test
The robot is supposed to walk forward 2.8 m and reached position [2.12,0.012,1.00]
# Docker
xhost +local:
# 18.04 / melodic
docker build -t talos-integration-tests:18.04 .
docker run --rm --net=host --runtime=nvidia -e DISPLAY -it talos-integration-tests:18.04
# 16.04 / kinetic
docker build -t talos-integration-tests:16.04 --build-arg UBUNTU_VERSION=16.04 --build-arg UBUNTU=xenial --build-arg ROS_DISTRO=kinetic .
docker run --rm --net=host --runtime=nvidia -e DISPLAY -it talos-integration-tests:16.04
Once in the container:
source devel/setup.bash
rostest talos_integration_tests test_kine.test
rostest talos_integration_tests test_sot_talos_balance.test
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