RoboDK Forum
Python: Panel Control可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Python: Panel Control (/Thread-Python-Panel-Control)



Python: Panel Control-uzumbuk-11-20-2018

Hey guys,

im using Python to control the robot. Is it possible to move the robot in one direction (for example [0,0,1] by saying start moving and stop moving, like using a control panel. I've tried the python example for the key control but in real life the robot is not moving very smooth because it's stopping after every step.

Thank you!


RE: Python: Panel Control-Albert-11-20-2018

Yes this is possible. If you use the RoboDK API you should make sure you call the setRounding instruction before your movements:
robot.setRounding (round_mm)
This allows the robot to smooth corners.

More information here:
//www.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Item.setRounding

Of if you use the GUI:
//www.sinclairbody.com/doc/en/Robot-Programs.html#InsSmooth

Can you share the code you are trying to run?
What robot are you using?