You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am facing a problem. I am using Python 3
When I run the code, this error shows up: AttributeError: 'str' object has no attribute 'decode'
I googled it and it seems here we don't need the decode more. I then deleted it, but then a new error showed up:
Traceback (most recent call last):
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 151, in
vive_tracker()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 39, in vive_tracker
v.print_discovered_objects()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 259, in print_discovered_objects
self.devices[device].get_model()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 163, in get_model
print(self.vr.getStringTrackedDeviceProperty(self.index,openvr.Prop_ModelNumber_String))
File "/usr/local/lib/python3.8/dist-packages/openvr/init.py", line 3213, in getStringTrackedDeviceProperty
openvr.error_code.TrackedPropertyError.check_error_value(error.value)
File "/usr/local/lib/python3.8/dist-packages/openvr/error_code/init.py", line 23, in check_error_value
raise error_class(error_value, message)
openvr.error_code.TrackedProp_UnknownProperty
How do I fix it?
Thanks it advance
The text was updated successfully, but these errors were encountered:
Hi, I am facing a problem. I am using Python 3
When I run the code, this error shows up: AttributeError: 'str' object has no attribute 'decode'
I googled it and it seems here we don't need the decode more. I then deleted it, but then a new error showed up:
Traceback (most recent call last):
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 151, in
vive_tracker()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 39, in vive_tracker
v.print_discovered_objects()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 259, in print_discovered_objects
self.devices[device].get_model()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 163, in get_model
print(self.vr.getStringTrackedDeviceProperty(self.index,openvr.Prop_ModelNumber_String))
File "/usr/local/lib/python3.8/dist-packages/openvr/init.py", line 3213, in getStringTrackedDeviceProperty
openvr.error_code.TrackedPropertyError.check_error_value(error.value)
File "/usr/local/lib/python3.8/dist-packages/openvr/error_code/init.py", line 23, in check_error_value
raise error_class(error_value, message)
openvr.error_code.TrackedProp_UnknownProperty
How do I fix it?
Thanks it advance
The text was updated successfully, but these errors were encountered: