OSC_ROS2/osc_recieve.py
Alexander Schaefer 33f21d3096 remove gitignore
2025-04-22 17:10:24 +02:00

15 lines
303 B
Python

from osc4py3.as_eventloop import *
from osc4py3 import oscmethod as osm
import time
def handler(*args):
print(args)
osc_startup()
osc_udp_server("0.0.0.0", 8000, "osc_server")
osc_method("/coordinates", handler, argscheme=osm.OSCARG_DATAUNPACK)
while True:
osc_process()
time.sleep(0.01)