www.gusucode.com > robotics 案例源码程序 matlab代码 > robotics/ViewContentsOfADirectoryOnAROSDeviceExample.m
%% View Folder Contents on ROS Device % Connect to a ROS device and list the contents of a folder. %% % Connect to a ROS device. Specify the device address, username, and % password of your ROS device. d = rosdevice('192.168.154.131','user','password'); %% % Get the folder list of a Catkin workspace on your ROS device. View the % folder as a table. flist = dir(d,'/home/user/catkin_ws_test/'); ftable = struct2table(flist)