Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node doesn't exit or reconnect after communication errors #23

Open
pomerlef opened this issue Oct 6, 2015 · 2 comments
Open

Node doesn't exit or reconnect after communication errors #23

pomerlef opened this issue Oct 6, 2015 · 2 comments

Comments

@pomerlef
Copy link

pomerlef commented Oct 6, 2015

The driver is lock if there is a communication issue (ex., the cable is disconnected). The node won't report an error, exit, nor reconnect if the communication is reestablished.

Also, the method isConnected() is not looking actively if the laser is connected, but only report a state written by the connect(std::string host, int port) method.

I'm not sure if the correct behavior should be to kill the node or to report the error using ROS_ERROR and try to reconnect in the background.

@mikepurvis
Copy link
Contributor

The intention is that it loops around and tries to connect again, but this driver is not particularly well architected— it needs some love to make it more robust to those type of events.

@jeff-o
Copy link
Contributor

jeff-o commented Oct 23, 2015

I've noticed this, too. If the ethernet port the driver is expecting to use isn't ready, or perhaps is changing due to a bridge configuration, then the driver will fail to reinitialize. I've worked around it by giving the LIDAR a dedicated static port, but that's just a bandaid solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants