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

How to manually add messages to tf::MessageFilter?

asked 2012-03-14 05:52:55 -0600

Robert Krug gravatar image

Hi,

Is it possible to manually add messages to a tf::MessageFilter queue instead of connecting the filter's input to a subscriber? The add(...) methods provided in the API only seem to work with other filters as argument.

Thanks, -Robert-

edit retag flag offensive close merge delete

Comments

I don't see the use case. BTW, why don't you create a publisher and subscribe to it, so instead of add(...) you only have to publish. It'd have the same effect, wouldn't it?

Enrique gravatar image Enrique  ( 2012-03-14 06:19:04 -0600 )edit

It would, but publisher & subscriber would be in the same node and I don't really need those specific messages anywhere else so I wanted to avoid creating unnecessary topics.

Robert Krug gravatar image Robert Krug  ( 2012-03-14 06:36:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-03-14 06:18:08 -0600

tfoote gravatar image

The add method works for messages API docs

edit flag offensive delete link more

Comments

Ah, thank you. I tried to directly add the message instead of a pointer - should have checked the API more carefully ...

Robert Krug gravatar image Robert Krug  ( 2012-03-14 06:31:53 -0600 )edit

Question Tools

Stats

Asked: 2012-03-14 05:52:55 -0600

Seen: 536 times

Last updated: Mar 14 '12