publish shared_ptr of rcl_serialized_message (#541)

* publish shared_ptr of rcl_serialized_message

* const parameter
This commit is contained in:
Karsten Knese 2018-08-24 14:34:51 -05:00 committed by GitHub
parent 25a9b4e339
commit 354d933870
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,6 +289,12 @@ public:
}
}
void
publish(std::shared_ptr<const rcl_serialized_message_t> serialized_msg)
{
return this->publish(serialized_msg.get());
}
std::shared_ptr<MessageAlloc> get_allocator() const
{
return message_allocator_;