0
$\begingroup$

Rosanswers logo

Will the rosserial client, in particular, rosserial_arduino, reconnect and republish topics if it loses its connection to the master?

For my use case, it would be nice if my Arduino would reconnect automatically when I restart ROS on my computer.


Originally posted by ahendrix on ROS Answers with karma: 47576 on 2011-09-06

Post score: 3

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

The rosserial_python node will automatically resync topics with the Arduino whenever it A) starts up, or B) decides the connection has failed. This is currently done by using the ros::Time synchronization call as a keep alive, if no calls show up in a given time, the connection is restarted (this can take up to 5-10s currently).


Originally posted by fergs with karma: 13902 on 2011-09-06

This answer was ACCEPTED on the original site

Post score: 3

$\endgroup$

Your Answer

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