Git Product home page Git Product logo

osvr-tracker-viewer's People

Contributors

d235j avatar godbyk avatar rpavlik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osvr-tracker-viewer's Issues

CMake Error : Could NOT find OpenSceneGraph

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)

Binary doesn't install to GNU install dirs on non-Windows.

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

Apply license to the VRPN branch of this repo

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.

Ubuntu - OSVR Tracker Viewer Screen Goes Blue

Problem

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

Details

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.

Logs

When HMD is connected

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

When HMD is disconnected

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,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.