Difference between revisions of "Universal DH"
Line 1: | Line 1: | ||
− | {{Languages|Universal_DH}} | + | {{Languages|Universal_DH}} |
− | =Universal DH Kinematics= | + | = Universal DH Kinematics = |
− | ==Introduction== | + | == Introduction == |
− | softMC has supports many kinds of robot kinematics, several firmware coded kinematic models and one general user-defined kinematics (written by user in C-code). <br> | + | softMC has supports many kinds of robot kinematics, several firmware coded kinematic models and one general user-defined kinematics (written by user in C-code).<br/> All firmware coded kinematics (SCARA,DELTA, PUMA, …) assume an ideal kinematics model where angles between segments are at an exactly the predefined value (e.g. 90 deg). This is not always the case.<br/> For example in PUAM robot kienamtics it is assumed that angle between first and second joint is exactly 90 degrees, in this model (model=2) there is no option to define different angle or an angle correction.<br/> Only segment lengths can be manually entered. In addition to that at PUMA kinematic there exist a model constraint that all last 3 rotation axes (J4,J5,J6) must meet at same point.<br/> <br/> For general robots: |
− | All firmware coded kinematics (SCARA,DELTA, PUMA, …) assume an ideal kinematics model where angles between segments are at an exactly the predefined value (e.g. 90 deg). This is not always the case. <br> | ||
− | For example in PUAM robot kienamtics it is assumed that angle between first and second joint is exactly 90 degrees, in this model (model=2) there is no option to define different angle or an angle correction. <br> Only segment lengths can be manually entered. In addition to that at PUMA kinematic there exist a model constraint that all last 3 rotation axes (J4,J5,J6) must meet at same point. <br> | ||
− | <br/> | ||
− | For general robots: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *Up to 6DOF | |
+ | *Must be Open-chain kinematics (no parallel robots) | ||
− | + | <br/> There are two types of universal kinematics: | |
− | |||
− | ==Geometry Definition== | + | *'''PUMA ''“like”'' 6-DOF''' |
+ | |||
+ | :open-chain model:<br/> [[File:universal 1.png|800px|universal 1.png]]<br/> Model = 19 is PUMA-like 6DOF kinematics<br/> | ||
+ | |||
+ | *'''General Open-Chain Kinematics''' | ||
+ | |||
+ | :open-chain model definition:<br/> [[File:universal 2.png|800px|universal 2.png]]<br/> Model = 20 is general open-chain kinematics | ||
+ | |||
+ | === Difference Between Model = 20 and Model = 19 === | ||
+ | |||
+ | *Model 19 is specially tailored for PUMA-like robots. This means that robot need to satisfy the following conditions:<br/> All axes are rotary.<br/> There is exactly 6 DOF’s (axes)<br/> Robot configuration flags (arm, elbow, wrist) are defined according most similar PUMA robot. | ||
+ | *Model 20 is general open-chain model, axes can be bot rotary or linear and the only limitation is that there can not be more then 6 DOF (axes).<br/> Robot configuration flags are defined according user-defined function calls. | ||
+ | |||
+ | == Geometry Definition == | ||
Robot geometry is defined by two arrays: | Robot geometry is defined by two arrays: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | #'''Link [i] [j] (segment length):''' | ||
+ | ##Where i = 1-6 for segments 1 to 6 | ||
+ | ##Where j = 1-3 for coordinates x,y,z | ||
+ | ##Segment length coordinates are relative to base coordinate origin placed at connection point with previous segment (without any rotation)<br/> | ||
+ | #'''Axis [i] [j] (joint axis direction):''' | ||
+ | ##Where i = 1-6 for segments 1 to 6 | ||
+ | ##Where j = 1-3 for coordinates x,y,z | ||
+ | ##Axis rotation vector relative to base coordinate origin)�In case of translational joint it is direction of the axis movement.<br/> | ||
+ | |||
+ | [[File:10.7.png|550px|10.7.png]] | ||
− | ===User Functions=== | + | |
+ | |||
+ | === User Functions === | ||
In case of general open-chain model (20) the robot configuration can not be automatically defined therefor we are using the following user functions: | In case of general open-chain model (20) the robot configuration can not be automatically defined therefor we are using the following user functions: | ||
− | * Import_c | + | |
− | * Import_c | + | *Import_c UDH_SET_MAX_CFG(byval as long,byval as long) as long Setting the max number of robot configurations (for PUMA it is 8)<br/> |
+ | *Import_c UDH_SET_CFG(byval as long, byval as long,byval as joint of xyzr) as long Setting representative robot configuration for each configuration flag.<br/> Flag values are sett according to bitmask in same ways as in ToJoint function.<br/> | ||
+ | |||
Example (SCARA): | Example (SCARA): | ||
− | |||
− | |||
− | |||
− | =6R Robot With Offset Wrist= | + | * ?UDH_SET_MAX_CFG(elementid,2) |
+ | * ?UDH_SET_CFG(elementid,0,{0,-45,0,0}) ' lefty | ||
+ | * ?UDH_SET_CFG(elementid,1,{0,45,0,0}) ' righty | ||
+ | |||
+ | = 6R Robot With Offset Wrist = | ||
+ | |||
+ | [[Category:Robot Models]] |
Latest revision as of 07:05, 12 December 2024
Language: | English • 中文(简体) |
---|
Contents
Universal DH Kinematics
Introduction
softMC has supports many kinds of robot kinematics, several firmware coded kinematic models and one general user-defined kinematics (written by user in C-code).
All firmware coded kinematics (SCARA,DELTA, PUMA, …) assume an ideal kinematics model where angles between segments are at an exactly the predefined value (e.g. 90 deg). This is not always the case.
For example in PUAM robot kienamtics it is assumed that angle between first and second joint is exactly 90 degrees, in this model (model=2) there is no option to define different angle or an angle correction.
Only segment lengths can be manually entered. In addition to that at PUMA kinematic there exist a model constraint that all last 3 rotation axes (J4,J5,J6) must meet at same point.
For general robots:
- Up to 6DOF
- Must be Open-chain kinematics (no parallel robots)
There are two types of universal kinematics:
- PUMA “like” 6-DOF
- General Open-Chain Kinematics
Difference Between Model = 20 and Model = 19
- Model 19 is specially tailored for PUMA-like robots. This means that robot need to satisfy the following conditions:
All axes are rotary.
There is exactly 6 DOF’s (axes)
Robot configuration flags (arm, elbow, wrist) are defined according most similar PUMA robot. - Model 20 is general open-chain model, axes can be bot rotary or linear and the only limitation is that there can not be more then 6 DOF (axes).
Robot configuration flags are defined according user-defined function calls.
Geometry Definition
Robot geometry is defined by two arrays:
- Link [i] [j] (segment length):
- Where i = 1-6 for segments 1 to 6
- Where j = 1-3 for coordinates x,y,z
- Segment length coordinates are relative to base coordinate origin placed at connection point with previous segment (without any rotation)
- Axis [i] [j] (joint axis direction):
- Where i = 1-6 for segments 1 to 6
- Where j = 1-3 for coordinates x,y,z
- Axis rotation vector relative to base coordinate origin)�In case of translational joint it is direction of the axis movement.
User Functions
In case of general open-chain model (20) the robot configuration can not be automatically defined therefor we are using the following user functions:
- Import_c UDH_SET_MAX_CFG(byval as long,byval as long) as long Setting the max number of robot configurations (for PUMA it is 8)
- Import_c UDH_SET_CFG(byval as long, byval as long,byval as joint of xyzr) as long Setting representative robot configuration for each configuration flag.
Flag values are sett according to bitmask in same ways as in ToJoint function.
Example (SCARA):
- ?UDH_SET_MAX_CFG(elementid,2)
- ?UDH_SET_CFG(elementid,0,{0,-45,0,0}) ' lefty
- ?UDH_SET_CFG(elementid,1,{0,45,0,0}) ' righty