Skip to content

no std::bind with custom arguments for callbacks #273

Description

@Karsten1987

I want to pass custom arguments to my callback function and use std::bind for it. However, I believe that function_traits are not allowing passing a functor with custom arguments.

This little demo shows the block which does not compile.
https://github.com/ros2/examples/blob/callback_error/rclcpp_examples/src/services/add_two_ints_server.cpp#L58-L68

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions