Retrieve information about ROS 2 network
ros2 msg list
returns a list of all available ROS 2 message types
that can be used in MATLAB.
ros2 node list
lists nodes on the ROS 2 network.
ros2 topic list
lists topic names with registered publishers or
subscribers on the ROS 2 network.
returns a list
of all available ROS 2 message types that can be used in MATLAB.msgList
= ros2("msg", "list")
lists topic
names with registered publishers or subscribers on the ROS 2 network.topicList
= ros2("topic", "list")
Note
The first time ros2
is called for a specific domain ID not all
information on the network may be immediately available. If incomplete network
information is returned from ros2
, wait for a short time before
trying again.