Data Recording and Playback

Typically: "How do I... ", "How can I... " questions
Post Reply
vis
Posts: 2
Joined: 11 Jan 2014, 14:49

Data Recording and Playback

Post by vis »

Hello,
Is it possible to record simulation in a file and replay it whenever needed,in simulation itself.(Don't misunderstood with video recording)?

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

Re: Data Recording and Playback

Post by coppelia »

Hello,

yes, you can do this, however currently only programmatically. The basic steps are:
  • in a first step, record the position and orientation of every object in your scene, for each simulation step. Store that information in a file.
  • in a second step, read the saved position and orientation information, and apply it to the objects in your scene. You will have in that case to also disable kinematics, dynamics, etc., or to execute the operation in a child script that is executed in the sensing phase.
Cheers

Post Reply