RoboDk custom driver problem- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: General questions about RoboDK (//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: RoboDk custom driver problem (/Thread-RoboDk-custom-driver-problem) |
RoboDk custom driver problem-lllorenzo3-09-20-2021 Hey guys can someone please help. We are having a problem connecting our driver to the robot arm which we will be using a arduino and custom motors. The connection error picture is attached below. The error we get is Error: Process failed to start. The system cannot find the file specified. (id 0 ) We worked off of this guys code .https://github.com/egehandulger/robodkdriver Here is the code. I could send over the actual .pyc code . from robodkdriver import RoboDK, RobotSerial class MyMultiAxisRobot(RobotSerial): def run_command(self, cmd: str, args: tuple): RoboDK.update_status('working') if cmd == 'CONNECT': connected = self._connect(port=(args[0]), baud_rate=(int(args[1]))) if not connected: return 'connection_problems' return 'ready' if cmd == 'DISCONNECT' or cmd == 'STOP': disconnected = self._disconnect() if disconnected: return 'disconnected' return 'ready' if cmd == 'MOVJ': self._send_message('{cmd} {angles}'.format(cmd=cmd, angle=(' '.join(args)))) if self._get_message('DONE'): return 'ready' return 'error' if cmd == 'CJNT': self._send_message(cmd) joints = self._get_message() RoboDK.update_status(joints) return 'ready' def RunMain(): RoboDK(MyMultiAxisRobot()).run_driver() if __name__ == '__main__': RunMain() RE: RoboDk custom driver problem-Albert-09-20-2021 I assume you have a file here: C:/RoboDK/api/robot/MyArduinoDriver.py Can you confirm? What happens if you run this file using Python? 一旦你可以运行脚本使用Python,让苏re to use the same Python version in RoboDK. You can specify the Python interpreter in Tools-Options-Python. RE: RoboDk custom driver problem-lllorenzo3-09-20-2021 Hey Albert yep that was the problem we had to switch the version of the python. Thanks for the help. RE: RoboDk custom driver problem-Ahmet01-07-11-2022 Hi everyone, Dear Sir and Madams, I need your Help. If I try to connect my robotarms, the status of the connection failed, because the system cannot find the specified file. The Error: Process failed to start: The system cannot find the specified file. (id 0) Cannot start C:/RoboDK/api/robot/apimecademic.py Failed. Can you help me to solve the problem. I thank you in Advanced. Best regards Ahmet Eroglu RE: RoboDk custom driver problem-Albert-07-11-2022 You need Python to use some robot drivers like the driver for Mecademic or to generate robot programs. Did you install RoboDK with Python? If so, make sure you settings are correct here:
RE: RoboDk custom driver problem-Ahmet01-07-11-2022 Hi Albert, everything is correct there, but I think I did not install RoboDK with Python. How can I fix that? I thank you in Advanced Hi Albert, First I installed RoboDK and then I installed Python. I think that is the problem or it does not matter? Thank you in advanced RE: RoboDk custom driver problem-Sam-07-11-2022 You can re-launch the RoboDK installer and select the Python option. RE: RoboDk custom driver problem-Ahmet01-07-11-2022 Hi everyone, I got a new problem. The system is finding the file, but still not connecting. How can I fix it. Can you help me please! I thank you in advance. |