Coder Social home page Coder Social logo

qualisys / crazyflie-resources Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 107 KB

Resources for integrating Bitcraze Crazyflie projects with Qualisys motion capture systems

Python 100.00%
motion-capture quadcopter drone crazyflie crazyflie-drone qualisys qtm motion-tracking robotics control

crazyflie-resources's People

Contributors

mbaytas avatar ulvs avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

crazyflie-resources's Issues

Event Trigger QTM

This may well be a QTM issue, but I thought I'd raise it here in case anyone else finds it useful.
I have:
Deleted all the event short cuts (there were a punch of blank ones, not sure why)
Reset the synchronisation settings for all cameras.

Connected to QTM, version Version set to 1.17
Getting parameters from QTM...
Starting to record new measurement in QTM...
Starting listening to QTM packet stream...
Found 1 6DoF bodies defined in QTM project:
(0) Name
(1) RGBColor
(2) Point
QTM capture started - Starting measurement
QTM Event received: QRTEvent.EventCaptureStarted
Unhandled Error
Traceback (most recent call last):
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\python\log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\python\log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\python\context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\python\context.py", line 85, in callWithContext
return func(*args,**kw)
--- ---
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\internet\selectreactor.py", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\internet\tcp.py", line 243, in doRead
return self._dataReceived(data)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\internet\tcp.py", line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\twisted\internet\endpoints.py", line 125, in dataReceived
return self.wrappedProtocol.dataReceived(data)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\qtm\protocol.py", line 90, in dataReceived
self.parse_received(data[h_size:size], type
)
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\site-packages\qtm\protocol.py", line 116, in parse_received
self.on_event(event)
File "example-simple-hover.py", line 91, in on_qtm_event
if event == qtm.QRTEvent.EventTrigger:
File "C:\Users\jnld\Anaconda3\envs\chiplay\lib\enum.py", line 348, in getattr
raise AttributeError(name) from None
builtins.AttributeError: EventTrigger

Terminating due to QTM disconnect, reason: EventTrigger

Terminating due to error receiving QTM parameters: string indices must be integers

Getting the following error when trying to run example-simple-hover.py:

~ Qualisys x CrazyFlie ~
Connecting to radio://0/80/2M
Connected to QTM, version Version set to 1.17
Getting parameters from QTM...
Starting to record new measurement in QTM...
Starting listening to QTM packet stream...
Found 1 6DoF bodies defined in QTM project: Terminating due to error receiving QTM parameters: string indices must be integers

Windows 10 with Anaconda3, using QTM 1.0.1, cflib 0.1.6, xmltodict 0.11.0

We're able to establish a connection to the aircraft using the crazyflie PC client, so there's no problem with the radio or the aircraft.

If we modify line:

qtmRigidbodies_idxByName[body['Name']] = i

to read:

qtmRigidbodies_idxByName[body] = i

we get the error:

Got link error callback [Too many packets lost] in state [1] Connection to radio://0/80/2M failed: Too many packets lost Terminating due to error while initializing flight controller: Too many packets lost

Any idea on how to fix this?

Cheers

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.