ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You can subscribe another topic by add this command:

sub_1 = this->create_subscription<std_msgs::msg::float32>(topic_subscriber2, callback);

Thank you.