Giter Club home page Giter Club logo

Comments (6)

godbyk avatar godbyk commented on July 20, 2024

There is some code in the OSVR USBSerial library that might be useful in avoiding hard-coding the serial port. See also the osvr_list_usbserial app for an example usage.

from osvr-cpi.

ChristophHaag avatar ChristophHaag commented on July 20, 2024

Nice, ChristophHaag@a2303e1 works like a charm (on linux at least).

Thanks for the tip.

from osvr-cpi.

godbyk avatar godbyk commented on July 20, 2024

@ChristophHaag I'm glad it worked for you!

If you're searching for a device with a known VID/PID, you can pass those values as arguments to enumerate() and it will return a list of matching devices (instead of all of the devices). That'd save you having to check the results yourself.

from osvr-cpi.

ChristophHaag avatar ChristophHaag commented on July 20, 2024

Yes, that works better. It's a pretty limited iterator though, for example it doesn't implement the necessary stuff for std::distance to work, so you still have to manually iterate over the entries in order to count them. But that's not a big deal, works fine.

For fswatch (I wrote fswatcher first, but that's another project without Mac OS X support so far) apparently you need to run autotools and configure first for the cmake project to work. Looks like that's going to be a bit of a hassle to set up to work on multiple operating systems in the cmake project. I tried it out with the library installed to the system (when the directory containing libfswatch/ is in the include path) and it seems to work fine. After the file is changed it prints inotify_rm_watch: Invalid argument but it probably doesn't hurt and osvr_server can't be killed with ctrl+c anymore. But it works...

from osvr-cpi.

osvr-phabricator avatar osvr-phabricator commented on July 20, 2024

Hello ChristophHaag@ Any chance to have your changes merged to this project?

Best,

from osvr-cpi.

ChristophHaag avatar ChristophHaag commented on July 20, 2024

I have not started to make pull requests, because several of these changes break the functionality on windows or are at least likely to not work on windows.

from osvr-cpi.

Related Issues (1)

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.