Constructor
class
new MessageIntrospector(typeName)
Create a new MessageIntrospector for a ROS 2 message type.
Parameters:
| Name | Type | Description |
|---|---|---|
typeName |
string | The full message type name (e.g., 'geometry_msgs/msg/Twist') |
- Source:
Throws:
-
If typeName is not a non-empty stringType TypeValidationError
-
If the message type cannot be loadedType Error
Members
member
defaults
Get the default values for all fields.
Creates a new instance of the message and converts it to a plain object.
Result is cached for performance.
- Source:
member
fields
Get the field names of the message.
- Source:
member
schema
Get the ROSMessageDef schema for the message type.
- Source:
member
typeClass
Get the underlying ROS message class.
- Source:
member
typeName
Get the full message type name.
- Source: