www.gusucode.com > robotics 案例源码程序 matlab代码 > robotics/RunLinuxCommandsOnROSDeviceExample.m
%% Run Linux Commands on ROS Device % Connect to a ROS device and run commands on the % Linux(R) command shell. %% % Connect to a ROS device. Specify the device address, user name, and % password of your ROS device. d = rosdevice('192.168.154.131','user','password'); %% % Run a command that lists the contents of the Catkin workspace folder. system(d,'ls /home/user/catkin_ws_test')