ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Does message_filters support custom messages?

asked 2018-11-04 14:58:12 -0500

AnkilP gravatar image

I'm trying to synchronize subscribers that uses a custom message but I get this error when I run catkin_make:

 error: no matching function for call to ‘ros::MessageEvent<const world2local::object_decription_<std::allocator<void> > >::MessageEvent(const ros::MessageEvent<const sensor_msgs::Imu_<std::allocator<void> > >&, bool)’
     Event my_event(event, nonconst_force_copy || event.nonConstWillCopy());

I don't get this issue when I try using a std_msgs message. Is this an issue with message_filters or is this an issue with how I've generated my message?

Note: My message is world2local/object_decription

edit retag flag offensive close merge delete


Can you show us your source code for the node that produces this error. And which message filter are you using?

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-04 16:33:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-11-04 19:57:23 -0500

kmhallen gravatar image

The Exact Time and Approximate Time message filters work for any message that has a standard header. The header is needed for the timestamp field.

If you post the msg file and relevant portions of your source code, we can better help with the error message.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-11-04 14:58:12 -0500

Seen: 620 times

Last updated: Nov 04 '18