Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ur10_robot_arm:drawing_with_the_ur10 [2021/02/25 08:19] – [Send program to robot] formlab | ur10_robot_arm:drawing_with_the_ur10 [2021/03/03 01:15] (current) – [Troubleshooting] formlab | ||
---|---|---|---|
Line 5: | Line 5: | ||
- Select all | - Select all | ||
- '' | - '' | ||
- | - Save as. Choose '' | + | - Save as. Choose '' |
+ | - //Optional: open saved file in text editor to check that there are only ''< | ||
+ | - //Keep the filename simple and avoid spaces.// | ||
===== Prepare the canvas ===== | ===== Prepare the canvas ===== | ||
- | * Make sure to have a mostly flat surface. The orientation doesn' | + | * **Flat surface**: |
- | * The surface should be fixed well, so it doesn' | + | * **Immovable surface**: |
- | * Measure the width and height of the image area on the surface. Keep this value for later. | + | |
===== Setup the physical robot ===== | ===== Setup the physical robot ===== | ||
Line 32: | Line 34: | ||
- Right click the python script and choose '' | - Right click the python script and choose '' | ||
- | - Change the variable '' | + | - Change the variable '' |
- | - Change the variable '' | + | - Change the variable '' |
- Press ctrl + s to save the file and go back to RoboDK. //Keep in mind that this file is updated in RoboDK, but not in the file explorer. Save the changes to the file explorer if you want to keep them for the future.// | - Press ctrl + s to save the file and go back to RoboDK. //Keep in mind that this file is updated in RoboDK, but not in the file explorer. Save the changes to the file explorer if you want to keep them for the future.// | ||
Line 54: | Line 56: | ||
* P3 should be somewhere on the canvas to the right. | * P3 should be somewhere on the canvas to the right. | ||
- | //Tip: if you're using a spring-loaded pen holder, add a spacer to the spring, so the pen is retracted a little bit. Then almost-touch the canvast with the pen when probing. | + | //Tip: if you're using a spring-loaded pen holder, add a spacer to the spring, so the pen is retracted a little bit. Then almost touch the canvast with the pen when probing. Remove the spacer before drawing. |
// | // | ||
- **Move the physical robot** to one of the 3 points | - **Move the physical robot** to one of the 3 points | ||
Line 80: | Line 82: | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | * **After 'Run Python script', | ||
+ | * Use the line <code python> RDK.ShowMessage(" | ||
+ | * To display variables, use this method: <code python> msg_str = " | ||
+ | * It might help to temporary load an older version of the python script, and loading the new one again after that. It sounds impossible, but it helped here before... | ||