-
Notifications
You must be signed in to change notification settings - Fork 27
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
No comms on OSX #8
Comments
Hi! Thanks for making cROS compiling under mac osx! |
Ok, I made some trials with the following configuration:
The problem is the select call, it returns timeout everytime. |
I finally had a chance to look back at this. I've tracked the problem down to an apparent difference between Linux and OSX in the behavior of
On Linux, this program gives the following output:
On OSX, here's the output:
That is, on Linux, a freshly created socket is apparently writable, while on OSX, it is not. This is a problem in cros because to get things going, we need to find a writable I'll now try for a workaround. |
I haven't figured out the right way to fix the problem on OSX. In principle, I believe that we need to initiate the
If the socket is non-blocking, then it would be OK to initiate the @onnivoro, what do you think about how to address this issue? Also, would you consider accepting a PR to fix the basic compile, link, and run issues on OSX, without making it actually work? Or would you prefer to wait until we actually have it working? It would be a bit easier for me if the basic compilation fixes were merged earlier. |
@gerkey you are welcome to make a pull request with OSX compile fixes. Many thanks for your work on trying to find out a solution to the |
I'm trying out cros on OSX 10.10. I have a branch that fixes simple compile problems and avoids passing -1 file descriptors to
FD_SET()
(the manpage says that this leads to undefined behavior, and while Linux tolerates it, OSX just segfaults):master...gerkey:os_fixes2
So now I can build and run examples, but nothing connects. I don't see any indication that
roscore
is being contacted by the nodes. I'm happy to do the debugging, but I'd love to get some guidance on where to look for the problemThe text was updated successfully, but these errors were encountered: