|
1.INTRODUCTIONFrom 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 ARMThe 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. 2.1Identification of joint axis coordinatesAs 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. 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). Then the residual function of nonlinear optimization problem is defined: 2.2Identification of sensor positionSimilarly, 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). 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: 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.3Intelligent and accurate identification method of joint axis based on weighted constraintsThere 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: 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. 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 ACCELEROMETERThe 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 and in the joint plane, where . 4.JOINT ANGLE FUSION BASED ON ADAPTIVE KALMAN FILTER ALGORITHMSince 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. 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). 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 is positive definite, so that is always limited within [Rmin,Rmax] so it has better adaptive ability and reliability. The measurement noise established according to this idea is shown in equation (12), where . 5.MEASUREMENT EXPERIMENT OF ROBOT JOINT ANGLEIn 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. 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. 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.CONCLUSIONIn 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. REFERENCESLi, 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
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
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
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
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
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
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
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
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
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
|