qualisys / crazyflie-resources Goto Github PK
View Code? Open in Web Editor NEWResources for integrating Bitcraze Crazyflie projects with Qualisys motion capture systems
Resources for integrating Bitcraze Crazyflie projects with Qualisys motion capture systems
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
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
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.