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 · 8 comments
Open

Send Open IGT Link after a message was recieved #177

aliceinwolderland opened this issue Mar 20, 2018 · 8 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

@ningw-git
Copy link

Hello, I want to connect NDI Polaris Vega ST to PlusServer and 3D Slicer, but now I keep getting errors when connecting NDI Polaris Vega ST to PlusServer. I have read various forums, but the problem keeps occurring:
|INFO|1644.036000| Connect using configuration file: D:\PlusServer\install\PlusApp-2.8.0.20191105-Win64\config\PlusDeviceSet_Server_NDIVega.xml| in E:\D\PSNP64b\PlusApp\PlusServerLauncher\PlusServerLauncherMainWindow.cxx(639)
|INFO|1644.036000| Server process command line: "D:/PlusServer/install/PlusApp-2.8.0.20191105-Win64/bin/PlusServer.exe" --config-file="PlusDeviceSet_Server_NDIVega.xml" --verbose=3| in E:\D\PSNP64b\PlusApp\PlusServerLauncher\PlusServerLauncherMainWindow.cxx(320) |INFO|1644.699000| Server process started successfully| 6000|SERVER> Unable to get the number of handles. Error: Serial port write error| in :\D\PSNP64b\PlusLib\src\PlusDataCollection\NDICAPITracking\vtkPlusNDITracker.cxx(631) |ERROR|1667.477000|SERVER> Failed to enable tool ports| in :\D\PSNP64b\PlusLib\src\PlusDataCollection\NDICAPITracking\vtkPlusNDITracker.cxx(319) |ERROR|1667.477000|SERVER> TrackerDevice: Cannot connect to data source, ConnectInternal failed| 47) |ERROR|1667.477000|SERVER> Unable to connect device: TrackerDevice.| in :\D\PSNP64b\PlusLib\src\PlusDataCollection\vtkPlusDataCollector.cxx(353) |ERROR|1667.478000|SERVER> Datacollector failed to connect to devices| in :\D\PSNP64b\PlusLib\src\PlusServer\Tools\PlusServer.cxx(106) |ERROR|1667.550000| Server stopped unexpectedly. Return code: 1| 0| Disconnect request successful| in E:\D\PSNP64b\PlusApp\PlusServerLauncher\PlusServerLauncherMainWindow.cxx(632)

@tokjun
Copy link
Contributor

tokjun commented Aug 14, 2024

@ningw-git The issue seems to be related to PlusServer, not OpenIGTLink. Can you post your question to https://github.com/PlusToolkit/PlusLib/issues ?

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

5 participants