ROS (Melodic) + Docker: rosrun not found
Hi there,
I am currently trying to run ROS Melodic on Docker to build the rosserial_arduino libraries for Arduino. Therefore I need to run
rosrun rosserial_arduino make_libraries.py
in the Docker container. However I get a rosrun: command not found
, despite sourcing the setup.bash
. Here is my Dockerfile
:
FROM osrf/ros:melodic-desktop-full-bionic as builder_base
SHELL ["/bin/bash", "-c"]
COPY . .
RUN apt-get update && apt-get install -y \
ros-melodic-rosserial-arduino \
ros-melodic-rosserial \
python-rosdep \
python-rosinstall \
python-rosinstall-generator \
python-wstool \
build-essential \
&& rm -rf /var/lib/apt/lists/
RUN echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
RUN source ~/.bashrc
WORKDIR /arduino
RUN rosrun rosserial_arduino make_libraries.py
I run this on Ubuntu 19.04.
Any ideas why I get this error and how to solve it?
Thanks in advance!