Main Content

Set Up ROS_IP Environment Variable

If the Universal Robots hardware is connected to an external host running ROS, and the host running MATLAB is separate, use the following environment variable to set the MATLAB global node's advertised address.

>> setenv('ROS_IP','')

Assuming that the host running ROS has the IP address ‘’ and the host running MATLAB has multiple networks with IP addresses ‘’ and ‘’, the ROS_IP environment needs to be set at ‘'.

If this is not setup correctly, an error may appear stating that Timeout has occurred while waiting for the action server, while you create the universalrobot object.