[Resolved]How to acquire data from actual sensors and control the model?

Discussion in 'Simulation' started by Chinmay Swami, Aug 29, 2019.

  1. Hello Everyone,

    I have a model of an arm and want to control the arm in MuJoCo by using a myoware sensor mounted on my own arm. Is there a way to do it ? I have written the code that acquires the data from the sensor and stores it in an array.
    Problem I am facing is how to integrate that code into MuJoCo's mjData datastructure.

    Any help is greatly appreciated. Thanks
     
    Naveen Devinda likes this.
  2. I was able to figure it our and it was fairly simple. I just started with simulate.cpp and just added in my data acquisition code in it. And called the data acquisition function from the simulation thread.
     
    Naveen Devinda likes this.