Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Help Wanted Question about Walker

Discussion in 'ML-Agents' started by hydesign97, Jun 12, 2022.

  1. hydesign97

    hydesign97

    Joined:
    Apr 9, 2020
    Posts:
    3
    I am training the walker-agent in ppo mode to get him to run, like a track and field athlete. But I find that he habitually walks using one leg dragging the other, instead of running with alternating legs as I would like. Does anyone have any advice?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,028
    OMG you trained a zombie! :D
     
  3. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    I'd say the problem is that your agent doesn't have bones, tendons and muscles. It's basically a stick figure with a bunch of rigid bodies, connected by ball or hinge joints. An efficient forward motion is likely to be different than what works for real human bodies. You shouldn't expect realistic looking behavior from your agent, unless you can physically simulate human anatomy pretty accurately.
    You can try working with mocaps and imitation learning though. For that, you'd need to set up a character rig with physics (use articulation bodies) and have it perfectly mimic a given mocap animation. Which means, read all bone positions and rotations from an animated character and apply them to the physical one. Once you got that working, you can record demonstration files and proceed with imitation learning.
     
  4. hydesign97

    hydesign97

    Joined:
    Apr 9, 2020
    Posts:
    3
    thanks for your answer! I will try it. But I have also found people who have trained a correct running stance with the walker:
    . He should also not have used muscles and other things that stimulate the human body. And he said he was using v0.6, although I can find the package for this version, I can't find the v0.6 example anymore
     
  5. hydesign97

    hydesign97

    Joined:
    Apr 9, 2020
    Posts:
    3
    so sad