Skip to content

Commit

Permalink
ros2GH-23 Use rmw_serialized_message_t consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Idel-SI authored and anhosi committed Sep 5, 2018
1 parent 1b29db8 commit 21911c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rosbag2/src/rosbag2/rosbag2_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ std::shared_ptr<GenericPublisher> Rosbag2Node::create_generic_publisher(
std::shared_ptr<GenericSubscription> Rosbag2Node::create_generic_subscription(
const std::string & topic,
const std::string & type,
std::function<void(std::shared_ptr<rcutils_char_array_t>)> callback)
std::function<void(std::shared_ptr<rmw_serialized_message_t>)> callback)
{
auto type_support = get_typesupport(type);

Expand Down
2 changes: 1 addition & 1 deletion rosbag2/src/rosbag2/rosbag2_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Rosbag2Node : public rclcpp::Node
std::shared_ptr<GenericSubscription> create_generic_subscription(
const std::string & topic,
const std::string & type,
std::function<void(std::shared_ptr<rcutils_char_array_t>)> callback);
std::function<void(std::shared_ptr<rmw_serialized_message_t>)> callback);

std::map<std::string, std::string>
get_topics_with_types(const std::vector<std::string> & topic_names);
Expand Down

0 comments on commit 21911c9

Please sign in to comment.