script to record rope and robot states in simulated exection