Main Content


Display all ROS message contents



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


showdetails will be removed. Use rosShowDetails instead. For more information, see ROS Message Structure Functions


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.

  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.

Version History

Introduced in R2019b

expand all

Not recommended starting in R2021a

See Also