Ask Your Question
3

Will the RosSerial client reconnect?

asked 2011-09-06 15:51:20 -0500

ahendrix gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-09-06 18:34:41 -0500

fergs gravatar image

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).

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

Stats

Asked: 2011-09-06 15:51:20 -0500

Seen: 762 times

Last updated: Sep 06 '11