-
Notifications
You must be signed in to change notification settings - Fork 32
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
UnicodeDecodeError when 3 rigid bodies are in view of the Polaris Vicra #46
Comments
This may be a problem with trying to use BX transforms. Have a look at _set_use_bx_transforms in nditracker.py. You can add your devices firmware string to the list at line 169. If that fixes your problem then you should probably transfer this issue to scikit-surgeryndirtracker and create a pull request there. |
We've seen very similar with other trackers: see SciKit-Surgery/scikit-surgerynditracker#17 |
A binary buffer is attempted to be interpreted as utf8 encoded string, but of course not all binary stream is valid utf8. To fix it, replace |
Thanks for the help - I suspected it would be something like this but couldn't find where it was happening. With your comment I've found where this is in the code, built the code and started trying to make a fix! I'm looking at using PyBytes_FromString instead of PyUnicode_FromUTF8 where a command is received, but this change results in other errors, which I'm now hunting down. |
Stracktrace:
This reliably happens when I move a third rigid body into the view of the Polaris vicra. Otherwise, tracking works perfectly.
I would really appreciate a bit of guidance as to where to look to fix this problem. Am I right that the error is in this repository, ndicapi? Where does ndicapy reside? Is the Error thrown from python or C++ code?
The text was updated successfully, but these errors were encountered: