I want to synchronize live my robot and my simulation on Coppelia.
For this, I write positions values continuously in a CSV file (the CSV is rewritten).
Then, I read at the same time, every "y" milliseconds, the values from this CSV on a Coppelia script.
Code: Select all
--lua while true do sim.wait(y) PoseTable = readcsvf_function('path/to/csv_file_test',',') -- need the following condition because sometimes readcsvf_function return nothing if PoseTable ~= nil then ....do things