ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You need to add the types that you are receiving in your subscribers. Check what you have in your multibeamCallback and processorCallback.

Also, you have two subscribers with the name sub. You need to pass the subscribers to the synchronizer, they should have different names. (As this is actually a redeclaration in your code, I'm guessing the way you have it will not compile anyways...)

You need to add the types that you are receiving in your subscribers. Check what you have in your multibeamCallback and processorCallback.

Also, you have two subscribers with the name sub. You need to pass the subscribers to the synchronizer, they should have different names. (As this is actually a redeclaration in your code, I'm guessing the way you have it will not compile anyways...)


Edit

Whoops. This will not work with regular Subscribers. According to the wiki, you need to add respective message_filters::Subscribers, which definitely makes more sense here...

You need to add the types that you are receiving in your subscribers. Check what you have in your multibeamCallback and processorCallback.

Also, you have two subscribers with the name sub. You need to pass the subscribers to the synchronizer, they should have different names. (As this is actually a redeclaration in your code, I'm guessing the way you have it will not compile anyways...)


Edit

Whoops. This will not work with regular Subscribers. According to the wiki, you need to add respective message_filters::Subscribers, which definitely makes more sense here...

This makes sense. You synchonize, i.e. you only have one callback taking all messages, instead of multiple callbacks. So you need to follow the example you linked...

You need to add the types that you are receiving in your subscribers. Check what you have in your multibeamCallback and processorCallback.

Also, you have two subscribers with the name sub. You need to pass the subscribers to the synchronizer, they should have different names. (As this is actually a redeclaration in your code, I'm guessing the way you have it will not compile anyways...)


Edit

Whoops. This will not work with regular Subscribers. According to the wiki, you need to add respective message_filters::Subscribers, which definitely makes more sense here...

This makes sense. You synchonize, i.e. you only have one callback taking all messages, instead of multiple callbacks. So you need to follow the example you linked...

You need to add the types that you are receiving in your subscribers. Check what you have in your multibeamCallback and processorCallback.

Also, you have two subscribers with the name sub. You need to pass the subscribers to the synchronizer, they should have different names. (As this is actually a redeclaration in your code, I'm guessing the way you have it will not compile anyways...)


Edit

Whoops. This will not work with regular Subscribers. According to the wiki, you need to add respective message_filters::Subscribers, which definitely makes more sense here...

You synchonize, i.e. you only have one callback taking all messages, instead of multiple callbacks. So you need to follow the example you linked...


Edit2

To synchronize, your message need to have a std_msgs/Header. This actually contains the TimeStamp. Without, those obviously cannot be synchronized.

Thus, Int32MultiArray is actually of the wrong message type...

You need to add the types that you are receiving in your subscribers. Check what you have in your multibeamCallback and processorCallback.

Also, you have two subscribers with the name sub. You need to pass the subscribers to the synchronizer, they should have different names. (As this is actually a redeclaration in your code, I'm guessing the way you have it will not compile anyways...)


Edit

Whoops. This will not work with regular Subscribers. According to the wiki, you need to add respective message_filters::Subscribers, which definitely makes more sense here...

You synchonize, i.e. you only have one callback taking all messages, instead of multiple callbacks. So you need to follow the example you linked...


Edit2

To synchronize, your message need to have a std_msgs/Header. This actually contains the TimeStamp. Without, those obviously cannot be synchronized.

Thus, Int32MultiArray is actually of the wrong message type...

type... (Didn't think of this before...)