richard-clark / PyDynamixel

Python library for Dynamixel servos.
7 stars 4 forks source link

Python3 compatibility #2

Open quentinsf opened 5 years ago

quentinsf commented 5 years ago

Hi Richard - thanks for PyDynamixel!

I needed to make it work under Python3, so made the minimal changes for that to happen, which is basically just taking into account the fact that the serial library returns bytes rather than a str, and you can therefore just treat them individually as ints without having to do a struct.unpack to get their integer values.

I'm afraid my version probably no longer works under Python 2, so you may not want to merge it! Feel free to discard this PR in that case - I won't be offended!

All the best, Quentin