Error in compiling rclcpp/minimal_subscriber/member_function.cpp

asked 2020-03-23 22:33:03 -0600

shanhx gravatar image

updated 2020-03-24 03:42:10 -0600

gvdhoorn gravatar image

During my compiling, it appears that:

error: no matching function for call to ‘MinimalSubscriber::create_subscription<std_msgs::msg::String>(const char [6], int, std::_Bind_helper<false, void (MinimalSubscriber::*)(std::shared_ptr<std_msgs::msg::String_<std::allocator<void> > >) const, MinimalSubscriber*, const std::_Placeholder<1>&>::type)’
       "topic", 10, std::bind(&MinimalSubscriber::topic_callback, this, _1));

How could I fix this?

edit retag flag offensive close merge delete