Programmatically change mocap anchor?

Discussion in 'Simulation' started by Chris Richards, Mar 15, 2017.

  1. Dear forum,
    As the simulation runs, is it possible to programmatically modify the mocap anchor value that is set in the connect equality constraint .xml code?

    Best,
    Chris
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    You should be able to change mjModel.body_mocapid between time steps. Just make sure that the number of mocap bodies remains the same and the id's are in order.
     
  3. OK, thanks for the quick reply.

    Best,
    Chris