Ask Your Question
0

roscpp and latched topics

asked 2012-02-13 06:32:44 -0500

Thomas gravatar image

Hi there, I have the following problem.

One of my node just parses a file and stream reference trajectories as Path/Markers topics. These trajectories are almost never updated. Therefore I would like to use latched topics to avoid updating for nothing.

Therefore I have the following setup:

  1. parse data, create publishers with latching enabled
  2. publish once in each topic
  3. spin forever

...and if I use rostopic to retrieve the topics data, nothing comes from the node.

Am I missing something?

edit retag flag offensive close merge delete

Comments

1

Could you include your code? (or at least a minimum example that has this issue)

Eric Perko gravatar imageEric Perko ( 2012-02-13 10:25:45 -0500 )edit

Sorry, it was an error on my side. For the record, here is what I did to switch "normal" topics to latched topics: https://github.com/laas/humanoid_walk/commit/5d02d0e81c1d49c21b6061133865462673ea6762

Thomas gravatar imageThomas ( 2012-02-13 22:26:32 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-24 04:56:17 -0500

tfoote gravatar image

You might want to try the simpler version of the advertise API You might be having trouble with not setting the other callbacks which you don't appear to use.

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

1 follower

Stats

Asked: 2012-02-13 06:32:44 -0500

Seen: 1,715 times

Last updated: Feb 24 '12