apollack11 / vive_tracker_loc

A software package to determine the pose of the HTC Vive Tracker with only an HTC Vive Lighthouse
Other
31 stars 4 forks source link

Building on Jetson TX2 #2

Open danmartinez78 opened 6 years ago

danmartinez78 commented 6 years ago

I'm trying to build cmake_convert branch on Jetson TX2 to use the ROS node. I'm running into an error

In file included from /opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/core/core.hpp:48:0, from /home/nvidia/precision_tool/src/vive_tracker_loc/include/posecalc/opencv_pose_calc.h:5, from /home/nvidia/precision_tool/src/vive_tracker_loc/src/poser_pollackpnp.c:9: /opt/ros/kinetic/include/opencv-3.3.1-dev/opencv2/core.hpp:49:4: error: #error core.hpp header must be compiled as C++ error core.hpp header must be compiled as C++

Any help?

jarvisschultz commented 6 years ago

This issue is very likely related to the fact that the project was originally built on OpenCV 2.4.8 which, it seems, allowed headers to be compiled with a C compiler. On OpenCV 3.x, that doesn't seem to be the case anymore. What version of OpenCV are you using? I just pushed a quick attempt at fixing this issue to the jarvis_edits branch. It compiles with no errors or warnings on the 14.04+OpenCV 2.4.8 and the 16.04+OpenCV 3.3.1 machines I had easily accessible.

Note I haven't tested on the real tracker hardware.

danmartinez78 commented 6 years ago

This commit builds on my machine. Will test with tracker ASAP.

skymeson commented 4 years ago

Project builds and runs on my PC, but now I'm testing on a TX2 and I'm running into an issue. The jarvis_edits branch builds but I'm not able to launch runposer without an error. I've added udev rules but not able to open device.

Loading driver DriverRegHTCVive (0x7f96518678) (1) Error: Error: cannot open device "HMD" with vid/pid 0bb4:2c87

Did you encounter this on your TX2? Was there a work around, and were you ever able to get pose data on your TX2? Thanks!