Callback Args in ROS2

Thanks for the feedback and sorry for the delayed response. I haven’t filed a feature request yet but I did find a temporary fix. I was able to get similar functionality utilizing partial functions in python.

For example:

from functools import partial
create_subscription(msg_type, ros_topic, partial(callback_function, passed_variable))
3 Likes