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

Making this work again #15

Open alexswerner opened 1 month ago

alexswerner commented 1 month ago

Hi,

amazing work here. But the software has moved on and I would like to make it work again. So far I have:

Right now I can execute the training for PPO in Case1 which is at least something. This is by directly calling:

python3 logging_bio_args.py --total_timesteps=10000000.0 --SEED=0 --timesteps_per_batch=32000 --algo=PPO

I pushed the code here: https://github.com/alexswerner/Elastica-RL-control

However, the output of the post processing script does not show a moving robot. :-(

So there is still some work to do.

alexswerner commented 3 weeks ago

The PPO test case seems to work again after some debugging. Key findings:

One option question for precisely reproducing the test case is how to transfer the nu specified in the old Cosserat rod constructor to the new dampen API.

armantekinalp commented 3 weeks ago

Hey,

Thank you for your interest.

For the current PyElastica damping implementation, you can scale the nu as nu_new = nu_old / density / base_area