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
Hello,
I am trying to use this repository to use vive tracker with ROS and keep on getting errors.
I am using ubuntu 18.04 with ROS melodic.
As you know ros melodic uses python 2.7 and thus keep on giving me this error when I
roslaunch vive_tracker vive_tracker.launch
File "/home/glab/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 6, in <module> import triad_openvr File "/home/glab/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 3, in <module> import openvr File "/usr/local/lib/python2.7/dist-packages/openvr/__init__.py", line 2923 def getProjectionMatrix(self, eye, nearZ: float, farZ: float): ^ SyntaxError: invalid syntax [vive/vive_tracker-5] process has died [pid 11449, exit code 1, cmd /home/glab/catkin_ws/src/vive_tracker/scripts/vive_tracker.py __name:=vive_tracker __log:=/home/glab/.ros/log/1674945c-e610-11eb-be62-709cd13e9815/vive-vive_tracker-5.log]. log file: /home/glab/.ros/log/1674945c-e610-11eb-be62-709cd13e9815/vive-vive_tracker-5*.log Generating vive_world frame..........
I tried to switch my default python interpreter to python3.6 but it also didn’t work.
I also tried to use openvr 1.3.2201 which also gave me the same error...
I was wondering how you managed to run the files. Did you use python 3.5+ as ROS’s interpreter? Or am I doing something wrong?
I have been stuck here for so long.. I hope you can help me.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Oh, it was a simple fix. The problem was with the openvr version. The openvr 1.3.2201 was not installed properly and I had to build it from source. Thank you anyways!
Hello,
I am trying to use this repository to use vive tracker with ROS and keep on getting errors.
I am using ubuntu 18.04 with ROS melodic.
As you know ros melodic uses python 2.7 and thus keep on giving me this error when I
roslaunch vive_tracker vive_tracker.launch
File "/home/glab/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 6, in <module> import triad_openvr File "/home/glab/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 3, in <module> import openvr File "/usr/local/lib/python2.7/dist-packages/openvr/__init__.py", line 2923 def getProjectionMatrix(self, eye, nearZ: float, farZ: float): ^ SyntaxError: invalid syntax [vive/vive_tracker-5] process has died [pid 11449, exit code 1, cmd /home/glab/catkin_ws/src/vive_tracker/scripts/vive_tracker.py __name:=vive_tracker __log:=/home/glab/.ros/log/1674945c-e610-11eb-be62-709cd13e9815/vive-vive_tracker-5.log]. log file: /home/glab/.ros/log/1674945c-e610-11eb-be62-709cd13e9815/vive-vive_tracker-5*.log Generating vive_world frame..........
I tried to switch my default python interpreter to python3.6 but it also didn’t work.
I also tried to use openvr 1.3.2201 which also gave me the same error...
I was wondering how you managed to run the files. Did you use python 3.5+ as ROS’s interpreter? Or am I doing something wrong?
I have been stuck here for so long.. I hope you can help me.
Thank you in advance!
The text was updated successfully, but these errors were encountered: