Skip to content

Commit

Permalink
make msg_type optional
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Feb 22, 2025
1 parent a360b67 commit 096fe41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/glim/util/extension_module_ros2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GenericTopicSubscription {
GenericTopicSubscription(const std::string& topic, const std::string& msg_type = "") : topic(topic), msg_type(msg_type) {}

virtual void create_subscriber(rclcpp::Node& node) = 0;
virtual void insert_message_instance(const rclcpp::SerializedMessage& serialized_msg, const std::string& msg_type) = 0;
virtual void insert_message_instance(const rclcpp::SerializedMessage& serialized_msg, const std::string& msg_type = "") = 0;

const std::string topic;
const std::string msg_type;
Expand Down

0 comments on commit 096fe41

Please sign in to comment.