ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
One of the ROS2 developers, "Ivan Santiago Paunovic", answered this question as following:
You can easily solve this using a lambda:
node.create_subscription(std_msgs.msg.String, "my_topic", lambda msg: common_callback(msg, other_args), 10)