Giter Club home page Giter Club logo

pyvicon's People

Contributors

jamesturner246 avatar mathgaron avatar

Stargazers

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

Watchers

 avatar

pyvicon's Issues

pyvicon on Windows?

Thanks for your extraordinary work on vicon SDK with python3.

Do you have try your pyvicon in Windows?

I tried to do that. You guessed it, it didn't work.
Python interpreter told it could not open several .h and .lib files.
I found the same-name files from Nexus installation directory.
But I did not work.

So, would you try to change your pyvicon package to work on Windows? And add necessary include .h/.lib files? Thank you very much.

installation issue

When I try to load into Mavproxy, pyvicon.py fails at line 1 "import pyvicon_module". Is that just a symbolic name for pyvicon.cpp? Where should that module be? Any help would be greatly appreciated.

pyvicon on macOS

Hi, I am trying to install pyvicon on macOS, but building 'pyvicon_module' extension keep failing, and it seems it is because it cannot link to libViconDataStreamSDK_CPP.dylib.
Although I played with it for more than a week from giving linking options to Extension package in setup.py to manipulating @executable_path of the .dylib files, I could not install it.

seg fault/terminate after running

I wrote a simple Python program to grab coordinates of an object.

I'm doing a continual loop that looks like this:

    while True:
        vicon.get_frame()
        t=vicon.get_segment_global_translation(subject,root_seg_name)
        if t is None:
            continue
        x=t[0]/1000;
        y=t[1]/1000;
        z=t[2]/1000;
        print("X: {0:.6f} Y: {0:.6f} Z: {0:.6f}".format(x,y,z))
        time.sleep(.01)

After running for a period of time the call to get_frame fails with either a segmentation fault or
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

Unfortunately, it appears to be happening in pyvicon.cpp at this line:
out = client->GetFrame();

I suspect this is internal to the Vicon SDK, But I don't know.

UPDATE:
Fixed by changing the client to Pull from PreFetch

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.