0
$\begingroup$

Rosanswers logo

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?


Originally posted by Thomas on ROS Answers with karma: 4478 on 2012-02-13

Post score: 0


Original comments

Comment by Eric Perko on 2012-02-13:
Could you include your code? (or at least a minimum example that has this issue)

Comment by Thomas on 2012-02-13:
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

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by tfoote with karma: 58457 on 2012-02-24

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.