Skip to content

Instantly share code, notes, and snippets.

@paramaggarwal
Last active September 25, 2017 03:17
Show Gist options
  • Save paramaggarwal/5be307d28e64aaa839c5c73ddbc6fbe8 to your computer and use it in GitHub Desktop.
Save paramaggarwal/5be307d28e64aaa839c5c73ddbc6fbe8 to your computer and use it in GitHub Desktop.
Docker image with ROS Kinetic and Dataspeed DBZ

Steps

  • Installation of ROS works fine.
  • Dataspeed files are also picked up after running source in the code repo.
  • Issue with Python. Gives error when using Python 2.7 and module not found error when using Python 3.
  • It uses the Python 2.7 that came with ROS installation via env.
FROM osrf/ros:kinetic-desktop-full
MAINTAINER Param Aggarwal (paramaggarwal@gmail.com)
# Install DBZ ADAS Kit
RUN apt-get update
RUN apt-get install -y python3-pip python-wstool
RUN mkdir -p ~/dbw_ws/src && cd ~/dbw_ws && wstool init src
RUN wstool merge -t ~/dbw_ws/src https://bitbucket.org/DataspeedInc/dbw_mkz_ros/raw/default/dbw_mkz.rosinstall
RUN wstool update -t ~/dbw_ws/src
RUN rosdep update && rosdep -y install --from-paths ~/dbw_ws/src --ignore-src
RUN . /opt/ros/$ROS_DISTRO/setup.sh && cd ~/dbw_ws && catkin_make -DCMAKE_BUILD_TYPE=Release
RUN echo "source ~/dbw_ws/devel/setup.bash" >> ros_entrypoint.sh
EXPOSE 4567
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment