How to use simSetGraphUserData from Python remote api?

Typically: "How do I... ", "How can I... " questions
Post Reply
mohtashem
Posts: 8
Joined: 17 Apr 2017, 20:03

How to use simSetGraphUserData from Python remote api?

Post by mohtashem » 26 Jan 2019, 12:52

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.

coppelia
Site Admin
Posts: 7272
Joined: 14 Dec 2012, 00:25

Re: How to use simSetGraphUserData from Python remote api?

Post by coppelia » 28 Jan 2019, 15:25

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

Post Reply