alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
499 stars 53 forks source link

[Error 111]connection refused error #278

Closed hitdezhazha closed 1 year ago

hitdezhazha commented 2 years ago

I try to call the opengen MPC algorithm to calculate at a constant frequency(for now 25Hz), but every time after servel seconds there comes this error: [Error 111]connection refused. image

alphaville commented 2 years ago

Could you please provide some additional information? Does the server work and then it fails, or does it never connect?

alphaville commented 1 year ago

Most likely, this is because you are trying to connect to a server that doesn't bind to the address you have provided. This is a safety precaution: when you design your TCP interface, you need to provide an IP. If the IP you used there is not 192.168.137.1, the server will not accept requests. You can allow incoming requests at all IPs by using the address 0.0.0.0. However, without looking at your code I cannot tell what the issue might be. I will close this issue for now, but feel free to comment.