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','192.168.1.100')
Assuming that the host running ROS has the IP address ‘192.168.1.1’ and the host running MATLAB has multiple networks with IP addresses ‘192.168.1.100’ and ‘173.95.120.50’, the ROS_IP environment needs to be set at ‘192.168.1.100'.
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.