Read Anchor Position

All discussions related to the Loco Positioning system
Post Reply
Posts: 22
Joined: Tue Jan 21, 2020 7:05 am

Read Anchor Position

Post by stupid_moron »

I was wondering, from the Cf client, I am able to "configure positions" and thereafter "get from anchors" or "write to anchors"

However, via the python scipt, fom the CFlibmaster>lpslib>, i only see the def setposition(self,anchor_id,position) and am successful in writing the values to the nodes. How am i able to read the values from the nodes instead?

I have trid adding my own code into the "" but it doesnt seem to working.

own code aded into

def get_positon (self,ancor_id)
data = stuct.pack('Bfff", LoPoAnchor.LPP_TYPE_POSITION, x, y, z)
return data
Post Reply