FlorianWilk / SpotMicroAI

SpotMicro AI - How to build a self-learning Robot
432 stars 88 forks source link

Python 2.7 compatibility #3

Open FlorianWilk opened 5 years ago

FlorianWilk commented 5 years ago

Interesting... when running python3 gamepad.py
everything works. The Bot falls to the ground and keeps standing. When i use python 2.7: python gamepad.py The Bot falls down. The left and right legs have different positions. Why is that?!

littleggghost commented 5 years ago

I use python2.7 now, here is the initial pose: Screenshot from 2019-05-27 19-47-33

FlorianWilk commented 5 years ago

Yes, same here. I will keep on using Python3 to have some progress on the Kinematics. Maybe you want to investigate this bug? I have no clue why Python2.7 should do different calculations than Python3 does.

On Mon, May 27, 2019 at 1:50 PM littleggghost notifications@github.com wrote:

I use python2.7 now, here is the initial pose: [image: Screenshot from 2019-05-27 19-47-33] https://user-images.githubusercontent.com/5058791/58417801-85e18d00-80b8-11e9-9eca-94d1d5dbcdd8.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FlorianWilk/SpotMicroAI/issues/3?email_source=notifications&email_token=AA26L7XWC273YBJXHQK43VTPXPDHZA5CNFSM4HP2ZK5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJTDSA#issuecomment-496185800, or mute the thread https://github.com/notifications/unsubscribe-auth/AA26L7QCJJKRMKLR6JS2LGLPXPDHZANCNFSM4HP2ZK5A .

littleggghost commented 5 years ago

Maybe the initial command caused this. You can try this initial pose in gamepad.py:

line222    angles = kin.calcIK(Lp, (math.pi/180*roll, 0, 0), (100/256*-joy_rz-20+100, 40+height, joy_x))