Ask Your Question
0

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

Comments

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

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

1 Answer

Sort by » oldest newest most voted
1

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.
http://wiki.ros.org/message_filters#E...

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

2 followers

Stats

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

Seen: 140 times

Last updated: Nov 04 '18