osvr / osvr-tracker-viewer Goto Github PK
View Code? Open in Web Editor NEWUtility for viewing OSVR tracking data, using OpenSceneGraph.
License: Apache License 2.0
Utility for viewing OSVR tracking data, using OpenSceneGraph.
License: Apache License 2.0
I compiled the source code with cmake. I set entries like follow:
-DBOOST_ROOT="C:/local/boost_1_62_0" ^
-DBOOST_LIBRARYDIR="C:/local/boost_1_62_0/lib64-msvc-12.0" ^
-Dosvr_DIR="d:/Project/OSVR-Build/OSVR/OSVR-Core/build" ^
and show error like follow:
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
OPENTHREADS_FOUND OSGDB_FOUND OSGVIEWER_FOUND OSGGA_FOUND OSGUTIL_FOUND
OSG_FOUND)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.7/Modules/FindOpenSceneGraph.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:11 (find_package)
My installation is on Ubuntu Studio 15.10
Default manually installation of
Open Scene Graphics installs in /usr/local/lib64 so Tracker needs additional argument to work
$ cd OSVR-Tracker-Viewer/build
$ cmake -DOSG_DIR=/usr/local/lib64/ ..
$ sudo make install
after build it installs in wrong place.
-- Installing: /usr/local/./OSVRTrackerView
./OSVRTracker/View
This command works to start viewer but installed copy is in wrong place
requiring following.
$ mv /usr/local/OSVRTrackerView /usr/local/bin
but now as warned Open Scene Graphics library is in /usr/local/lib64 not /usr/local/lib
/OSVR-Tracker-Viewer/build$ OSVRTrackerView
OSVRTrackerView: error while loading shared libraries: libosgDB.so.130: cannot open shared object file: No such file or directory
This repo also contains a VRPN-native tracker viewer, based on the same code. They might be unified into a single branch again. If nothing else, that branch should be licensed accordingly (probably pref. BSL 1.0 to match VRPN, but Apache 2.0 would work) since the code is mostly shared, and I know of at least 5 non-open-source VRPN tracker viewers but none that are open source licensed.
I am trying to run OSVR-Tracker-Viewer source code,
but Crush in m_ctx = new OSVRContext("org.osvr.trackerview"),
I have no idea how to solve, please help me, thanks.
Dev Env: VS2015, X64,
Running Tracker Viewer in Ubuntu 14.04 displays a Blue Screen when HMD connected to OSVR Server. This is caused by incompatibilities with later versions of OpenSceneGraph past 3.4.x
When running Tracker Viewer without the HMD connected but the OSVR Server running, the program draws the grid with axis. The mouse works to rotate around the axis.
However, if I start Tracker Viewer WITH the HMD connected, the grid and axis display for about 1/2 a second and then blue is drawn on the screen and nothing else can be seen.
Using head from OpenSceneGraph (which is the latest version). This might be the problem.
Aug 23 17:00:37.490 notice [OSVR]: Log file created in /home/spethm/.cache/osvr/logs
Aug 23 17:00:37.490 notice [OSVR]: Log file name starts with "OSVRTrackerView"
Aug 23 17:00:37.490 notice [OSVR]: Logging for /home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/dist/OSVRTrackerView
Aug 23 17:00:37.502 debug [OSVR ClientKit]: Connecting to default (local) host
Aug 23 17:00:37.526 info [OSVR: org.osvr.trackerview]: OSVR client context initialized for org.osvr.trackerview
Aug 23 17:00:37.528 info [OSVR: org.osvr.trackerview]: Got connection to main OSVR server
Aug 23 17:00:37.580 debug [OSVR: org.osvr.trackerview]: Got updated path tree, processing
Aug 23 17:00:37.580 info [OSVR: org.osvr.trackerview]: Connected 0 of 0 unconnected paths successfully
Aug 23 17:00:37.582 info [OSVR: org.osvr.trackerview]: Connection process took 54ms: have connection to server, have path tree
Aug 23 17:00:37.612 info [OSVR]: /home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Core/src/osvr/Common/ClientInterface.cpp:38: Interface initialized for /me/head
Aug 23 17:00:37.614 info [OSVR]: /home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Core/src/osvr/Client/TrackerRemoteFactory.cpp:93: Constructed a TrackerHandler for org_osvr_filter_videoimufusion/HeadFusion@localhost:3883 sensor 0
Aug 23 17:00:37.614 info [OSVR: org.osvr.trackerview]: Successfully produced handler for /me/head
Aug 23 17:00:41.231 info [OSVR: org.osvr.trackerview]: OSVR client context shut down for org.osvr.trackerview
OSVRTrackerView_2016-08-23_10-27.log OSVRTrackerView_2016-08-23_11-22.log OSVRTrackerView_2016-08-23_11-33.log OSVRTrackerView_2016-08-23_17-00.log
OSVRTrackerView_2016-08-23_11-06.log OSVRTrackerView_2016-08-23_11-28.log OSVRTrackerView_2016-08-23_16-58.log OSVRTrackerView_2016-08-23_17-06.log
spethm@monky:~/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script$ cat /home/spethm/.cache/osvr/logs/OSVRTrackerView_2016-08-23_17-06.log
Aug 23 17:06:18.111 notice [OSVR]: Log file created in /home/spethm/.cache/osvr/logs
Aug 23 17:06:18.111 notice [OSVR]: Log file name starts with "OSVRTrackerView"
Aug 23 17:06:18.111 notice [OSVR]: Logging for /home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/dist/OSVRTrackerView
Aug 23 17:06:18.124 debug [OSVR ClientKit]: Connecting to default (local) host
Aug 23 17:06:18.148 info [OSVR: org.osvr.trackerview]: OSVR client context initialized for org.osvr.trackerview
Aug 23 17:06:18.150 info [OSVR: org.osvr.trackerview]: Got connection to main OSVR server
Aug 23 17:06:18.153 debug [OSVR: org.osvr.trackerview]: Got updated path tree, processing
Aug 23 17:06:18.154 info [OSVR: org.osvr.trackerview]: Connected 0 of 0 unconnected paths successfully
Aug 23 17:06:18.155 info [OSVR: org.osvr.trackerview]: Connection process took 4ms: have connection to server, have path tree
Aug 23 17:06:18.217 info [OSVR]: /home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Core/src/osvr/Common/ClientInterface.cpp:38: Interface initialized for /me/head
Aug 23 17:06:18.218 info [OSVR]: /home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Core/src/osvr/Client/TrackerRemoteFactory.cpp:93: Constructed a TrackerHandler for org_osvr_filter_videoimufusion/HeadFusion@localhost:3883 sensor 0
Aug 23 17:06:18.218 info [OSVR: org.osvr.trackerview]: Successfully produced handler for /me/head
Aug 23 17:06:20.366 info [OSVR: org.osvr.trackerview]: OSVR client context shut down for org.osvr.trackerview
During compilation, I get these warning:
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp: In constructor ‘Grid::Grid(unsigned int, float, unsigned int)’:
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:86:26: warning: conversion to ‘float’ from ‘unsigned int’ may alter its value [-Wconversion]
line_spacing *= bold_every_n;
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp: In member function ‘osg::MatrixTransform* Grid::make_grid(unsigned int, float)’:
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:116:57: warning: conversion to ‘float’ from ‘unsigned int’ may alter its value [-Wconversion]
(*vertices)[ptr++].set(-length / 2.0f + i * line_spacing,
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:118:57: warning: conversion to ‘float’ from ‘unsigned int’ may alter its value [-Wconversion]
(*vertices)[ptr++].set(-length / 2.0f + i * line_spacing,
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:124:57: warning: conversion to ‘float’ from ‘unsigned int’ may alter its value [-Wconversion]
-length / 2.0f + i * line_spacing, 0.0f);
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:126:57: warning: conversion to ‘float’ from ‘unsigned int’ may alter its value [-Wconversion]
-length / 2.0f + i * line_spacing, 0.0f);
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp: In member function ‘osg::MatrixTransform* Grid::make_axes(unsigned int, float)’:
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:147:49: warning: conversion to ‘float’ from ‘unsigned int’ may alter its value [-Wconversion]
const float length = (line_count - 1) * line_spacing;
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp: At global scope:
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:197:7: warning: ‘class TrackedSensor’ has pointer data members [-Weffc++]
class TrackedSensor : public OSVRInterfaceData {
^
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:197:7: warning: but does not override ‘TrackedSensor(const TrackedSensor&)’ [-Weffc++]
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:197:7: warning: or ‘operator=(const TrackedSensor&)’ [-Weffc++]
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp: In constructor ‘TrackedSensor::TrackedSensor(OSVRContext&, const string&, osg::MatrixTransform&, osg::Node&)’:
/home/spethm/Work/MonkyGames/projects/osvr/osvr-ubuntu-build-script/OSVR-Tracker-Viewer/OSVRTrackerView.cpp:199:5: warning: ‘TrackedSensor::switchNode_’ should be initialized in the member initialization list [-Weffc++]
TrackedSensor(OSVRContext &ctx, std::string const &path,
Much better than a hard-coded script.
Right now, an object that is at eye height is outside the default zoom of trackerViewer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.