Giter Site home page Giter Site logo

Comments (6)

riturajkaushik avatar riturajkaushik commented on September 23, 2024

Hey, thanks for reminding. I forgot to correct these absolute paths. And yes, it seems env_params.txt were removed by gitignore. I'll anyways clean the codes a bit very soon and fix the issues.

from kaushik_2019_aprol.

riturajkaushik avatar riturajkaushik commented on September 23, 2024

I have updated the README to avoid the issue with the absolute path to the urdfs. Basically, you need to define an empty environment variable RESIBOTS_DIR before running the code. Script will automatically take the default paths to the urdfs when this environment variable is available. Regarding env_params.txt files, these files should not be required to run the examples.

Can you please confirm if you are able to run the mapelites script for the kuka experiment now?

from kaushik_2019_aprol.

ErickKramer avatar ErickKramer commented on September 23, 2024

Hey, I cloned again your repo to test the comments you mentioned:

  1. Creating the empty environment variable avoids the need for absolute paths
  2. python3 kuka_pushing_exps/map_elites_kuka_pushing.py --toy 5 can be run without any problem.
  3. python3 kuka_pushing_exps/kukaPushing_astar_ctlr2cartesian_v2.py --toy 0 --ucb_const 0.5 --kernel_var 0.003 --kernel_l 0.03 --visualization_speed 5.0 --search_size 800 --objectEulerAngles -1 --gui complains about the missing env_params.txt.
Traceback (most recent call last):
  File "kuka_pushing_exps/kukaPushing_astar_ctlr2cartesian_v2.py", line 487, in <module>
    main()
  File "kuka_pushing_exps/kukaPushing_astar_ctlr2cartesian_v2.py", line 289, in main
    with open(dd+"/env_params.txt", 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: './data/kuka_pusher_prior/kuka_pusher_map_toy_10_friction_1/env_params.txt'

from kaushik_2019_aprol.

ErickKramer avatar ErickKramer commented on September 23, 2024

Hey @riturajkaushik, I have a question.
In

a = np.random.normal(0, (params["max"][i]-params["min"][i])/300.0, 1)
where does the 300.0 come from?. Or why did you decide for that value when computing the mutation?.

Thank you in advance!.

from kaushik_2019_aprol.

riturajkaushik avatar riturajkaushik commented on September 23, 2024

Hey, the 300.0 is actually a hyperparameter for the mutation variance. Since in the original CVT-map elites implementation it was kept like this, so I kept it as well. This value should not impact the optimization that much as long as it keeps the value of (params["max"][i]-params["min"][i])/300.0 small compared to the range of the parameters.

You can get the map-elites code from here if you want to use it for some other purpose.

Regarding the env_params.txt files, I'll upload them as soon as possible.

from kaushik_2019_aprol.

riturajkaushik avatar riturajkaushik commented on September 23, 2024

Since I lost the original env_params.txt files for the archives, I had to do a work-around to generate those files based on the information (e.g., friction, blocked legs, toy id etc.) stored in the directory names of the archives. Files are available now.

from kaushik_2019_aprol.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.