There's no reason it could not be in `rclpy`. In C++, you'd probably just use a lambda or `std::bind` to accomplish this, but for convenience it could also be in `rclcpp` as well.
I would file a feature request issue on `rclpy` and/or `rclcpp` and consider doing a pr after getting feedback on the approach.
---
[Visit Topic](
https://discourse.ros.org/t/callback-args-in-ros2/4727/2) or reply to this email to respond.
If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
ros-users@lists.ros.org
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <
http://lists.ros.org/mailman//options/ros-users>