Change heartbeat_timeout or heartbeat_period in a nodelet?

asked 2019-10-16 11:30:28 -0500

lucasw gravatar image

updated 2020-11-21 12:18:18 -0500

I don't want to disable the heartbeat entirely with /bond_disable_heartbeat_timeout, only increase heartbeat_timeout and/or heartbeat_period- ideally via a ros param, but it is looking like they aren't exposed.

https://answers.ros.org/question/9700... refers to changing the timeout but isn't clear about how they did it- hopefully not by recompiling bond_core?

I see the timeout setting in the following but no other calls to the same method:

https://github.com/ros/bond_core/blob...

setHeartbeatTimeout(bond::Constants::DEFAULT_HEARTBEAT_TIMEOUT);

Can I get at the bond::Bond within my onInit or elsewhere within my nodelet? I see a bond created in https://github.com/ros/nodelet_core/b... - but it looks like it only lives within that while loop.

edit retag flag offensive close merge delete