Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Use boost::bind to bind the callback function - #906

Merged
dirk-thomas merged 1 commit into
ros:kinetic-develfrom
jspricke:msg_filters_add_callback
Oct 21, 2016
Merged

dirk-thomas merged 1 commit into
ros:kinetic-develfrom
jspricke:msg_filters_add_callback

Conversation

@jspricke

Copy link
Copy Markdown
Member

Example usage:
void callback(const boost::shared_ptr&)

message_filters::Subscriber<std_msgs::UInt32> sub(nh, "my_topic", 1);
sub.registerCallback(myCallback);

cf. http://wiki.ros.org/message_filters#Example_.28C.2B-.2B-.29

Example usage:
void callback(const boost::shared_ptr<M const>&)

message_filters::Subscriber<std_msgs::UInt32> sub(nh, "my_topic", 1);
sub.registerCallback(myCallback);

cf. http://wiki.ros.org/message_filters#Example_.28C.2B-.2B-.29
@dirk-thomas

Copy link
Copy Markdown
Member

Thank you!

@dirk-thomas
dirk-thomas merged commit 1cf5301 into ros:kinetic-devel Oct 21, 2016
@jspricke
jspricke deleted the msg_filters_add_callback branch October 21, 2016 16:36
rsinnet pushed a commit to MisoRobotics/ros_comm that referenced this pull request Jun 19, 2017
Use boost::bind to bind the callback function
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants