I can easily draw cruves by using GUI of graph scene object properties in coppelia 4.1.0, but coppelia 4.2.0 reduces some features on graph scene object properties. Is that i have to draw cruves by using graph's customization scripts?
When i using graph's customization scripts, i meet some problems. This is the code I'm using:
Code: Select all
graph=require('graph_customization')
function sysCall_init()
graph=sim.getObjectHandle('Graph')
base=sim.getObjectHandle('base_respondable')
z=sim.addGraphStream(graph,'z','mm')
end
function sysCall_sensing()
p=sim.getObjectPosition(base,-1)
sim.setGraphStreamValue(graph,z,p[3])
end
Code: Select all
67: One of the function's argument type is not correct. (in function 'sim.getObjectInt32Param')
stack traceback:
[C]: in function 'sim.getObjectInt32Param'
...peliaRobotics/CoppeliaSimEdu/lua/graph_customization.lua:67: in function 'sysCall_nonSimulation'
Sincerely,
hhkm10052