Connect to remote ROS device
The rosdevice
object is used to create a connection with a
ROS device. The object contains the necessary login information and other parameters of
the ROS distribution. Once a connection is made using rosdevice
, you
can run and stop a ROS core or ROS nodes and check the status of the ROS network. Before
running ROS nodes, you must connect MATLAB® to the ROS network using the rosinit
function.
You can deploy ROS nodes to a ROS device using Simulink® models. For an example, see Generate a Standalone ROS Node from Simulink®.
To connect to a ROS device, an SSH server must be installed on the device.
creates a device
= rosdevice(deviceAddress
,username
,password
)rosdevice
object connected to the ROS device at
the specified address and with the specified user name and password.
creates a
device
= rosdevicerosdevice
object connected to a ROS device using the
saved values for deviceAddress
,
username
, and password
.
runNode | Start ROS node |
stopNode | Stop ROS node |
isNodeRunning | Determine if ROS node is running |
runCore | Start ROS core |
stopCore | Stop ROS core |
isCoreRunning | Determine if ROS core is running |
system | Execute system command on device |
putFile | Copy file to device |
getFile | Get file from device |
deleteFile | Delete file from device |
dir | List folder contents on device |
openShell | Open interactive command shell to device |
isNodeRunning
| runCore
| runNode
| stopNode