Open Access Paper
28 December 2022 IMU-based joint angle measurement for robot joint angle analysis
Haidie Chen, Xiaoqi Li
Author Affiliations +
Proceedings Volume 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022); 1250652 (2022) https://doi.org/10.1117/12.2661829
Event: International Conference on Computer Science and Communication Technology (ICCSCT 2022), 2022, Beijing, China
Abstract
Aiming at solving the problem of joint angle measurement during the movement of small robots or robotic arms that cannot be equipped with angle encoders, this paper provides a small, lightweight and detachable measurement system. Compared with traditional magnetic and optical joint angle sensors, the principle of this method has the advantages of flexible installation and non-invasive measurement. By simply binding two inertial measurement units (IMUs) on both sides of the robot joint in any pose, real-time and high-precision robot joint angle measurement can be achieved through wireless transmission. At the same time, the relationship between the IMU and the joint pose changes dynamically with the robot, which can avoid measurement errors due to loose binding or robot vibration. In this paper, experiments were carried out on a knee joint rehabilitation training robot which can realize two rehabilitation actions, and the precise and stable joint angle curve of the robot is obtained.

1.

INTRODUCTION

From the large manipulator of industrial production line to the small household robot in the field of medical rehabilitation, joint angle measurement has always played an important role in the intelligent control field of robot. Only accurate and stable robot sensing information can accurately control the robot and its end effector1. Oguntosin measured the angle of the exoskeleton rotating joint by using an incremental encoder2. Dalia designed a photoelectric sensor measurement scheme that can be easily integrated into robot joints3. This method can be used for small robots, but the sensing range of joint angle is usually between 0° and 40°, which still has some limitations. The existing robot joint angle is usually measured directly by the angle sensor installed on the joint, which mainly includes Hall magnetic rotary encoder, optical encoder and so on.

Although these angle sensors have high precision, they have high requirements for installation mode which need occupy a large space, and are easily disturbed by environmental factors. Moreover, the joint size of some small robots currently cannot provide installation space for measuring devices, or cannot have built-in angle sensors. At this time, as a small and portable measuring tool, the IMU can realize repeatable and real-time monitoring without occupying the design space of the robot. Many scholars have used IMU to measure the robot angle4, 5, but there are some typical problems. The first is that the direction of the sensor can not be consistent with the direction of the rotating axis of the motor during installation. The second is that the model can’t still maintain repeatability and accuracy in the face of different intensities of noise and vibration. The measurement method in this paper can bind the IMU to the robot in any posture, and determine the posture relationship between the IMU and the robotic arm in real time. It can more effectively avoid the installation error and the error caused by the sensor offset, so as to ensure the robustness and reliability of the robot in the whole measurement process.

This paper mainly uses the method of real-time calibration of IMU and human body by Seel6. The knee joint angles obtained by gyroscope and accelerometer are fused based on the results of calibration, so as to obtain real-time and stable joint angle data.

2.

SOLUTION OF THE POSE RELATIONSHIP BETWEEN THE IMU AND THE ROBOTIC ARM

The robot joint can be modelled as a hinge connection structure of a rigid body. As shown in Figure 1, two sensors are bound to the robotic arms on both sides in any installation attitude. At any time when the robot moves, the two sensors can collect N groups of angular velocity and acceleration synchronous data sets D(i) = {a1(ti), a2(ti), w1(ti), w2 (ti)}, i ∈ (1,N). Under this condition, the joint axis and joint position coordinates can be solved by establishing kinematic constraints6.

Figure 1.

Mathematical model diagram of robot joint based on IMU layout.

00178_PSISDG12506_1250652_page_2_4.jpg

2.1

Identification of joint axis coordinates

As shown in Figure 1, s1 and s2 are two sensor coordinate systems respectively, j is the unit direction vector of the robot joint axis, and the unit direction vectors j1 and j2 are different expressions in the two IMU local coordinate systems. Therefore, j1 and j2 are parallel to j and expressed in spherical coordinate system as shown in equation (1), where θ and ϕ are the inclination angle and rotation angle in the local coordinate axis.

00178_PSISDG12506_1250652_page_2_1.jpg

During the movement of the robot, the two mechanical arms rotate around the same joint axis and are closely combined without disjointness, the components of the vertical joint axis must be equal in size. In other words, w1 and w2 have the same projection length at each time in the geometric plane with the joint axis as the normal vector. Then for any time t there is equation (2).

00178_PSISDG12506_1250652_page_2_2.jpg

Then the residual function of nonlinear optimization problem is defined:

00178_PSISDG12506_1250652_page_2_3.jpg

2.2

Identification of sensor position

Similarly, the acceleration measured by the IMU sensor can be considered to be composed of the acceleration of the joint center and the acceleration generated by the rotation of the IMU sensor around the joint center7, 8. Obviously, the magnitude of the acceleration at the joint center is the same in both IMU coordinate systems. So for any time t, there are equations (4) and (5).

00178_PSISDG12506_1250652_page_2_5.jpg
00178_PSISDG12506_1250652_page_3_1.jpg

00178_PSISDG12506_1250652_page_3_10.jpg is the acceleration generated by the rotation of the IMU sensor around the center of the joint, rn is the displacement vector of IMU from the joint in its coordinate system, n(ti) is the derivative of the angular velocity measured by the gyroscope to time, which can be solved by the fourth-order Runge Kutta method. Finally, the residual function of the nonlinear optimization problem is defined according to the acceleration constraint formula:

00178_PSISDG12506_1250652_page_3_2.jpg

Therefore, equations (3) and (6) are two nonlinear least squares problems, x = [θ1,ϕ1,θ2,ϕ2]T is the object to be optimized, which can be solved by Gauss Newton.

2.3

Intelligent and accurate identification method of joint axis based on weighted constraints

There are four possible situations for joint axis symbol pairing: (j1, j2), (–j1, j2), (j1,–j2), (–j1,–j2). In other words, there may be a 180° difference in the expression of the joint axis direction vector in the two sensor coordinate systems, which will affect the measurement results. In this paper, the residual weight will be automatically adjusted based on the nonlinear weighting of angular velocity signal variance and acceleration norm difference8, 9, which can automatically generate accurate joint axis estimation. When the velocity change is much less than 9.8 m/s2, the acceleration measurement can approximately represent the gravity vector to obtain the acceleration constraint10. Then equation (3) of the least squares problem can be transformed into the following equations:

00178_PSISDG12506_1250652_page_3_3.jpg
00178_PSISDG12506_1250652_page_3_4.jpg
00178_PSISDG12506_1250652_page_3_5.jpg

where x represents the unknown variable x = [θ1,ϕ1,θ2,ϕ2]T to be solved. ew(i,x) and ea(i,x) are residual terms, respectively. 00178_PSISDG12506_1250652_page_3_6.jpg is the maximum sample variance of w or a. The weights of the two residual terms are as follows: ww(i) a/σw, wa(k) = {1/[1+(||a1(ti)||–||a2(ti)||)2]}1/2.

3.

ROBOT JOINT ANGLE CALCULATION BASED ON GYROSCOPE AND ACCELEROMETER

The knee joint angle based on gyroscope can be calculated by integrating the angular rate difference around the joint axis. Since the acceleration at the joint center is a different representation of the same vector in the two local coordinate systems, the joint angle can also be approximated as the angle of 00178_PSISDG12506_1250652_page_3_7.jpg and 00178_PSISDG12506_1250652_page_3_8.jpg in the joint plane, where 00178_PSISDG12506_1250652_page_3_9.jpg.

4.

JOINT ANGLE FUSION BASED ON ADAPTIVE KALMAN FILTER ALGORITHM

Since the accelerometer is easy to produce instantaneous vibration error in a short time, and the gyroscope will produce cumulative drift error in a long time. Therefore, this paper uses adaptive Kalman filter for attitude fusion. The flow chart of Kalman filter is shown in Figure 2.

Figure 2.

Flow chart of Kalman filtering.

00178_PSISDG12506_1250652_page_4_1.jpg

Theoretically, only when the structural parameters and noise statistical characteristic parameters of the stochastic dynamic system are accurate and consistent, the standard Kalman filter can obtain the optimal estimation of the state. However, in practice, there are some errors that cause the filter divergence. In this paper, an adaptive algorithm of measurement noise variance matrix is used, which can estimate the noise parameters of the system online in real time through measurement while estimating the state. The measurement noise variance Rk is constructed by the method of exponential fading memory weighted average, as shown in equation (10).

00178_PSISDG12506_1250652_page_4_2.jpg
00178_PSISDG12506_1250652_page_4_3.jpg

Among the equation (11), initial value ζ0=1, fading factor b = 0.98. At the same time, this paper adopts the method of setting thresholds to establish the upper limit condition Rmax and the lower limit condition Rmin to ensure that 00178_PSISDG12506_1250652_page_4_4.jpg is positive definite, so that 00178_PSISDG12506_1250652_page_4_5.jpg is always limited within [Rmin,Rmax] so it has better adaptive ability and reliability. The measurement noise 00178_PSISDG12506_1250652_page_4_6.jpg established according to this idea is shown in equation (12), where 00178_PSISDG12506_1250652_page_4_7.jpg.

00178_PSISDG12506_1250652_page_4_8.jpg

5.

MEASUREMENT EXPERIMENT OF ROBOT JOINT ANGLE

In this experiment, the LPMS-B2 wireless inertial sensor of Guangzhou Arubi Company is selected, which has high dynamic accuracy. This experiment was based on the knee joint rehabilitation robot for research, which can realize various movements such as straight leg raising and belly bent legs, as shown in Figure 3.

Figure 3.

Knee rehabilitation robot experimental platform.

00178_PSISDG12506_1250652_page_5_1.jpg

According to the calibration and angle estimation method proposed above, the joint angle measurement of the robot was carried out under two actions according to different placement methods, and the obtained joint angle curves were shown in Figures 4 and 5 respectively.

Figure 4.

Joint angle estimation of rehabilitation robot under bending leg flexion and extension.

00178_PSISDG12506_1250652_page_5_2.jpg

Figure 5.

Joint angle estimation of rehabilitation robot under straight leg raising.

00178_PSISDG12506_1250652_page_6_1.jpg

The four ways to place IMU on the robot are as follows: (a) Two sensors are attached to the front of the connecting rods respectively; (b) Sensor 1 is attached to the front of connecting rod 1, and sensor 2 is attached to the outer side of connecting rod 2; (c) Sensor 1 is attached to the outer side of connecting rod 1 and sensor 2 is attached to the front of connecting rod 2; (d) The two sensors are respectively attached to the outer side of the connecting rods.

It can be seen from the obtained angle curves that the drift error of the gyroscope increases with time, and the accelerometer vibrates obviously at the turning point of each rehabilitation action, but the angles after fusion are relatively stable. The experiment shows that the measurement method has good robustness under different placement poses.

6.

CONCLUSION

In this paper, an IMU-based robot joint angle measurement method is verified through the IMU and robotic arm calibration, sensor fusion and other processes. In order to simplify the experiment, a two-dimensional rigid body motion model is used, and the joint angle is only measured in one degree of freedom. The joint angle curve obtained on the robot verifies its high measurement accuracy and stability, and the measurement results have a high correlation, which shows that the system has excellent linear response ability. In particular, the proposed adaptive filtering algorithm can effectively combine the advantages of gyroscope and accelerometer.

In the next step, the correction of the experimental model and the calibration of motion error will be perfected and the joint angle measurement experiment under different temperature environment will be considered in the future research, so as to achieve better function. Compared with the traditional coded angle measurement method, the method used in this paper has advantages in installation flexibility, and reduces the burden for the joint structure design of the manipulator. Theoretically, the system can be used to make a detachable angle measuring device, which can be widely used in the field of industrial production. At the same time, the sensing and detection system can be integrated into the robot control system to realize effective closed-loop monitoring and control, which lays a solid foundation for the design of more intelligent rehabilitation robot control system.

REFERENCES

[1] 

Li, R., Qiao, H. and Knoll, A., “A survey for methods and strategies for high-precision robotic grasping and assembly tasks—Some new trends,” IEEE/ASME Transactions on Mechatronics, 99 (2019). Google Scholar

[2] 

Oguntosin, V. and Akindele, A., “Design of a joint angle measurement system for the rotary joint of a robotic arm using an incremental rotary encoder,” in Journal of Physics: Conference Series, 012108 (2019). Google Scholar

[3] 

Osman, D., Du, X., Li, W. and Noh, Y., “An optical joint angle measurement sensor based on an optoelectronic sensor for robot manipulators,” in 8th Inter. Conf. on Control, Mechatronics and Automation, (2020). https://doi.org/10.1109/ICCMA51325.2020 Google Scholar

[4] 

Zhang, T., Chen, S., Xu, G., Wang, C. and Tan, C., “Joint angle measurement of manipulator and error compensation based on an IMU sensor,” The Journal of Engineering, 23 9001 –9005 (2019). https://doi.org/10.1049/tje2.v2019.23 Google Scholar

[5] 

Roan, P., Deshpande, N., Wang, Y. and Pitzer, B., “Manipulator state estimation with low cost accelerometers and gyroscopes,” in 2012 IEEE/RSJ Inter. Conf. on Intelligent Robots and Systems, (2012). https://doi.org/10.1109/IROS.2012.6385893 Google Scholar

[6] 

Seel, T., Raisch, J. and Schauer, T., “IMU-based joint angle measurement for gait analysis,” Sensors, 14 (4), 6891 –6909 (2014). https://doi.org/10.3390/s140406891 Google Scholar

[7] 

Versteyhe, M., Vroey, H. D., Debrouwere, F., Hallez, H. and Claeys, K., “A novel method to estimate the full knee joint kinematics using low cost IMU sensors for easy to implement low cost diagnostics,” Sensors, 20 (6), 1683 (2020). https://doi.org/10.3390/s20061683 Google Scholar

[8] 

Olsson, F., Kok, M., Seel, T. and Halvorsen, K., “Robust plug-and-play joint axis estimation using inertial sensors,” 20 (12), 3534 (2020). Google Scholar

[9] 

Olsson, F., Seel, T., Lehmann, D. and Halvorsen, K., “Joint axis estimation for fast and slow movements using weighted gyroscope and acceleration constraints,” arXiv:1903.07353, (2019). Google Scholar

[10] 

Nowka, D., Kok, M. and Seel, T., “On motions that allow for identification of hinge joint axes from kinematic constraints and 6D IMU data,” European Control Conf, (2019). Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Haidie Chen and Xiaoqi Li "IMU-based joint angle measurement for robot joint angle analysis", Proc. SPIE 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022), 1250652 (28 December 2022); https://doi.org/10.1117/12.2661829
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Sensors

Gyroscopes

Robotics

Filtering (signal processing)

Computer programming

Sensing systems

Back to Top