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

how to publish topics while using messagefilter?

asked 2017-11-02 00:46:13 -0500

Spartan_007 gravatar image

updated 2017-11-02 17:18:22 -0500

Hi, I am using an LRF and a servo for my application and need to synchrnize the position of servo and laser data in time. I looked into message_filter and trying to play with it. I was wondering whether ApproximateTime synchronizer publishes on any topic or if not then how to get the data to publish in user defined topic? I looked into quite a few previously discussed answers on this issue here, but could not understand this part.

I need to access the synchronized dataset for servo and lidar.

thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-02 21:56:52 -0500

Spartan_007 gravatar image

Ok, I got a solution. I initialized publishers on required topics as global variable. Then, published in the callback of the registercallback in the message_filter.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-11-02 00:46:13 -0500

Seen: 222 times

Last updated: Nov 02 '17