Manipulator Robot IRB6-S2 Simulation - pre
- robottom
- Offline
- Senior Member
-
- Posts: 61
- Thank you received: 4
awesome! Looks very good. Can you tell more how you did it. When you talking about a python did you create a stand alone python program or something embedded. For the latter case what GUI you are using (AXIS or something else).
I'm not very experienced in python. Can you send me your test program and how you integrate it.
Many thanks, Thomas
Please Log in or Create an account to join the conversation.
- jstoquica
-
Topic Author
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 9
1. Copy a new folder of any default project (.../configs/puma/). Like Puma or Puma 560 for robotic arms.
2. Copy the python file (vismach simulation) to be edited later. (/usr/bin/*.py)
3. Edit the *.py file with the custom design.
4. Test the simulation with halrun -> loadusr /usr/bin/*.py
5. Edit the name and the DOF hal signals in the python simulation in the *.HAL file /configs/new folder.
6. Copy some kinematics file for your custom machine. Like pumakins.c
7. Edit the kinematics parameters in *.c file.
8. Edit Makefile in the the linuxcnc source for your actually version. (.../usr/Makefile)
8. Then you have to compile the *.c file with the source package. (vim .../build/docs/INSTALL)
9. Run linuxcnc in RIP environment (Run In Place)
10. Test your configuration.
I hope that basics steps help with your project. Regards.
Please Log in or Create an account to join the conversation.
- robottom
- Offline
- Senior Member
-
- Posts: 61
- Thank you received: 4
thanks - at least most of what you are writing I hopefully understand. I'm already running my puma 560 with a newly compiled system with a modified pumakins/genserkins and the python with the vismach Puma 560 simulation in parallel. So I would be able to add another python program.
What I would need is a kind of a normal robot control for control commands in a xyz frame.
Sounds like you can do this from the python program. Is this correct? If so do you have a documentation of a library of python functions that you can use for the robot control?
What I'm aiming for at the end is something where I can use a g-code as it runs today in the axis GUI but break the control loop somewhere after the g-code interpreter before it goes into robot position control to inject own positioning (not doing exactly what is in the g-code but using the g-code position as a basis for my own position calculation).
But this is a very specific request. What would help is first to have a posibility to control the robot from an own program with high level robot control functions.
Would this be possible from the python. If yes where to find the function library I can call from the python to control the robot with high level commands (reusing the complete trajectory planning, and all the basic HAL stuff).
When I got you right then the moves we see in your youtube video are done out of a python program - correct?
Many thanks for your thoughts,
Thomas
Please Log in or Create an account to join the conversation.
- jstoquica
-
Topic Author
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 9
Are you talking about GUI interface?
If It is, I use and edit the PUMA GUI interface. I added some HAL meter values like display, It was made with *.xml file in the config folder from my own program. I created some additional variables for do that, and I linked the new *.xml variables with HAL variables in the HAL simulation file.
When I got you right then the moves we see in your youtube video are done out of a python program - correct?
I did it with individual joint control of the edited PUMA GUI. I have to test with G code next week, with a G program.
Is It your question ?
If you want edit GUI interface or create a new one, It is possible with python code, linked your HAL variables with your new python file (interface). But until now I don't need it.
Regards.
Please Log in or Create an account to join the conversation.
- robottom
- Offline
- Senior Member
-
- Posts: 61
- Thank you received: 4
I'm not sure if I understood you. Is "PUMA GUI interface" refering to the simulation screen where you see a model of the Puma arm (what might be implemented in Python) or are you talking about the AXIS GUI of the LinuxCNC that is used when you just copy the Puma configs comming with LinuxCNC. You said "I created some additional variables for do that, and I linked the new *.xml variables..." sound for me like the puma.xml file that comes with the standard puma config. Via the puma.xml you add additional screen elements to the AXIS GUI (e.g. meters or buttons or leds) which can also be used to control the joints of the robot.
Would be nice if you can attach a screen shot of the GUI so it is easier to imagine what you did.
Many thanks,
Thomas
Please Log in or Create an account to join the conversation.
- jstoquica
-
Topic Author
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 9
sound for me like the puma.xml file that comes with the standard puma config. Via the puma.xml you add additional screen elements to the AXIS GUI (e.g. meters or buttons or leds) which can also be used to control the joints of the robot.
Yes, It is, but only for see some kinematics parameters.
Please Log in or Create an account to join the conversation.
- jstoquica
-
Topic Author
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 9
To test and validate the industrial robot kinematics, a G/M file was executed, where LinuxCNC controller can control the manipulator to follow a predefined path.
I let the youtube link video for you can see the final result.
Regards.
Please Log in or Create an account to join the conversation.
- jstoquica
-
Topic Author
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 9
In the first video a G program was generated according to tool positions. The relative tool positions were recorded through python program who saves in a plain file the world coordinates.
In the second one there is another way to validate the robot kinematic with a repeatability study, where the same G program is executed many times in the same conditions.
I let the youtube link video for you can see the applications.
Regards.
Please Log in or Create an account to join the conversation.
- jstoquica
-
Topic Author
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 9
You can see the 5 DOF manipulator searching its original home position with a joint sequence in the video.
Regards.
Please Log in or Create an account to join the conversation.