bernuly
12/23/2014 - 9:30 PM

YARP python send Properties

YARP python send Properties

import yarp

yarp.Network.init();
portOutSBM = yarp.BufferedPortBottle();
print("opening yarp port")
portOutSBM.open("/artatt/out");
os.system("yarp connect /artatt/out /mind");

while 1:

	bottleOutSBM = portOutSBM.prepare()
	bottleOutSBM.clear()
	propX = bottleOutSBM.addDict()
	propX.put("x", x)

	propY = bottleOutSBM.addDict()
	propY.put("y", y)

	propZ = bottleOutSBM.addDict()
	propZ.put("z", z)