0
$\begingroup$

Rosanswers logo

Hi,

I am trying to publish a latched message in rosjava so that my arduino only receives a command when it is different than the preivous one. Currently, it is constantly polling and that makes my program not to work.

In roscpp, I know that you can set the boolean latch = true.

Is there an equivalent in rosjava?

Thanks.


Originally posted by Tuan on ROS Answers with karma: 111 on 2011-12-05

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Yes, see the javadoc here: http://rosjava.googlecode.com/hg/rosjava/doc/org/ros/node/topic/Publisher.html#setLatchMode(boolean)


Originally posted by damonkohler with karma: 3838 on 2011-12-07

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

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