ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Finally, a simple solution that works for me is

RUN . /opt/ros/${ROS_DISTRO}/setup.sh && other_commands

That is, use "." instead of "source", and use "setup.sh" instead of "setup.bash".