Nate711 / PupperPythonSim

46 stars 19 forks source link

the command "python3 simulate_pybullet.py" does not work #6

Open pyknife opened 4 years ago

pyknife commented 4 years ago

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

lyj-unitree commented 4 years ago

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

jitamm20081 commented 4 years ago

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

zipping-suger commented 3 years ago

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.