Page 1 of 1

How to use simSetGraphUserData from Python remote api?

Posted: 26 Jan 2019, 12:52
by mohtashem
Hi,

I am using Python remote api and VREP to simulate some torque control of a double inverted pendulum. The code is entirely written in python with no code on the vrep side. I am specifying disturbing forces in the python code and I need to have it displayed in V-rep graphs to compare with the joint jorque.

I am aware that the data stream type is to set to 'user defined' and Objects/items to record as 'User data'. But I can't seem to find simSetGraphUserData in python api. Does it have an equivalent in python? Kindly help.

Re: How to use simSetGraphUserData from Python remote api?

Posted: 28 Jan 2019, 15:25
by coppelia
Hello,

no, you don't have an equivalent API call. But you can add a child script to the scene that contains a function that calls sim.setGraphUserData. Then you can call that function via simxCallScriptFunction.

Cheers