Professional Documents
Culture Documents
The equations (1), (2) and (3) provide the joints values
according to the cartesian position of the end effector and the
links length: l1 = 0.0275m, l2 = 0.0963m, l3 = 0.1051m [7]. The
eq. (4), (5), (6), (7), (8), (9), (10) and (11) are variables for a
development by segments of the architecture.
𝜃1 = atan (𝑦𝑒 /𝑥𝑒 ) (1)
𝜃2 = 𝑎𝑡𝑎𝑛 (𝐺 ⁄√1 − 𝐺 2 ) − atan(sin 𝜃3 ⁄(𝐹 + D)) (2)
𝜃3 = 𝑎𝑡𝑎𝑛 (√1 − 𝐷2 ⁄𝐷 ) (3)
𝑟 = √𝑥𝑒 2 + 𝑦𝑒 2 (4)
𝐴 = 2𝑙1 𝑟 (5)
𝐵 = √(𝑟 − 𝑙1 )2 + 𝑧𝑒 2 (6)
𝐶 = 𝑟 2 + 𝑧𝑒 2 + 𝑙1 2 − 𝑙2 2 − 𝑙3 2 − 𝐴 (7) Figure 3. Fully-pipeline CORDIC-based architecture.
𝐷 = 𝐶 𝐶𝑎 = cos 𝜃3 (8)
𝐺 = 𝑧𝑒 ⁄𝐵 (9) Four types of CORDIC operators are considered: circular
𝐶𝑎 = 1⁄2𝑙2 𝑙3 (10) rotational, circular vectorial, hyperbolic vectorial and linear
𝐹 = 𝑙2 ⁄𝑙3 (11) vectorial [9], whose functions and symbology are represented
in Table 2. In addition, both circular rotational and circular
B. End-effector Trajectory
vectorial can be implemented in the same CORDIC module by
The surface of working area for end-effector with a crab changing the operation mode.
angle 𝛼 ∈ [0,90]° for a quadruped walk [8] is showed at
Figure 2, this is necessary because it determinates the TABLE II. CORDIC OPERATION REFERENCE
convergence range of CORDIC.
Circular Rotational
Circular Vectorial
𝑥 𝐾√𝑥 2 + 𝑦 2
𝑦 CV 0
𝑧 CC 𝑧 + tan−1 (𝑦⁄𝑥 )
100
Vectorial Hyperbolic
𝑥 𝐾′√𝑥 2 − 𝑦 2
𝑦 VH 0
𝑧 CC 𝑧 + tanh−1 (𝑦⁄𝑥 )
100Lineal
Vectorial
𝑥 𝑥
Figure 2. Working area for hexapod-leg end-effector. 𝑦 VL 0
𝑧 CC 𝑧 + 𝑦⁄𝑥
100
B. Architecture Finite State Machine The Figure 6 shows that Hyperbolic C8 and Linear C7 are
In order to calculate the value of 𝑟 and 𝐷 which are not far enough to reach convergence limit to be expanded.
CORDIC-dependent in (4) and (8), a FSM was designed at Although Hyperbolic C2 is slightly close of its range of
stage two by using 2 multipliers and one adder as is shown in convergence limit, it’s for this reason that the Hyperbolic C2
the Figure 4. This FSM obtains these values in three clock is expanded.
cycles and set outputs to the pipeline register.
TABLE III. EQUATIONS FOR OPERATOR’S EXPANSION B. Hyperbolic Convergence Range Expansion
Method
Convergence Range In order to satisfy minimum working area of Figure 2, the
Rotational Vectorial hyperbolic cordic algorithm basic convergence range is
|𝑧𝑖𝑛 |
Circular |atan2(𝑦𝑖𝑛 ⁄𝑥𝑖𝑛 )| ≤ 1.7433
≤ 1.7433 (99.9°)
expanded.
Linear |𝑦𝑖𝑛 ⁄𝑥𝑖𝑛 | ≤ 1 |𝑧𝑖𝑛 | ≤ 1
For 𝑖 ≤ 0:
Hyperbolic |tanh−1(𝑦𝑖𝑛 ⁄𝑥𝑖𝑛 )| ≤ 𝜃𝑚𝑎𝑥 ≈ 1.1182 |𝑧𝑖𝑛 | ≤ 1.1182 𝑥𝑖+1 1 −𝛿𝑖 (1 − 2𝑖−2 ) 𝑥𝑖
[𝑦 ] = [ 𝑖−2
] [𝑦 ] (12)
𝑖+1 𝛿𝑖 (1 − 2 ) 1 𝑖
At Figure 5, Circular C3 gaits calculations exceeds the 𝑧𝑖+1 = 𝑧𝑖 + 𝛿𝑖 atan−1 (1 − 2𝑖−2 )
basic range of convergence, consequently an expansion is
needed. This is achieved by adding two negative index terms For 𝑖 > 0:
in the calculation, it is enough to enlarge 𝜃𝑚𝑎𝑥 and satisfy 𝑥𝑖+1 1 −𝛿𝑖 2−𝑖 𝑥𝑖
convergence requirements. [𝑦 ] = [ −𝑖 ] [𝑦 ] (13)
𝑖+1 𝛿𝑖 2 1 𝑖
𝑧𝑖+1 = 𝑧𝑖 + 𝛿𝑖 atan−1 (1 − 2−𝑖 )
For 𝑖 ≤ 𝑀:
𝑥𝑖+1 1 −𝛿𝑖 (1 − 2𝑖−𝑀−2 ) 𝑥𝑖
[𝑦 ] = [ ] [𝑦 ] (14)
𝑖+1 −𝛿𝑖 (1 − 2𝑖−𝑀−2 ) 1 𝑖
For 𝑖 > 𝑀:
𝑥𝑖+1 1 −𝛿𝑖 2𝑀−𝑖 𝑥𝑖
[𝑦 ] = [ ] [𝑦 ] (15)
𝑖+1 −𝛿𝑖 2𝑀−𝑖 1 𝑖
The implementation of bit-parallel iterative architecture is convergence 𝑎𝑡𝑎𝑛 parameters starting from third
shown at Figure 7 position in memory. Since pipeline architecture forces all
CORDIC modules start with the pipeline clock, all
instantiations are synchronized. Thus, this allow all
Circular CORDIC modules shares the same look-up
ROM memory to reduce hardware cost.
VI. RESULTS
The Table 4 shows error in Inverse Kinematics calculation.
The main percentage error presented in 𝜃2 is greater than 5%,
this is because 𝜃2 takes values close to zero at determined gait
iterations, even though this error is high, the deviation is close
to zero. Thus, the accuracy in Inverse Kinematics calculation
Figure 15. VLSI Architecture for Trajectories and IK. is acceptable with negligible error and deviation presented less
than zero.
TABLE IV. IK ANGLES ERROR CALCULATION [2] M. Cigola, A. Pelliccio, O. Salotto, G. Carbone, E. Ottaviano, M.
Ceccarelli, “Application of robots for inspection and restoration of
Type 𝜽𝟏 𝜽𝟐 𝜽𝟑
historical sites”. In Proceedings of the International Symposium on
Percent Error (%) 0.004888 5.272004 0.001002 Automation and Robotics in Construction of the Conference, Ferrara,
Italy, 11–14 September 2005, p. 37.
Deviation (Rads) 2.6451x10 −7
3.9705x10 −7
2.6451𝑥10−7
[3] P. Gregorio, M. Ahmadi, M. Buehler. “Design, Control and Energetics
of an Electrically Actuated Legged Robot”. IEEE Trans. Systems, Man
A good approach to measure effective error in robot and Cybernetics, vol. 27, pp. 626–634, Aug. 1997.
motion is by using direct kinematics. Table 5 shows a Direct [4] D. Henrich, T. Höniger, “Parallel Processing Approaches in Robotics”,
IEEE International Symposium on Industrial Electronics, Guimarães,
Kinematics parameters mean percentage error based on each Portugal, 7-11 July, 1997, pp. 2-6.
hexapod robot gait. The architecture calculation gets great [5] M. Arora, R. Chauhan and L. Bagga, “FPGA Prototyping of Hardware
accuracy on both Tripod and Pentapod gaits, on the other hand, Implementation of CORDIC Algorithm”, International Journal of
gets slightly greater error in Quadruped gaits with a maximum Scientific & Engineering Research, vol. 3, Issue 1, January 2012, p1.
of 2.43%, this represents a deviation about 7 mm. [6] J. Denavit and R.S. Hartenberg, “A kinematic notation for lower-pair
mechanisms based on matrices”, ASME Journal of Applied Mechanics,
TABLE V. EQUATIONS FOR OPERATOR’S EXPANSION Vol. 77, 1955.
[7] G. Evangelista, “Design and Modeling of a Mobile Research Platform
𝑷𝒆𝒓𝒄𝒆𝒏𝒕 𝑬𝒓𝒓𝒐𝒓 (%) based on Hexapod Robot with Embedded System and Interactive
Gait
𝒙 𝒚 𝒛 Control”, 23rd International Conference on Methods and Models in
Tripod 8.06451x10 −4
4.62962x10 −4
14.7633x10−4 Automation and Robotics, Międzyzdroje, Poland, 27-30 August, pp.
294-299.
Quadruped 0.583768 0.583333 0.80507 [8] G. Evangelista, D. Lázaro, “Translational Motion Analysis of a
Quadruped Hexapod Walking Robot”, IEEE International Engineering Summit,
4+2
0.583768 0.583333 0.80507 Coatzacoalcos, Mexico, 29-31 October, pp. 167-172.
Pentapod 2.98408x10 −3
2.20439x10 −3
3.41625x10−3 [9] X.Hu, R. Harber and S. Bass, “Expanding the Range of Convergence
of the CORDIC Algorithm”, IEEE Transactions on Computers, vol. 40,
no. 1, pp. 2-6, January 1991.
Figure 18 shows hexapod robot gaits accuracy, even
although was mentioned previously that Quadruped gaits gets
greater error, this actually represents a maximum deviation
about 7 mm in a real gait. This can be overlapped by actuator
precision and may be improved in further works by
approximation methods.
APPENDIX
Programs, simulations and algorithms:
https://drive.google.com/open?id=1u2vgMB8w0MLEd5N
nFU24oTn9zw3128cL
ACKNOWLEDGMENT
The authors are grateful to the professional school of
electronic engineering. Over time we have been able to create
this line of research in polyarticulated walking robots, as well
as to encourage research.
REFERENCES
[1] D. Chávez, “Gait Optimization for Multi-Legged Walking Robots, with
Application to a Lunar Hexapod”, Ph.D. dissertation, Dept. Aeronautics
and Astronautics, Stanford University, USA, 2011, p. 6.