Skip to content

Commit

Permalink
publish shared_ptr of rcl_serialized_message (#541)
Browse files Browse the repository at this point in the history
* publish shared_ptr of rcl_serialized_message

* const parameter
  • Loading branch information
Karsten1987 committed Aug 24, 2018
1 parent 25a9b4e commit 354d933
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rclcpp/include/rclcpp/publisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ class Publisher : public PublisherBase
}
}

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_;
Expand Down

0 comments on commit 354d933

Please sign in to comment.