ROBOTIS-GIT / DynamixelSDK

ROBOTIS Dynamixel SDK (Protocol1.0/2.0)
http://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_sdk/overview/
Apache License 2.0
464 stars 410 forks source link

NameError: name 'dynamixel' is not defined #606

Open MhmdBarazi opened 1 year ago

MhmdBarazi commented 1 year ago

Hello, I am using DYNAMIXEL SDK 3.7.51 with Python, on the Windows operating system. I am using U2D2 USB serial converter. My motor is XC430-W240. I searched about this issue. I found some suggestions but none of them worked for me.

I have oak camera as well as XC430-W240 motor. I want to have my robot move based on certain coordination given by the camera. Therefore, I extract output from the camera's function as an input to dynamixel function. Furthermore, I defined the movement function as a thread. and this is my code: https://drive.google.com/file/d/1PthWIQ1hil9N8vJAWwziJkdNY0DU145X/view

Issue #1: everything worked perfectly before coordination detection( getting into Movement() function). then this error message has appeared: NameError: name 'dynamixel' is not defined before getting into this function there is no such an error! What is the source of this error? Issue #2: I want to give the coordination in the degree unit as I did using Arduino. but I couldn't find the proper way.

Could you help me with them, please? Thank you!