UM-LoCoLab / NeuroLocoMiddleware

Wrapper library for wearable robotics.
MIT License
2 stars 4 forks source link

Merge ZMQ publisher to main branch. #5

Closed tkevinbest closed 3 weeks ago

tkevinbest commented 1 month ago

This module allows a python script to publish current values to the network. This can be helpful when you have multiple computers running and you want to communicate latest values between them. For example:

Example usage

from NeuroLocoMiddleware.PubSubNetworking_ZMQ import Publisher

for t in loop:
    publisher.publish(topic = 'OSLV2.loopTimestamp',message="%6.2f" % t)
    publisher.publish(topic = 'OSLV2.filename', message = viconLogName)
jmontp commented 3 weeks ago

Idk if it runs but it's well documented and has a test case :+1: