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

Send Open IGT Link after a message was recieved #177

Open
aliceinwolderland opened this issue Mar 20, 2018 · 6 comments
Open

Send Open IGT Link after a message was recieved #177

aliceinwolderland opened this issue Mar 20, 2018 · 6 comments

Comments

@aliceinwolderland
Copy link

No description provided.

@adamrankin
Copy link
Contributor

Hello,

Is there a question or problem?

@aliceinwolderland
Copy link
Author

i don't know how to do that, the program needs to ckeck if a certain message was sent and afterwards send an Open IGT Link update

@adamrankin
Copy link
Contributor

Well, if your program is using sockets, then you'll have to check the return code from your send() function. Most of them will return an error code of timeout if the send did not complete.

Are you using igtl::ClientSocket as your client connection?

How do you want to send an update? Do you want to send an OpenIGTLink STATUS message?

@aliceinwolderland
Copy link
Author

aliceinwolderland commented Mar 21, 2018 via email

@adamrankin
Copy link
Contributor

Do you mean receiving a message? Or do you want to react to your own sending of messages?

igtl::Socket::Send(...) (parent of ClientSocket) wraps send(...)

If it returns with no error code, the data has been sent successfully.

@yunmengzhang
Copy link

I have connected NDI Polaris Vega ST to PlusServer, and 3D Slicer. I want to send the transforms information and the position data to python, have you tried to do this? @adamrankin

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