Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containerizing diffbot development environment #85

Closed
wants to merge 6 commits into from
Closed

Containerizing diffbot development environment #85

wants to merge 6 commits into from

Conversation

joeuser846
Copy link
Contributor

Docker allows ROS1 to run on Ubuntu releases > 20.04LTS. I've upgraded my development machine to Ubuntu 22.04LTS and containerized (Docker) my diffbot build environment. It's working mostly very well. Performance is equal and navigating my diffbot via rviz is working fine. There are minor rendering problems when rviz displays to the host display but these are minor. and mostly just annoyances.

I'm providing my dockerfile which is the key to building diffbot into a Docker image. When the image is built you run containers which are clones of the image. Each container runs one process. I start one container where I run 'roscore', and another where I run 'roslaunch diffbot_navigation diffbot_hw.launch'.

I've set the dockerfile up so that it automatically builds a Docker image with Ubuntu 20.04LTS, ROS Noetic, and the full diffbot system, ready to run.

Hope others find this useful.

Copy link
Member

@fjp fjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @joeuser846, thanks for the Dockerfile!

@joeuser846
Copy link
Contributor Author

Sorry about all the commits post PR! I tried to generalize the dockerfile at the last minute and needless to say I introduced a few issues that the commits fix. I've now retested (with the four fixes) and it builds and runs fine.

BTW, I also containerized my remo robot. That is probably of less interest to others as stranding a special purpose device on Ubuntu 20.04LTS is less problematic than blocking one's main dev system. My remo runs on an RPi 4B with 8GB and the containerized ROS runs fine there too.

Copy link
Member

@fjp fjp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the additional changes/fixes are fine for me, sorry I didn't spot it before approving.

Could you please just change the file name from dockerfile to Dockerfile before squash merging? This way the syntax highlighting will detect it's Dockerfile syntax.

@joeuser846 joeuser846 closed this by deleting the head repository Sep 4, 2023
@fjp
Copy link
Member

fjp commented Sep 4, 2023

This didn't make it to the default branch (noetic-devel) because it seems the repo https://github.com/joeuser846/diffbot/tree/docker was deleted before pressing "Squash and merge". Feel free to re-open the PR with the Dockefile, I think it would be very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants