Skip to content

Instantly share code, notes, and snippets.

@fynntimes
Created March 14, 2022 00:56
Show Gist options
  • Save fynntimes/1a7081c0d1b8f6919e59140a9a20f4fa to your computer and use it in GitHub Desktop.
Save fynntimes/1a7081c0d1b8f6919e59140a9a20f4fa to your computer and use it in GitHub Desktop.
Sharing the ROS includes stuff to host machine from Docker
First open a `cmr shell`.
Then run `docker cp [container_name]:/opt/ros/melodic ~/ros-melodic`.
Then run `docker cp [container_name]:/usr/include ~/ros-includes`.
Then run `sudo mv ~/ros-melodic/* /opt/ros/melodic`
Then run `sudo mv -vn ~/ros-includes/* /usr/include`
The -vn flag will make sure we don't overwrite anything we already have (because that would make some issues with versions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment