[ros-users] [Discourse.ros.org] [Next Generation ROS] Callback Args in ROS2

Adam Seiwert ros.discourse at gmail.com
Tue Jul 17 03:18:38 UTC 2018

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](https://docs.python.org/3/library/functools.html#functools.partial). 

For example:
from functools import partial
create_subscription(msg_type, ros_topic, partial(callback_function(), passed_variable))

[Visit Topic](https://discourse.ros.org/t/callback-args-in-ros2/4727/3) or reply to this email to respond.

More information about the ros-users mailing list