Ros2, Robotics, AI, Computer Vision, Robots.
this->create_subscription<std_msgs::msg::String>( "string_msg", 10, std::bind(&SubscriberNode::callback, this, _1)); } private: // The moment the message available in the queue and // the call back execute the print statement void callback(const std_msgs::msg::String::SharedPtr msg) const {