Skip to content

Instantly share code, notes, and snippets.

@xgerrmann
xgerrmann / analytic_wfm.py
Created July 16, 2016 18:53 — forked from sixtenbe/analytic_wfm.py
Peak detection in Python
#!/usr/bin/python2
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See
void printCache(){
gArticulation->releaseCache(*articulationCache);
articulationCache= gArticulation->createCache();
const int maxLinks = 64;
PxArticulationLink* links[maxLinks];
PxU32 TotalLinkCount = gArticulation->getLinks(links, maxLinks, 0);
std::cout << "Total links: " << TotalLinkCount << std::endl;
PxU32 dofStarts[maxLinks];