Connect docker container with ROS on host


#1

Dear NRP devs,

Is there a way to run ROS nodes on my host that could talk to the NRP running in a docker container?

I’m using the nrp_installer.sh script to start the containers - I see it’s using a docker subnetwork but pointing my ROS_MASTER_URI to this ip doesn’t do the trick.

Cheers,
Jacques


#2

Actually I got it to work without modifications to the docker config. The following environment variables should be set on the host:

ROS_MASTER_URI=http://172.19.0.3:11311
ROS_IP=172.19.0.1

These are hardcoded in the nrp_installer.sh script