Retrieve definition of ROS message type
def = definition(msg)
example
def = definition(msg) returns the ROS definition of the message type associated with the message object, msg. The details of the message definition include the structure, property data types, and comments from the authors of that specific message.
def
msg
collapse all
Create a Point Message.
Point
point = rosmessage('geometry_msgs/Point');
Access the definition.
def = definition(point)
def = '% This contains the position of a point in free space double X double Y double Z '
Message
ROS message, specified as a Message object handle. This message can be created using the rosmessage function.
rosmessage
Details of the information inside the ROS message definition, returned as a character vector.
rosmessage | rosmsg
rosmsg
You have a modified version of this example. Do you want to open this example with your edits?