ROS connevity with MATLAB on Window and Docker for window

asked 2017-08-01 23:54:00 -0500

ntmilkt gravatar image

I am trying to set development environment for ROS Kinetic using Docker and MATLAB.

Host OS is Windows 10 that include MATLAB robotics system toolbox for ROS. Docker4Windows is installed on Windows 10 with ROS:Kinetic.

Window10(ML: - Docker(Hyper-V: - Containers(Master, Listener and Talker under bridge network, 172.18.0.X)

I followed up tutorials to communicate container. But I couldn`t reach to communicate with Host. MATLAB can see the topic list. But receiving message is not worked. I searched a lot of page and did many approaches include dns, resolvable and other network mode. Final target is send/receive ROS message between MATLAB on window and containers.

Do you have any idea? or solution?

Below github based modifications are what I have tried last few weeks

edit retag flag offensive close merge delete


How is the network for the Linux VM and hypervisor, that is running the docker daemon, bridged to the network interface of the windows host machine. This sounds like a VM networking issue, or deficient config. By the way, how does the matlab client know its host IP when connecting to the rosmaster?

ruffsl gravatar imageruffsl ( 2017-08-07 17:52:02 -0500 )edit

I coulnd`t find right approach. But initializing ros in MATLAB using URI: make ros connectivity.

Do you have any idea include network configuration and settings?

ntmilkt gravatar imagentmilkt ( 2017-08-08 02:01:40 -0500 )edit

Well, if you can do the equivalent of 'rostopic list' in matlab, then matlab sure can reach the ros master, but if matlab can't subscribe to containered nodes, or they can't subscribe to matlab's topics, it seems like an asymmetry in connectivity. Debug w/ netcat

ruffsl gravatar imageruffsl ( 2017-08-08 17:17:46 -0500 )edit

Was there ever a solution to this? I am having the same issue I think. I have a Windows 10 host running MATLAB, and a Docker container running ROS. I am able to see the output from rostopic list in MATLAB, however cannot receive data. I've tried several network configurations, but no luck.

patnolan33 gravatar imagepatnolan33 ( 2018-08-06 09:28:41 -0500 )edit