neurobionics / opensourceleg

An open-source software library for numerical computation, data acquisition, and control of lower-limb robotic prostheses.
https://opensourceleg.org
GNU Lesser General Public License v2.1
28 stars 32 forks source link

Merge in NL_Middleware helpful classes #218

Open tkevinbest opened 4 months ago

tkevinbest commented 4 months ago

🚀 Feature Request

We have lots of classes that are written for NL_Middleware that may be helpful to the OSL community. For example, my ZMQ publisher is useful to broadcast data from the OSL. Perhaps viconMan too? Gray's Stat profiler? The possibilities are endless!

For example, here's a link to the ZMQ publisher: https://github.com/UM-LoCoLab/NeuroLocoMiddleware/blob/OSL2_integrationBranch/PubSubNetworking_ZMQ.py

tkevinbest commented 4 months ago

ACTUALLY - let's start with Stat Profiler: https://github.com/UM-LoCoLab/NeuroLocoMiddleware/blob/main/StatProfiler.py

@SSProfile.profile('myFunc')
def something:
     code you wanna time
tkevinbest commented 4 months ago

Assigning @ellliewilson to adding the StatProfiler class to the utilities module. We need to port over stat profiler, write some unit tests, doc strings, and add it to the documentation.