writeNodeAttributeFromMessage#
Fully qualified name: isaacsim::ros2::omnigraph_utils::writeNodeAttributeFromMessage
-
)#
Reads data from a ROS 2 message and writes it to OmniGraph node attributes.
Transfers data from a ROS 2 message to OmniGraph node attributes. This function handles various data types and their conversion between ROS 2 and OmniGraph representations. It supports both scalar and array values of different primitive types.
- Parameters:
db – [in] OmniGraph database instance
message – [in] ROS 2 message to read data from
prependStr – [in] Prefix for attribute names
isOutput – [in] Whether to write to output (true) or input (false) attributes
- Returns:
bool True if data was successfully read from message and written to node attributes