-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create subscription to member function with extra argument using std::bind #766
Comments
I think this is the issue that may be related: And the ROS answer referenced from that issue: https://answers.ros.org/question/308386/ros2-add-arguments-to-callback/ |
same thing as #273 ? |
To summarize: I think the failing cases are not supported since we can't ensure at compile time that the signature using Please feel free to continue commenting on it and it can be reopened if necessary. |
Signed-off-by: Shane Loretz <[email protected]>
* Fault injection tests for rcl_yaml Signed-off-by: Stephen Brawner <[email protected]> * PR Feedback Signed-off-by: Stephen Brawner <[email protected]> * Pause fault injection Signed-off-by: Stephen Brawner <[email protected]> * variant_copy Signed-off-by: Stephen Brawner <[email protected]>
Bug report
Required Info:
Steps to reproduce issue
Build this node, uncommenting each attempt to create the callback one at a time
Start the node and publish a string message
Expected behavior
All attempts at creating a subscription with a callback would work.
Actual behavior
First callback does not compile
Long compile output
Second callback (bind assigned to std::function) works fine
Third callback (wrapping call with lambda) works fine
Fourth callback (reversed argument order to bind) fails to compile
Long compile output
Fifth callback (Reversed argument order with bind assigned to std::function) works fine
Additional information
The text was updated successfully, but these errors were encountered: