PupperPythonSim icon indicating copy to clipboard operation
PupperPythonSim copied to clipboard

the command "python3 simulate_pybullet.py" does not work

Open pyknife opened this issue 5 years ago • 3 comments

And the return infomation is

PupperPythonSim-master/src/PupperXMLParser.py", line 39, in Parse
    pupper_leg_geom = "0 0 0 0 0 %s" % (-PUPPER_CONFIG.LEG_L)
AttributeError: 'PupperConfig' object has no attribute 'LEG_L'

Could you help me deal with it? Thanks again

pyknife avatar Mar 23 '20 13:03 pyknife

I have the same problem. How did you solve it?

lyj-unitree avatar Aug 05 '20 02:08 lyj-unitree

I have the same problem. How did you solve it?

jitamm20081 avatar Sep 18 '20 14:09 jitamm20081

I partly figure it out. I think this is a typo. This value controls how the lengths of legs look like in simulation:

     filedata = filedata.replace("pupper_l1_geom", str(pupper_leg_geom))
    filedata = filedata.replace("pupper_l2_geom", str(pupper_leg_geom))

which implies the lengths of leg1 and leg2 look the same. (the value of pupper_leg_geom)

However, I don't know what this line of code does

filedata = filedata.replace("pupper_leg_geom", str(pupper_leg_geom))

I changed several values of it, but nothing happened.

Also, I want to note that, after fixing this problem, you need to define the value of function UserInputs.

zipping-suger avatar Sep 17 '21 13:09 zipping-suger