GazzolaLab / Elastica-RL-control

Code for the cases presented in the paper "Elastica: A compliant mechanics environment for soft robotic control"
MIT License
26 stars 9 forks source link

How can we run the postprocessing scripts #9

Closed sai-aneesh closed 2 years ago

sai-aneesh commented 2 years ago

Hi all,

I wanted to know how we can run the postprocessing scripts. Where do we get the 2 required positional arguments: 'rods_history' and 'sphere_history' from? (for case2)

armantekinalp commented 2 years ago

In order to use post processing scripts you have to collect the data. Here in the script how we collect data from the simulation. To see how we call the post processing functions and which arguments we pass please check this.

sai-aneesh commented 2 years ago

Okay I understood it now. First we train by running logging_bio_args.py After training and getting the policy, we have to set args.TRAIN = False and run logging_bio_args.py again for getting post processing output. Is that right?

armantekinalp commented 2 years ago

Yes that is correct.