Hello,
It is possible to pack matrices in Python and send them to Coppelia? I've only seen arrays being packed. If possible, could someone give me an example of how to do it? Thanks!
Packing Matrices from Python
Re: Packing Matrices from Python
Hello,
as you mention it, you can pack arrays with the legacy remote API, e.g. with simxPackFloats. So you could flatten your matrix.
But better would be to use something like messagePack to serialize/deserialize your data. Have a look at the demo scene movementViaRemoteApi.ttt and its counterpart programming/remoteApiBindings/python/python/sendMovementSequence*.py or programming/b0RemoteApiBindings/python/sendMovementSequence*.py
Cheers
as you mention it, you can pack arrays with the legacy remote API, e.g. with simxPackFloats. So you could flatten your matrix.
But better would be to use something like messagePack to serialize/deserialize your data. Have a look at the demo scene movementViaRemoteApi.ttt and its counterpart programming/remoteApiBindings/python/python/sendMovementSequence*.py or programming/b0RemoteApiBindings/python/sendMovementSequence*.py
Cheers