Page 1 of 1

graph object

Posted: 11 Feb 2024, 23:51
by asbot
Hi,

I am trying to plot the trace of the path followed by a Pioneer 3dx robot. For that I want to use Graph object's "Add New Data Streams to Record" feature. However, I do not see the "Add New Data Streams to Record" option in the Graph property window. My question is, how can I have the feature "Add New Data Streams to Record"?

Thank you.

Re: graph object

Posted: 12 Feb 2024, 09:41
by fferri
It is done in code, with sim.addGraphStream / sim.addGraphCurve.

See the example at https://manual.coppeliarobotics.com/en/graphs.htm

Re: graph object

Posted: 18 Feb 2024, 03:28
by asbot
Thank you for providing the names of the functions and the link. However, I want to plot the graph curve in the scene using matlab's api. Can you please let me know if that is possible and how to achieve that?

Re: graph object

Posted: 18 Feb 2024, 09:50
by fferri
Yes, you should use ZeroMQ remote API which makes all API functions available to MATLAB too.