Read Anchor Position

All discussions related to the Loco Positioning system
Post Reply
stupid_moron
Beginner
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>lopoanchor.py, 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 "lopoanchor.py" but it doesnt seem to working.

own code aded into lopoanchor.py:

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