R2D3 Robotic Development 3nvironment Copyright 2005 Anupam Jain (ajnsit [-AT-] gmail) Released Under GNU GPL version 2 Version 0.2 Manual (Unfinished)
R2D3 is a Free, Cross Platform, Generic Robotic Manipulator Simulator and Development Environment built using Blender and Python. It's main goal is to provide a simple but feature-rich platform for Educational & Research Usage. Much of it is currently Scorbot ER-V (From Intelitek) oriented though that situation will change in the near future.
Blender and Python make an amazing combo! When I started this project I didn't understand either Blender or Python (but they both looked cool, and that opinion has only strengthened with familiarity). Without either of them this project would not exist.
The code is far from pretty and there is a lot of scope for improvement. Also this is ALPHA Software so not all functionality is implemented yet. Simultaneously, Ver 0.2 is the first 'good-looking' version of R2D3, that's also Semi-useful :) Enjoy!
A plugin based system that takes in pluggable robot description files and pluggable scene description files and can thus simulate the operations of most types of robotic manipulator arms.
Courtesy Blender :)
The software should allow control over the robots through various means i.e. through batch scripts that allow the robot to be run without assistance from the programmer. Also the system, which acts as an interface between the human and the robot, should allow the robot to be controlled over a network provided the software is installed on both the client and the server sides.
Based on Editor.py
The simulator uses a ratio of 200 for the real world to Blender units translation. i.e. - 1 Blender Unit = 200 mm
The simulator screen is divided into two separate parts -
- The Graphical User Interface Controls
- The 3D workspace
The graphical user controls are divided into three sections -
-> Forward Kinematics Controls
The forward kinematics controls allow control over the Robot Joint Angles. There are Five separate sliders that provide control over the five separate joints of the 5 DOF Scorbot ER – 5 Plus Robot.
In all the angles, only the angles within range of the actual hardware are allowed. The allowable angle ranges are as follows -
- Base : +0 to +310 degrees
- Shoulder : -130 to +35 degrees
- Elbow : -130 to +130 degrees
- Wrist Rotation : -130 to +130 degrees
- Wrist Roll : +0 to +570 degrees
In addition there are two buttons to control the gripper -
- Gripper Open
- Gripper Close
-> Inverse Kinematics Controls
The inverse Kinematics Controls consist of Four different slider for controlling the following parameters -
- 'X' Location of the gripper
- 'Y' Location of the gripper
- 'Z' Location of the gripper
- The 'Orientation' of the gripper in the plane of approach of the target. The orientation is equal to the sum of the Shoulder Elbow and Wrist Rotations. It denotes the angle with which the gripper approaches the target.
All these four parameters can be specified by moving the slider or typing a value in the text box. They can be manipulated independently for any given target orientation of the gripper in order to perform inverse kinematics. Also the modification of any of these does not affect the “Wrist Roll' of the manipulator. Thus the 'Wrist Roll' slider can also be manipulated to perform inverse kinematics.
The combination of these five values fully and unambiguously specifies the end effector orientation of the target position.
In addition, there are five separate buttons -
- 'Get Cursor Position' lets the user specify the target location by clicking on the 3d workspace instead of having to manually enter values. The point chosen is always parallel to the current viewing plane.
- 'Search' performs a searching routine in order to reach the target point. Note that it does NOT perform any analytical calculations and the searching is purely numerical step search.
- 'Solve' uses the inverse kinematics equations used in the inverse kinematics routine in order to get the corresponding solution. It then moves the simulated robotic arm to that orientation.
- The solve routine for the inverse Kinematics gives multiple solutions. Thus two 'Forward' and 'Backward' Buttons are provided to cycle between the multiple solutions 'If any'.
The two typical configurations for a robot are -
- Elbow Up
- Elbow Down
-> Miscellaneous Controls
The miscellaneous controls have buttons for the other features provided by the project.
- 'Homing' Routine A button is provided to send the robot to its home position.
- 'Select' Billet Slider The slider can be used to select the billets provided on the workpiece table (Numbered from Zero to Nine). The billet selected automatically has its position coordinates fed into the inverse kinematic sliders so that the user just has to press the 'Solve' Button to pick up the billet.
- 'Start Server' Starts the ACL Server inbuilt into the software. It listens to the specified port using TCP/IP protocol and can accept ACL commands to control the simulator. Any external program whether on the same computer or not, using the network interface, can control the simulator. The program can accept at most five simultaneous connections from clients. The ACL commands can also be sent to the real Robot over the serial line.
- 'Stop Server' Stops the ACL server.
- 'Editor' Starts the Inbuilt Code Editor. It can be used to store upto ten ACL programs that can be executed at the click of a button. The editor provides the usual code editing facilities like searching, line count etc. Upon clicking 'Run', the editor runs the program in realtime. It can also control the actual robot over the serial link.