pyri-project / pyri-robotics

Python Restricted Industrial (PyRI) Open Source Teach Pendant Robotics Package
http://pyri.tech
Apache License 2.0
0 stars 2 forks source link

Incorrect Parameter Order in robot_movel Function #3

Closed maxwelllls closed 4 months ago

maxwelllls commented 7 months ago

I noticed in line 88 of the blockly.py file, the robot_movel function in Robotics blocks had its parameters ordered as: sandbox_function = (sandbox_functions.robot_movel, "ROBOT_POSE", "FRAME", "SPEED", "WAIT") However, in sandbox_functions.py, line 100, the function is defined as: def robot_movel(target_pose, speed_perc, frame, wait): This caused a mismatch in parameter order, rendering the movel module unusable and leading to runtime errors. I have temporarily fixed this issue in my local setup, and the moveL function now works correctly. I recommend updating the codebase to permanently fix this bug.

johnwason commented 7 months ago

Please create a pull request with your patch.