HitSZwang / mini-cheetah-pybullet

mpc and wbc for mini cheetah in pybullet
MIT License
49 stars 20 forks source link

pybullet.error: number of forces should match the joint indices #1

Closed raess1 closed 3 years ago

raess1 commented 3 years ago

Hi! See attached picture for refrence. Skärmklipp

HitSZwang commented 3 years ago

(1) You can use Python 3

In walking_ simulation.py

Then put all the del get XX [:] with get xx.clear ()

(2) Or restart walking_ simulation.py

I have this kind of mistake sometimes

raess1 commented 3 years ago

Thanks Python 3 solved the error. 👍 But when I run: rosservice call /robot_mode "cmd: 1" Nothing happends. See attched pic. 2222

HitSZwang commented 3 years ago

start step: roscore rosrun quadruped_ctrl walking_simulation.py roslaunch quadruped_ctrl quadruped_ctrl.launch rosservice call /robot_mode "cmd: 1" rosservice call /robot_mode "cmd: 4" rosservice call /gait_type "cmd: 9"

raess1 commented 3 years ago

Thanks! that worked fine!