We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b99397 commit eb5aeebCopy full SHA for eb5aeeb
rclrs/src/dynamic_message.rs
@@ -359,6 +359,10 @@ impl DynamicMessage {
359
/// `std_msgs/msg/String`.
360
///
361
/// The message instance will contain the default values of the message type.
362
+ ///
363
+ /// This method might not be the most efficient because of the library loading. If you need to
364
+ /// instantiate multiple messages of the same type consider using
365
+ /// [`crate::dynamic_message::DynamicMessageMetadata::create`]
366
pub fn new(message_type: MessageTypeName) -> Result<Self, DynamicMessageError> {
367
DynamicMessageMetadata::new(message_type)?.create()
368
}
0 commit comments