ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can subscribe another topic by add this command:
sub_1 = this->create_subscription<std_msgs::msg::float32>(topic_subscriber2, callback);
Thank you.