Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

MATLAB ROS Cannot Create A Node

After some time. I'm playing around with MATLAB ROS again (http://www.mathworks.com/hardware-support/robot-operating-system.html).

When I try to create a node in Matlab using Node = rosmatlab.node('Test','http://129.10.113.238:11311');

This results in the following output:

Environment variable ROS_IP does not match localhost's IP address

However, when I check ROS_MASTER_URI and ROS_IP, they both have the right values:

>> getenv 'ROS_IP'

ans = 129.10.113.238

>> getenv 'ROS_MASTER_URI'

ans = http://129.10.113.238:11311

MATLAB ROS Cannot Create A Node

After some time. I'm playing around with MATLAB ROS again (http://www.mathworks.com/hardware-support/robot-operating-system.html).

When I try to create a node in Matlab using Node = rosmatlab.node('Test','http://129.10.113.238:11311');

This results in the following output:

Environment variable ROS_IP does not match localhost's IP address

However, when I check ROS_MASTER_URI and ROS_IP, they both have the right values:correct values (in both the Ubuntu terminal and the Matlab command line).

>> getenv 'ROS_IP'

ans = 129.10.113.238

>> getenv 'ROS_MASTER_URI'

ans = http://129.10.113.238:11311