Skip to content

Instantly share code, notes, and snippets.

@xqms
Last active March 10, 2022 16:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xqms/6cc015bae5222b4bff33cd589e4adc05 to your computer and use it in GitHub Desktop.
Save xqms/6cc015bae5222b4bff33cd589e4adc05 to your computer and use it in GitHub Desktop.
Dockerfile for Ubuntu 18.04 + ROS Melodic + kalibr
FROM ros:melodic-ros-base
RUN apt-get update && apt-get -y install python-catkin-tools python-osrf-pycommon git wget libeigen3-dev libopencv-dev libv4l-dev libatlas-base-dev liblapack-dev libblas-dev ros-melodic-cv-bridge python-matplotlib python-igraph
RUN mkdir /workspace && cd /workspace && mkdir src && cd src && git clone --depth 1 https://github.com/ethz-asl/kalibr.git && cd ..
RUN . /opt/ros/melodic/setup.sh && cd /workspace && catkin init && catkin config --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo && catkin build
@xqms
Copy link
Author

xqms commented Jan 17, 2021

Usage:

docker build -t kalibr .

cd wherever-my-bagfiles-are
docker run -v $(pwd):/mnt -it kalibr

. /workspace/devel/setup.bash
cd /mnt
kalibr_calibrate_cameras ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment