neurobionics / TMotorCANControl

A python API to control AK-series TMotors over the CAN bus.
24 stars 21 forks source link

AK80 fails to connect via CAN: why? #11

Closed JFredPerspektiv closed 10 months ago

JFredPerspektiv commented 1 year ago

Good morning, I test TMotorCANControl & motor connection with "check _motor_connection_mit_can.py". My PC runs Ubuntu 22.04, I use PEAK PCAN. I have no idea why CAN_Manager is failing to find the .notifier attribute.

Here is what I do:

$ runfile('/home/exit888/Documents/PRO/YOGI/YOGI23/Tmotor/TMotorCANControl demo mit_can/check_motor_connection_mit_can.py', wdir='/home/exit888/Documents/PRO/YOGI/YOGI23/Tmotor/TMotorCANControl demo mit_can')

Output is:

Initializing device: AK80-64 ID: 92 Traceback (most recent call last): (... I skip some errors) File /usr/local/lib/python3.10/dist-packages/TMotorCANControl/mit_can.py:315 in add_motor self.notifier.add_listener(motorListener(self, motor)) AttributeError: 'CAN_Manager' object has no attribute 'notifier'