showdetails

Display all ROS message contents

Description

example

details = showdetails(msg) gets all data contents of message object msg. The details are stored in details or displayed on the command line.

Examples

collapse all

Create a message. Populate the message with data using the relevant properties.

msg = rosmessage('geometry_msgs/Point');
msg.X = 1;
msg.Y = 2;
msg.Z = 3;

View the message details.

showdetails(msg)
  X :  1
  Y :  2
  Z :  3

Input Arguments

collapse all

ROS message, specified as a Message object handle.

Output Arguments

collapse all

Details of a ROS message, returned as a character vector.

See Also

Introduced in R2019b