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

Polaris Vega cannot received coordinates #80

Open
xlzhu0317 opened this issue Jan 8, 2024 · 3 comments
Open

Polaris Vega cannot received coordinates #80

xlzhu0317 opened this issue Jan 8, 2024 · 3 comments

Comments

@xlzhu0317
Copy link

Hi,
thank you for your work.
I have tried to use this package for Polaris Vega. When I run the code, the NDI light turns red, which seems that NDI has been started. But it cannot read the coordinates of the ball, the transform and quality are both NaN.

Port: 2
Timestamp: 1704709059.7533686
Frame Number: 9281772.0
Transform Martix: [[nan nan nan nan]
[nan nan nan nan]
[nan nan nan nan]
[ 0. 0. 0. 1.]]
Tracking Quality: nan

The source code is as follows:
settings_vega = {
"tracker type": "vega",
"ip address": "192.168.3.100",
"port": 8765,
"romfiles" : [
"C:/Users/mi/Desktop/NDI/sroms/8700449.rom",
"C:/Users/mi/Desktop/NDI/data/something_else.rom"]
}
tracker = NDITracker(settings_vega)
tracker.start_tracking()
frame_data = tracker.get_frame()

Can you give me some advice?

@thompson318
Copy link
Collaborator

Hello. What are you trying to track? I see you've listed 8700449.rom. Is that the only tracked object you're trying to track, in which case you should remove something_else.rom from the list of romfiles.

@xlzhu0317
Copy link
Author

Thanks! I removed the something_else.rom, and I can read the coordinates, thank you very much!
In addition, which interface should I use if I want to read the coordinates of a single ball.

@thompson318
Copy link
Collaborator

Hello, I don't think there is any way to get the coordinates of a single ball directly with our library. I'm pretty sure we can only track multi ball rigid bodies, sorry. You might be able to do something with NDI's own software but I'm not sure. Because these systems rely on the unique geometry of different rigid bodies to identify objects you'd only be able to track a single ball at a time.

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

2 participants