1 Introduction

With the emergence of intelligent manufacturing as a core technology (Wang et al. 2019; Syd et al. 2019; Meng et al. 2020; Ge et al. 2020; Wang and Huang 2017), the intelligent coal mine is the core technical support for high-quality development in the coal industry where the construction of an intelligent coal mine is the ultimate goal (Fu et al. 2017; Wang et al. 2020). However, the movement of the floating connecting mechanism of the hydraulic and the scraper conveyor is space movement; thus, an execution error and mechanical error of the hydraulic support exist (Ibrahim et al. 2011; Wang 2014). Consequently, ensuring the straightness of a fully mechanized coal mining face is difficult. With the advancement of a fully mechanized coal mining face, errors will accumulate, and such errors will affect the normal operation of the coal mine.

The straightening method of a fully mechanized coal mining face can be divided into two parts: a straightening method based on hydraulic support and a straightening method based on the scraper conveyor (Hao et al. 2017a, b). The alignment method based on hydraulic support involves installing sensors on the hydraulic support. Here the hydraulic support is taken as the fulcrum, and the straightness of the hydraulic support group is controlled to achieve the straightness control of the scraper conveyor (Li et al. 2016). Niu (2015) proposed installing a rangefinder and angle sensor on the hydraulic support to detect the alignment. The straightening method based on the scraper conveyor is primarily employed to obtain the attitude of the scraper conveyor through the track of the shearer and then straighten the scraper conveyor (Reid et al. 2011). Fang et al. (2010) proposed using inertial navigation to realize automatic positioning and attitude determination of the shearer and established a cumulative error model to improve positioning and attitude determination accuracy. Hao et al. (2017a) combined a strapdown inertial navigation device and axial encoder to obtain the operating attitude of the shearer. However, the above two straightening methods do not consider the possible unevenness of the coal floor and the space movement of the hydraulic support pushing mechanism, which will affect the straightness of the scraper conveyor.

The pushing mechanism is a floating mechanism that connects the hydraulic support and the scraper conveyor. In this paper, this mechanism is called a floating connection mechanism. When the hydraulic support pushes the scraper conveyor, each component of the floating connecting mechanism can perform translation or rotation movement. Typically, an industrial robot is composed of several rotating joints and moving joints that are connected with each moving part in series or in parallel. This configuration can realize rotation, translation, and combined movement (Jazar 2010; Chen and Dong 2013; Fang et al. 2019; Zhang et al. 2019; Manou et al. 2019). Therefore, based on the kinematic characteristics of the floating connection mechanism between the hydraulic support and the scraper conveyor, a corresponding manipulator model can be established. After analyzing its position and posture, the result can be applied to the straightening process to achieve precise movement.

However, due to the complex environment, narrow space, and various unsafe factors, it is very difficult to carry out relevant experiments, verify conclusions, and acquire data in a coal mine. “Industry + VR” (Xie et al. 2017; Isleyen and Duzgun 2019) provides technical support for testing, research, and visualization of a comprehensive mining face under complex conditions. Unity3D is a virtual simulation engine that supports two and three dimensions using an interactive graphic development environment (Xie et al. 2019). Unity3D can not only realize the visualization of a complex working environment and establish virtual mapping of the real physical world, it can also be applied as a solver to solve complex problems and output data in real time (Xie et al. 2018a). Thus, Unity3D is well-suited to simulate an underground coal mine in Unity3D. Therefore, in view of given the existing problems existing inassociated with the current straightening of the scraper conveyor, the virtual straightening simulation is carried out in Unity3D, which. This approach provides a shortcut for straightening research under complex working conditions.

Given the above problems, based on an industrial robot model, this paper establishes a corresponding manipulator model according to the motion characteristics of the floating connection mechanism. The motion law of the model is analyzed and given to the hydraulic support in the form of C# in the Unity3D environment to realize cooperation between the hydraulic support and the scraper conveyor. In the Unity3D virtual simulation environment, the “Coal Seam + Equipment” Joint Virtual Straightening System is established, and a straightening method based on the motion law of the floating connection mechanism is proposed. The proposed method realizes accurate movement of the hydraulic support. By changing the relative fluctuation of the complicated cutting floor, the scraper conveyor can be straightened accurately when the electro-hydraulic control error is ignored. The influence of the fluctuation of the coal seam floor on the straightness of the scraper conveyor is analyzed, and the straightening accuracy of the proposed straightening method is indirectly obtained. Finally, the straightening method based on the motion law of the floating connection mechanism is compared to the Longwall Automation Steering Committee (LASC) straightening technology in terms of process and accuracy.

2 Integral concept of virtual straightening of scraper conveyor

The machines involved in a fully mechanized coal mining face are hydraulic support, shearer, and scraper conveyor (Xie et al. 2017). When the working face is operational the shearer takes the scraper conveyor as the running track, cuts the coal back and forth along the coal wall, cuts the coal off the coal wall, and loads the falling coal into the scraper conveyor, which moves forward as the hydraulic support advances while carrying the coal. After the shearer completes its work, the hydraulic support supports the roof of the goaf to maintain a certain working space (Xie et al. 2018a, 2019). In the process of coal mining, the working face wall, scraper conveyor, and hydraulic support must be aligned in a straight line. However, in a fully mechanized coal mining face, the straight line requirement cannot always be met; therefore, it is necessary to straighten the scraper conveyor. The three machines in a fully mechanized coal mining face and the straightening effect are shown in Fig. 1.

Fig. 1
figure 1

Three machines in fully mechanized coal face and straightening effect

The connection between the hydraulic support and the middle trough is a floating system (Wang et al. 2018; Hao et al. 2017b), as shown in Fig. 2. Thus, movement of the floating connecting mechanism of the hydraulic support and scraper conveyor is spatial rather than simple linear movement, which results in error between the moving distance of the scraper conveyor and the ideal moving distance when the scraper conveyor is pushed. Therefore, it is necessary to analyze the movement of the floating connecting mechanism between the hydraulic support and scraper conveyor.

Fig. 2
figure 2

Connection between hydraulic support pushing mechanism and scraper conveyor

Based on the motion law of the floating connection mechanism, the displacement of the hydraulic cylinder is obtained and straightened in the proposed “Coal Seam + Equipment” Joint Virtual Straightening System. First, the hydraulic support pushes the scraper conveyor, and the hydraulic support advances support according to elongation of the obtained hydraulic cylinder according to the position and posture of the shearer (Wang et al. 2018; Hao et al. 2017b; Liu et al. 2019). The inverted trajectory of the scraper conveyor is compared to the expected trajectory of the next knife, and straightening correction of the corresponding middle trough of the hydraulic support is obtained. Through real-time data analysis of the simulation system, the actual pushing amount of the hydraulic support corresponding to the straightening correction amount is obtained, and the hydraulic support pushes according to the pushing stroke. Finally, the running track of the scraper conveyor after straightening is obtained, and the hydraulic support moves according to extension of the hydraulic cylinder during pushing. A flowchart of the virtual straightening concept is shown in Fig. 3.

Fig. 3
figure 3

Overall framework of virtual straightening of scraper conveyor

3 Construction of analytical model based on industrial robot

When the hydraulic support pushes the scraper conveyor, the pushing mechanism connecting the hydraulic support and scraper conveyor has four degrees of freedom, i.e., translational movement of the piston rod along the advancing ram cylinder, pitch and yaw rotation of the relay bar around the pin shaft connecting the relay bar and piston rod, and yaw rotation of the joint around the connected pin axis. Thus, the motion of the pushing mechanism is spatial movement rather than simple plane movement. Therefore, the moving mechanism is referred to as the floating connecting mechanism of the hydraulic support and scraper conveyor. Note that its motion characteristics are similar to those of an industrial robot.

3.1 Model transformation

Industrial robots comprise of a series of connecting rods connected by rotational and prismatic joints, which can locate and orient in the range of motion. Generally, the motion of connecting rods includes rotational movement, translational movement, and translational plus rotational motion (Jazar 2010). The movement of each structure of the floating connecting mechanism of the hydraulic support and scraper conveyor has rotational movement or translational movement; thus, the floating connecting mechanism can be transformed into a manipulator model.

In robot kinematics, roll, pitch, and deflection angles are used to represent the motion attitude, and the combination of angles can be used to describe the motion attitude of the robot (Manou et al. 2019). When the hydraulic support pushes the scraper conveyor, the hydraulic oil cylinder is in the static state relative to the base; therefore, the hydraulic oil cylinder is selected as the base. In addition, movement of the joint is simplified as deflection movement of the end actuator around the wrist. The joint is simplified as an end-effector, and the pin shaft connecting the joint to the relay bar is simplified as a rotating joint with yawing motion. The connecting pin between the piston rod and relay bar is simplified as a rotary joint with yawing motion and pitching motion of the robot, and the hydraulic cylinder and piston rod are simplified as the prismatic joint of the robot. The final model can realize the deflection movement of the end-effector around the wrist, the extension and retraction of the manipulator, and the pitching and deflection movement of the arm. The manipulator model is shown in Fig. 4, where Fig. 4a is a schematic diagram of the pushing mechanism, which is primarily comprises an advancing ram, relay bar, and joint, and Fig. 4b is a manipulator model obtained by converting the kinematic characteristics of each structure in Fig. 4a into corresponding joints.

Fig. 4
figure 4

Hydraulic support floating connection mechanism and conversion model

3.2 D–H coordinate system

The D–H matrix coordinate system refers to the local reference system assigned to each joint, which must specify the z-axis and x-axis (Jazar 2010). If the joint is rotating, the z-axis is in the right-hand rotation direction, and, if the joint is translational, the z-axis is in the straight-line motion direction. Here, the z-axis of all rotating joints and prismatic joints is determined according to the above principles. When the joints are not parallel or do not intersect, the z-axis is typically a diagonal line. Note that there is always a common vertical line with the shortest distance that is orthogonal to any two diagonal lines. The x-axis of the local coordinate system is defined in any two directions of the common vertical line. According to this method, the x-axis of all rotational and prismatic joints is determined. The D–H coordinate system shown in Fig. 5 is established according to the relative motion relationship of each joint of the determined manipulator model.

Fig. 5
figure 5

D–H reference frame

4 Model solving based on inverse kinematics

According to the D–H matrix coordinate system (Sect. 3.2), the linkage of the manipulator model is expressed P||R(0°),R⊥R(90°), R⊥R(90°), R||R(0°), R⊥P(90°). The D–H parameter table according to the established D–H matrix coordinate system is given in Table 1, and the meaning of each joint variable is listed in Table 2.

Table 1 D–H parameters
Table 2 Definition of joint variables

4.1 Solving equations by inverse kinematics

It is necessary to determine the relationship between the elongation of the piston rod, the deflection angle of the relay bar around the connecting pin shaft, the pitch angle and the deflection angle of the joint.

Equation (1) shows the transformation matrix of two adjacent coordinate systems.

$${}^{i-1}{T}_{i}=\left[\begin{array}{cccc}{\text{cos}}\,{\theta }_{i}& -{{\text{sin}}}\,{\theta }_{i}{\text{cos}}\,{\alpha }_{i}& {{\text{sin}}}\,{\theta }_{i}{{\text{sin}}}\,{\alpha }_{i}& {a}_{i}\,{\text{cos}}\,{\theta }_{i}\\ {{\text{sin}}}\,{\theta }_{i}& {\text{cos}}\,{\theta }_{i}{\text{cos}}\,{\alpha }_{i}& -{\text{cos}}\,{\theta }_{i}{{\text{sin}}}\,{\alpha }_{i}& {a}_{i}\,{{\text{sin}}}\,{\theta }_{i}\\ 0& {{\text{sin}}}\,{\alpha }_{i}& {{\text{cos}}}\,{\alpha }_{i}& {d}_{i}\\ 0& 0& 0& 1\end{array}\right]$$
(1)

All transformation matrices of the manipulator model are obtained as follows.

$${}^{0}{T}_{1}=\left[\begin{array}{cccc}1& 0& 0& 0\\ 0& 1& 0& 0\\ 0& 0& 1& {d}_{1}\\ 0& 0& 0& 1\end{array}\right]$$
(2)
$${}^{1}{T}_{2}=\left[\begin{array}{cccc}{\text{cos}}\,{\theta }_{2}& 0& {\text{sin}}\,{\theta }_{2}& 0\\ {\text{sin}}\,{\theta }_{2}& 0& -{\text{cos}}\,{\theta }_{2}& 0\\ 0& 1& 0& 0\\ 0& 0& 0& 1\end{array}\right]$$
(3)
$${}^{2}{T}_{3}=\left[\begin{array}{cccc}{\text{cos}}\,{\theta }_{3}& 0& {\text{sin}}\,{\theta }_{3}& 0\\ {\text{sin}}\,{\theta }_{3}& 0& -{\text{cos}}\,{\theta }_{3}& 0\\ 0& 1& 0& 0\\ 0& 0& 0& 1\end{array}\right]$$
(4)
$${}^{3}{T}_{4}=\left[\begin{array}{cccc}{\text{cos}}\,{\theta }_{4}& {\text{sin}}\,{\theta }_{4}& 0& {l}_{1}{\text{cos}}\,{\theta }_{4}\\ {\text{sin}}\,{\theta }_{4}& -{\text{cos}}\,{\theta }_{4}& 0& {l}_{1}{\text{sin}}\,{\theta }_{4}\\ 0& 0& 1& 0\\ 0& 0& 0& 1\end{array}\right]$$
(5)
$${}^{4}{T}_{5}=\left[\begin{array}{cccc}1& 0& 0& 0\\ 0& 1& 0& 0\\ 0& 0& 1& {l}_{2}\\ 0& 0& 0& 1\end{array}\right]$$
(6)

According to the equation \({}^{0}{T}_{5}={}_{ }{}^{0}{T}_{1}\cdot {{}_{ }{}^{1}T}_{2}\cdot {{}_{ }{}^{2}T}_{3}\cdot {{}_{ }{}^{3}T}_{4}\cdot {{}_{ }{}^{4}T}_{5}\), the forward motion matrix of the manipulator model is established as follows.

$${}^{0}{T}_{5}=\left[\begin{array}{cccc}{r}_{11}& {r}_{12}& {r}_{13}& {r}_{14}\\ {r}_{21}& {r}_{22}& {r}_{23}& {r}_{24}\\ {r}_{31}& {r}_{32}& {r}_{33}& {r}_{34}\\ 0& 0& 0& 1\end{array}\right]$$
(7)

The symbols in the Eq. (7) are as follows:

$$\begin{aligned} & r_{11} = {\text{cos}}\, \theta_{2} {\text{cos}}\, \theta_{3} {\text{cos}}\, \theta_{4} + {\text{sin}}\, \theta_{2} {\text{sin}}\, \theta_{4} \\ & r_{12} = - {\text{cos}}\, \theta_{2} {\text{cos}}\, \theta_{3} {\text{sin}}\, \theta_{4} + {\text{sin}}\, \theta_{2} {\text{cos}}\, \theta_{4} \\ & r_{13} = {\text{cos}}\, \theta_{2} {\text{sin}}\, \theta_{3} l_{2} {\text{cos}}\, \theta_{2} {\text{sin}}\, \theta_{3} \\&\quad + l_{1} \left( {{\text{cos}}\, \theta_{2} {\text{cos}}\, \theta_{3} {\text{cos}}\, \theta_{4} + {\text{sin}}\, \theta_{2} {\text{sin}}\, \theta_{4} } \right) \\ & r_{21} = {\text{sin}}\, \theta_{2} {\text{cos}}\, \theta_{3} {\text{cos}}\, \theta_{4} - {\text{cos}}\, \theta_{2} {\text{sin}}\, \theta_{4} \\ & r_{22} = - {\text{sin}}\, \theta_{2} {\text{cos}}\, \theta_{3} {\text{sin}}\, \theta_{4} - {\text{cos}}\, \theta_{2} {\text{cos}}\, \theta_{4} \\ & r_{23} = {\text{sin}}\, \theta_{2} {\text{sin}}\, \theta_{3} \\ & r_{31} = {\text{sin}}\, \theta_{3} {\text{cos}}\, \theta_{4} \\ & r_{32} = - {\text{sin}}\, \theta_{3} {\text{sin}}\, \theta_{4} \\ & r_{33} = - {\text{cos}}\, \theta_{3} \\ & r_{34} = - l_{2} {\text{cos}\, }\theta_{3} + l_{1} {\text{sin}}\, \theta_{3} {\text{cos}}\, \theta_{4} + d_{1} \\ \end{aligned}$$

When the end position vectors are \(\left({x}_{0},{y}_{0},{z}_{0}\right)\), the forward motion matrix is simplified as follows.

$${}^{0}{T}_{5}=\left[\begin{array}{cccc}{r}_{11}& {r}_{12}& {r}_{13}& {x}_{0}\\ {r}_{21}& {r}_{22}& {r}_{23}& {y}_{0}\\ {r}_{31}& {r}_{32}& {r}_{33}& {z}_{0}\\ 0& 0& 0& 1\end{array}\right]$$
(8)

The inverse kinematics technique is used to solve the motion parameters according to the following equation.

$${{}^{1}{T}_{5}={{}{}^{0}T}_{1}}^{-1}\cdot {}{}^{0}{T}_{5}$$
(9)
$${{{{}^{ 2}T}_{5}={}{}^{1}T}_{2}}^{-1}\cdot {{{}{}^{0}T}_{1}}^{-1}\cdot {{}{}^{0}T}_{5}$$
(10)
$${{{{{{}^{3}T}_{5}={}{}^{2}T}_{3}}^{-1}\cdot {}{}^{1}T}_{2}}^{-1}\cdot {{{}{}^{0}T}_{1}}^{-1}\cdot {{}{}^{0}T}_{5}$$
(11)
$${{{{{}^{4}T}_{5}={{{}{}^{3}T}_{4}}^{-1}\cdot {{{}{}^{2}T}_{3}}^{-1}\cdot }}{{{}{}^{1}T}_{2}}^{-1}\cdot {{{}{}^{0}T}_{1}}^{-1}\cdot {{}{}^{0}T}_{5}}$$
(12)
$${{{{I={}{}^{4}T}_{5}}^{-1}\cdot {{{}{}^{3}T}_{4}}^{-1}\cdot {{{}{}^{2}T}_{3}}^{-1}\cdot }}{{{}{}^{1}T}_{2}}^{-1}\cdot {{{}{}^{0}T}_{1}}^{-1}\cdot {{}{}^{0}T}_{5}$$
(13)

4.2 Determining the optimal solution

Due to the multi-solution problem in inverse kinematics, it is necessary to determine the optimal solution. However, movement of the floating connection mechanism between the hydraulic support and scraper conveyor is a four degree-of-freedom space motion, and the motion of each degree of freedom is random. Unity3D, as a virtual simulation engine, can assign motion laws to a specified model to control its motion.

We assign the obtained motion law to the virtual hydraulic support and mark the key point in the scraper conveyor pushing an ear socket as the final position of the end actuator of the manipulator model. As the posture of the virtual scraper conveyor changes with the advancing virtual comprehensive mining face, the positions of the key points change in real time in the virtual environment. In addition, the points of action when pushing and advancing the support are determined by changing the positions of key points on the scraper conveyor. In the C# programming language environment, the joint variable \({d}_{1}\) is defined as Position, \({\theta }_{2}\) as ZhuanJiao2, \({\theta }_{3}\) as ZhuanJiao3, and \({\theta }_{4}\) as ZhuanJiao4. The optimal solution for different conditions is transformed into the C# language, and the movement and rotation of the related structure of the virtual floating linkage are controlled by Position, ZhuanJiao2, ZhuanJiao3, and ZhuanJiao4. The optimal solution can be determined according to the yaw and pitch angles of the relay bar around the connecting pin axis and whether the relay bar and joint interfere with the base of the hydraulic support and push ear seat of the scraper conveyor.

$${d}_{1}={z}_{0}-\sqrt{{({l}_{1}+{l}_{2})}^{2}-({{x}_{0}}^{2}+{{y}_{0}}^{2})}$$
(14)
$${\theta }_{2}={{\text{tan}}}^{-1}\frac{{x}_{0}}{{y}_{0}}$$
(15)
$$\begin{aligned} \theta_{3} & = \sin^{ - 1} \frac{{l_{2} }}{{\sqrt {\left( {x_{0} {\text{cos}}\, \theta_{3} + y_{0} {\text{sin}}\, \theta_{3} } \right)^{2} + \left( {z_{0} - d_{1} } \right)^{2} } }} \\ & \quad + \cos^{ - 1} \frac{{z_{0} - d_{1} }}{{\sqrt {\left( {x_{0} \cos\theta_{3} + y_{0} \sin\theta_{3} } \right)^{2} + \left( {z_{0} - d_{1} } \right)^{2} } }} \\ \end{aligned}$$
(16)
$$\begin{aligned} \theta_{4} & = \cos^{ - 1} \frac{{x_{0} - l_{2} \cos\theta_{2} \cos\theta_{3} }}{{\sqrt {\left( {l_{1} \cos\theta_{2} \cos\theta_{3} } \right)^{2} + \left( {l_{1} \sin\theta_{3} } \right)^{2} } }} \\ & \quad + \cos^{ - 1} \frac{{l_{1} \cos\theta_{2} \cos\theta_{3} }}{{\sqrt {\left( {l_{1} \cos\theta_{2} \cos\theta_{3} } \right)^{2} + \left( {l_{1} \sin\theta_{3} } \right)^{2} } }} \\ \end{aligned}$$
(17)

As shown in Fig. 6, after determining the position of the pushing and advancing points, the floating connecting mechanism reaches the appropriate position. In addition, by comparing the attitude of the floating connecting mechanism in the virtual environment to that in the virtual environment, we find that the attitude motion of the floating connecting mechanism in the virtual environment is the same as that in the actual environment, and the joint and relay bar are deflected, which demonstrates that the selected motion law is reasonable.

Fig. 6
figure 6

Connection diagram of hydraulic support and scraper conveyor

5 “Coal Seam + Equipment” joint virtual straightening system

Here, we establish the “Coal Seam + Equipment” Joint Virtual Straightening System, discuss the “Coal Seam + Equipment” Joint Virtual Straightening System, and present the virtual space of the straightening simulation. Here, to achieve coordination between the hydraulic support and scraper conveyor, the scraper conveyor can be adjusted by controlling the fluctuation of the coal floor in the direction of advance of a fully mechanized coal mining face and by means of the straightening method based on the motion law of the floating connection mechanism (Xie et al. 2018b, c, d; Shi et al. 2019).

5.1 Construction of “Coal Seam + Equipment” virtual scene

Large fluctuation of the coal seam floor will occur due to the influence of an uneven basement and late geological tectonic movement during coal seam deposition (Wu 2013). In addition, crustal movement will change, steepen, or slow the previously horizontal coal seam (Li 2019). In this paper, the inclination of the coal seam is 10 degrees, and there are fluctuations in the direction of the fully mechanized coal mining face.

A three-dimensional model of the virtual coal seam floor with 10 degree inclination and undulations is built in UG, imported into 3D Max in STL format, and then converted to FBX format and imported into Unity 3D to obtain the coal seam floor in a virtual environment (Fig. 7).

Fig. 7
figure 7

Virtual coal seam

Here, to simplify the research process, 11 hydraulic supports and 13 middle troughs are selected. In the virtual environment created using Unity 3D, a mesh collider is added to the virtual coal seam (Fig. 6), a box collider and rigid body components are installed on the virtual scraper conveyor and virtual hydraulic support, and a capsule collider is installed at the middle trough ramp plate of each section of the scraper conveyor to allow it to pass over raised terrain. Installing character joint hinges between the two adjacent middle troughs enables a single midsection slot to be constrained by the two adjacent middle troughs and correspond to real-world physical effects by setting parameters, i.e., the hydraulic support and scraper conveyor can be adapted to lay on the virtual coal seam (Fig. 8). Here, when the hydraulic support pushes the scraper conveyor, the middle trough is influenced by the adjacent middle trough and coal seam floor.

Fig. 8
figure 8

“Coal seam + Equipment” based on Virtual Engine

5.2 Establishing "Coal seam + Equipment" control model

The hydraulic support is numbered DiZuo X (X ∈ (1,11)) and is considered the sub-object of yyzz. The middle trough is numbered ZhongBuCao X (X ∈ (1,13)) and considered a sub-object of GBJ. The undulations along the working face direction are indicated by the relative position relationship of the two undulating coal seam floor plates, which are numbered MeiCengDiBan X (X ∈ (1,2)).

According to the known running track of the shearer, the projected track in the horizontal direction is inverted to the scraper conveyor according to the bending condition of the track. Then, the bending angle of the middle trough of each section is determined and represented by the script form of GBJControl.cs, which is installed on the parent object GBJ of the middle trough of the scraper conveyor. The rotation of the middle trough of each section is controlled by the following function:

  • this.transform.Rotate(new Vector3(eulerAngles.x, eulerAngles.y, eulerAngles.z), Space.Self);

The YYZJControl.cs control script is installed on each hydraulic support, and the pushing and advancing support processes of the hydraulic support is controlled by TuiYiYouGangShenChangFunction and DiZuoQianYiFunction, respectively. According to the obtained motion law of the floating connection mechanism, joint variable \({d}_{1}\) is defined as Position, \({\theta }_{2}\) as ZhuanJiao2, \({\theta }_{3}\) as ZhuanJiao3, and \({\theta }_{4}\) as ZhuanJiao4. The optimal solution established under different conditions is converted to the C# language, and the movement and rotation of the relevant structures of the virtual floating connection mechanism are controlled by Position, ZhuanJiao2, ZhuanJiao3, and ZhuanJiao4 to realize precise shift of the hydraulic support.

The MCDBControl.cs control script is installed on MeiCengDiBan1 to control the movement of MeiCengDIBan2 relative to the parent object Using the following statement: this.transform.localPosition = new Vector3 (x, y, z).

5.3 Straightening method based on motion law of floating connection mechanism

The straightening method based on the motion law of the floating connection mechanism realizes straightening of the scraper conveyor in the virtual environment, which is based on the ideal straightening position of the scraper conveyor. The hydraulic support pushing mechanism can accurately push the specific motion according to the results of each structure of the motion law of the floating connection mechanism. The law is considered the default straightening method in the “Coal Seam + Equipment” joint virtual straightening system.

The motion law of the floating connection mechanism between the hydraulic support and scraper conveyor (Sect. 4.2) is programmed into the background program of the virtual simulation system, and the virtual hydraulic support is connected to the virtual scraper conveyor by the pushing mechanism. As a result, self-adaptive collaborative propulsion of the virtual hydraulic support and virtual scraper conveyor under different coal seam conditions is realized.

As shown in Fig. 9, propelling deviation during the propelling process of the fully mechanized coal face is shown in Fig. 9. Here, \({AFP}_{n}\) is the actual track of the working face at the cutting time of the knife n, \({DFP}_{n}\) is the target trajectory of the working surface at the time of knife n cutting, \({RPC}_{n}\) is the straightness correction required by the scraper conveyor after knife n cutting (Fan et al. 2012; Li 2019), and \({DPC}_{n}\) is the theoretical traveling distance required for the hydraulic support after knife n has been cut. Note that the maximum values of \({RPC}_{n}\) and \({DPC}_{n}\) are 630 mm.

Fig. 9
figure 9

Deviation degree of advance in the process of working face advance

After the shearer cutting, the scraper conveyor is pushed by the hydraulic support according to the traditional process, and the \({AFP}_{n}\) curve is obtained only after shearer cutting is completed. The simulation system obtains \({DPC}_{n}\) according to the prediction of \({AFP}_{n-1}\) and calculates the difference between the two according to the curve of \({AFP}_{n}\) and \({AFP}_{n-1}\). In other words, \({DPC}_{n}\) is the basis of the hydraulic support’s travel, and the hydraulic support is moved according to the actual elongation of the piston rod corresponding to the calculated difference. During the next cut of coal by the shearer, the simulation system calculates the difference between the \({AFP}_{n}\) and \({DFP}_{n}\) curves; thus, \({RPC}_{n}\) is the theoretical basis of this pushing stroke of the hydraulic support. After the system calculates the actual pushing stroke and sends it to the hydraulic support, the hydraulic support group pushes the scraper conveyor into a straight line on the horizontal projection. Finally, the hydraulic support is advanced according to the elongation of the piston rod. After the support is advanced, the position of the hydraulic support is adjusted, and the hydraulic support is set in position.

5.4 Virtual simulation process based on seam floor without undulations

In this paper, the hydraulic support model is ZY11000/18/38D, the shearer model is MG400/920-WD, the scraper conveyor model is SGZ800/1050. In the virtual environment, the three machines of a virtual fully mechanized coal mining face are the same as those of a real fully mechanized coal mining face (with a shearer cut depth of 630 mm).

Since the theoretical displacement is based on the relative position change of the scraper conveyor when straightening, here, the movement of the hydraulic support is controlled by the position change of the scraper conveyor. In the virtual environment, Unity3D as a solver is used to simulate the function of the control host through the control of C# script to realize collaborative control of the hydraulic support and scraper conveyor (Li 2019).

When the virtual seam floor does not fluctuate in the direction of a fully mechanized coal mining face, the hydraulic support groups and scraper conveyors are laid on the virtual seam adaptively, as shown in Fig. 10, where the blue plate is the child plate, and the black plate is the parent plate. Here, fluctuation is indicated by changing the relative displacement of the child plate relative to the parent plate in the y-axis direction.

Fig. 10
figure 10

Hydraulic support group and scraper conveyor are laid on virtual coal seam

5.4.1 Operation process

The operation interface of The “Coal Seam + Equipment” Joint Virtual Straightening System is shown in Fig. 11.

Fig. 11
figure 11

Operation interface

By clicking the “Start” button, the hydraulic support pushes the scraper conveyor. At this time, the scraper conveyor bends into the established posture. In addition, by clicking the “Advancing support” button, the hydraulic support group advances, and, by clicking on the “Straightening” button, the hydraulic support slides according to the forecasted track of the previous scraper conveyor. By clicking the “Advancing support” button again, the hydraulic support is advanced. Note that, at this time, the hydraulic support group does not meet the straightness requirements. Clicking the “Adjusting the hydraulic support” button adjusts the straightness of the hydraulic support group by adjusting the position of the hydraulic support. The entire straightening process is shown in Fig. 12. Here, the hydraulic support is straightened based on the straightening method of the motion law of the floating connection mechanism, and then the hydraulic support position is straightened according to the sequence of pushing and then advancing. As can be seen, the final posture of the scraper conveyor and hydraulic support has good straightness.

Fig. 12
figure 12

Virtual straightening process

By clicking the “Hydraulic support’s data” button, data of the elongation of the piston rod, deflection angle of the joint, deflection angle of the relay bar, and pitch angle of the hydraulic support group can be output in real time in XML format during operation of the three machines of a fully mechanized virtual coal mining face. Here, the key point is marked as the position of the middle trough at the center of the middle pin row of the middle trough. By clicking the “Scraper Conveyor’s Data” button, the position of each middle trough of the scraper conveyor is output in XML file format in real time.

By clicking “Floor undulation+,” trigger once to achieve a floor bulge of 20 mm. In the simulation system, the difference between the sub-floor and the parent floor is + 0.01 dm. Click on “Floor undulations -,” trigger once to achieve a floor sag of 20 mm, in the simulation system, the difference between the sub-floor and the parent floor is − 0.01 dm.

5.4.2 Simulation results

Output the position coordinates of each middle trough, and the Z coordinate is selected to obtain the position curve of the scraper conveyor track projected in the horizontal direction. According to the change of the relative position of the middle trough, no more than one cutting depth can be predicted to predict the position of the scraper conveyor after straightening. Here, the average z-axis value of all middle troughs after straightening is selected as the ideal straightening position of each middle trough of the scraper conveyor.

The position and posture track of the scraper conveyor in the horizontal projection direction is shown in Fig. 13a, which shows that the effect of the proposed straightening method meets the requirements of straightening. Figure 13b shows that the error between the actual and ideal track curves of the scraper conveyor is within ± 0.05 dm, and the straightening accuracy is high.

Fig. 13
figure 13

Position and straightening error of Scraper conveyor

6 Virtual simulation test under different coal seam floor fluctuation conditions

Note that the coal floor is not straight; thus, coal seam inclination and fluctuation in the direction of the fully mechanized coal mining face will occur. Here, fluctuation of the coal seam floor in the direction of the fully mechanized coal mining face is indicated by the change in the relative position between the subfloor and parent floor. As shown in Fig. 14, when the coordinate position of the sub-base plate relative to the parent base plate changes to a positive value, the terrain shown in Fig. 14a is obtained. In addition, when the coordinate position of the sub-base plate relative to the parent base plate changes to a negative value, the terrain shown in Fig. 14b is obtained.

Fig. 14
figure 14

Undulation of coal seam floor in working face

6.1 Bulge topography in coal seam floor

The influence of protruding terrain on straightening accuracy when the scraper conveyor encounters raised terrain during straightening was examined in several sets of experiments. The results are shown in Table 3.

Table 3 Test arrangements

According to the Table 3, the virtual straightening simulation tests were performed using Unity3D and the straightness error of the middle trough of the scraper conveyor after straightening in the horizontal projection direction was obtained (Table 4). As can be seen, with increasing coal seam floor bulge, the average straightness error of scraper conveyor was within 3–5 mm, and the straightening accuracy was high.

Table 4 Straightness error of the scraper conveyor with different base plate protrusions

By controlling coal floor bulge in the direction of advance of a fully mechanized coal mining face within the range shown in Table 4, Fig. 15a shows that, with fluctuation of the coal seam floor, a greater bulge in the coal seam floor is yields greater straightening error. In addition, Fig. 15b shows that the average straightening error of the scraper conveyor increases with increasing coal seam floor bulge, when the bulge is greater than 80 mm, the average straightening error of scraper conveyor is affected more by fluctuation of the floor.

Fig. 15
figure 15

Straightening error of coal seam floor when there is bulge in its advancing direction

6.2 Subsidence topography in coal seam floor

Table 5 shows the influence of raised terrain on straightening accuracy when the scraper conveyor encounters sagging terrain while straightening.

Table 5 Test arrangements

According to the Table 5, the virtual straightening simulation tests were performed in Unity3D, and the straightness error of the middle trough of the scraper conveyor after straightening in the horizontal projection direction was obtained. The results are shown in Table 6. As can be seen, with increasing coal seam floor subsidence, the average straightness error of scraper conveyor was within 2–8 mm, and the straightening accuracy is high.

Table 6 Straightness error of the scraper conveyor with different floor sag

By controlling the subsidence of the coal floor in the direction of the working face advance in the range of fluctuation of coal floor (Table 6). Figure 16a shows that, with coal seam floor fluctuation, larger subsidence of the coal seam floor results in greater straightening error of the scraper conveyor. In addition, Fig. 16b shows that the average straightening error of the scraper conveyor increases as subsidence of the coal seam floor increases. Here, the average straightening error of the scraper conveyor is increasingly affected by floor fluctuation.

Fig. 16
figure 16

Straightening error of coal seam floor in the process of subsidence

6.3 Test conclusions

  1. (1)

    From the simulation results presented in Sects. 6.1 and 6.2, it can be seen that, in the virtual environment, the straightening method based on motion law of floating connection mechanism is used to straighten the alignment. The straightening effect is better, and the straightening precision is high.

  2. (2)

    When the coal seam floor fluctuates in the advancing direction of a fully mechanized coal mining face, the scraper conveyor straightness error increases after straightening.

  3. (3)

    When the coal seam floor in the fully mechanized coal face has undulations, the straightness of scraper conveyor is more affected by the subsidence terrain during straightening than by the bulge terrain. However, when the bulge is within 20–100 mm, the average straightness error of the scraper conveyor after straightening is within 4–5 mm. When the subsidence is within 20–100 mm, the average scraper conveyor straightness error after straightening is within 2–8 mm. And the two cases have high straightening accuracy and meet the accuracy requirements of straightening.

7 Experimental verification

7.1 Experimental scheme and platform

According to the scale between the pushing test-bed model and the coal machinery model in the virtual simulation system is about 6:35. According to the median line of triangle, 3.5 mm gaskets are selected to control the fluctuation of the base plate, the fluctuating model of coal seam floor is shown in Fig. 17.

Fig. 17
figure 17

Fluctuating model of coal seam floor

The sensors required in this paper are listed in Table 7, and the experimental device is shown in Fig. 18. Due to the limitation of the experimental device, the angle of the joint is obtained by manual measurement. And the test-bed is fixed on the foundation, it cannot realize the advancing of the base, so the pushing mechanism can only push the scraper conveyor with full stroke to control the straightness of the scraper conveyor. In this experiment, by controlling the undulations of the coal floor model, the board is made to walk along the white line on the middle trough to simulate the coal cutting process of shearer with scraper conveyor as running track, to study the influence of the undulations of coal floor on the straightness of scraper conveyor and the reliability of the motion law of floating connection mechanism.

Table 7 The list of sensors
Fig. 18
figure 18

Experimental equipment

7.2 Experimental data analysis

Due to the large amount of data in this experiment, a portion relevant experimental data is selected as follows (Fig. 19).

Fig. 19
figure 19

Experimental data

7.3 Reliability analysis of experimental device

Compare the data from the pushing test-bed with the data from the virtual simulation test, i.e., compare the data from the experiment with the data from Unity3D, and get the difference after the virtual-real comparison, to determine whether the test-bed can be used to verify the relevant conclusions from the virtual simulation test.

It can be seen from Fig. 20 that the difference between roll angle, pitch angle and yaw angle of the middle trough is within 1°, and the average value of difference of angle for middle groove is within 0.5° in Fig. 20d. This indicates that relevant tests are carried out on the pushing test-bed to validate the conclusions obtained in the virtual simulation test in this paper are feasible and effective.

Fig. 20
figure 20

Virtual-real comparison of difference value of middle trough angle under bulge topography

7.4 Verification of motion law of floating connection mechanism

By comparing the experimental data with the data transported in the virtual environment, the D-value curves are obtained as shown in the Fig. 21.

Fig. 21
figure 21

D-value curves

As can be seen from Fig. 21, the average difference of the piston rod elongation is about 0.41 cm, and the average difference between the yaw angle of the push rod, the pitch angle and the yaw angle of the piston rod is about (0.45°, 0.10°, 0.09°), the difference between the experimental results and the virtual simulation results is small. This shows that the motion law of the floating connection mechanism obtained in this paper is true and reliable.

7.5 Verification of the influence of coal seam floor undulation on scraper conveyor straightness

7.5.1 Straightening experiment in bulge topography

The coal floor model on one side of scraper conveyor is padded up to simulate the bulge topography by gaskets. The scraper conveyor is pushed by pushing mechanisms and the distance between the scraper conveyor and the location datum on the pushing mechanism is measured by displacement sensor. The straightness error curve of scraper conveyor under different bulge topography is obtained (Fig. 22).

Fig. 22
figure 22

Error curves of scraper conveyor

It concludes that with the increase of coal seam floor undulation, the straightness error of scraper conveyor is increasing, and the average straightening error of the scraper conveyor increased flatly at first then steeply. The conclusions are consistent with the conclusions obtained in Sect. 6.1.

7.5.2 Straightening experiment in bulge topography

Raise the height of the coal seam floor by 5 gaskets as a whole, and the gaskets are placed under the bottom plate of one side of the scraper conveyor pushing an ear socket to simulate the subsidence topography. Repeat the experimental steps in Sect. 7.5.1 to get the straightness error curves of scraper conveyor under different subsidence, as shown in Fig. 23.

Fig. 23
figure 23

Error curves of scraper conveyor

7.6 Experimental conclusions

  1. (1)

    The motion law of the floating connection mechanism obtained in this paper is correct.

  2. (2)

    The fluctuation of coal seam floor has influence on the straightness of scraper conveyor. It can be seen from Figs. 22a and 23a, when the coal seam floor fluctuates in the advancing direction of a fully mechanized coal mining face, the scraper conveyor straightness error increases after straightening. This conclusion verifies conclusion 2 in Sect. 6.3.

  3. (3)

    When the coal seam floor in the fully mechanized coal face has undulations, the straightness of scraper conveyor is more affected by the subsidence terrain during straightening than by the bulge terrain, which can be seen from the comparison between Figs. 22b and 23b. This conclusion verifies conclusion 3 in Sect. 6.3.

Therefore, the conclusions of the influence of coal seam floor fluctuation on the straightness of scraper conveyor are correct, and they can indirectly show that the straightening method proposed in this paper is feasible.

8 Comparative analysis and simulation test

To verify the advantages of the straightening method described in this paper, the principle of LASC is used to straighten the floor of a complex cutting coal seam, and the straightening results are compared to the default straightening method in the established simulation system.

8.1 Comparison of straightening methods

LASC technology is a set of automatic mining technology, developed by the Commonwealth Scientific and Industrial Research Organization (CSIRO) (Ralston et al. 2015; Jonathon et al. 2017), adopts a strapdown inertial navigation system that can determine the coordinate position of a shearer in the three-dimensional space of a coal mine very accurately, monitor the three-dimensional attitude of a shearer in real time, and describe the walking track curve of a shearer through integrated navigation combined with the shearer’s odometer data (Ralston et al. 2015; Holm et al. 2013). In addition, the projection of the curve in the horizontal direction can be used in the process of automatic straightening of the working face (Li 2019).

The LASC straightening technology is based on the LASC technology, the hydraulic support is advancing according to the difference between the predicted trajectory of the scraper conveyor and the current trajectory, and then the hydraulic support pushes the scraper conveyor at full stroke, so that the scraper conveyor can meet the requirements of straightness.

The differences between the LASC straightening principle and the proposed straightening method are shown in Table 8.

Table 8 Comparison of straightening methods

8.2 Comparison of simulation results

A simulation using LASC straightening was performed in order to compare LASC results to the results obtained by the proposed method.

The straightening principle of the “Coal Seam + Equipment” Joint Virtual Straightening System is changed to the principle of LASC straightening. When the coal seam floor has no fluctuations in the running direction of a fully mechanized coal mining face, the scraper conveyor's straightening state and the fluctuation of the coal seam floor are consistent with the conditions described in Sect. 6 The straightening process is shown in Fig. 24. Figure 24a shows the initial state of the scraper conveyor, Fig. 24b shows the process of hydraulic support pushing the scraper conveyor, Fig. 24c shows the process of hydraulic support moving according to the straightening correction, and Fig. 24d shows the process of hydraulic support full stroke pushing scraper conveyor straightening.

Fig. 24
figure 24

Virtual straightening with LASC Technology

The final position curve of each process of the horizontal projection of the scraper conveyor track is obtained, as shown in Fig. 25a, and, as can be seen, the straightening effect is better. It can be seen from Fig. 25b that, after straightening, the error between the actual track curve and the ideal track curve of the scraper conveyor is within − 0.056–0.078 dm, and the straightening accuracy is relatively high.

Fig. 25
figure 25

Location of scraper conveyor and straightening error

As shown in Table 9, when the coal floor is no longer the ideal horizontal floor, after applying the principle of LASC, the average straightening error of the system is larger than that of the default straightening method in the virtual environment.

Table 9 Comparison of average straightening error

The average straightening errors of the two straightening methods are compared in Fig. 26. In Fig. 26a, b, c, the difference between the average straightening error curve of LASC straightening technology and the proposed straightening method and the difference between them can be seen. The area above the abscissa is larger than the area below, which shows that overall the straightening error difference of the former is larger than that of the latter, and the difference is within 10 mm. In summary, the proposed straightening method has higher straightening accuracy than that using LASC straightening technology.

Fig. 26
figure 26

Error comparison

Due to the limitation of experimental conditions, it is impossible to verify the results of the comparative analysis simulation experiment. However, through the experimental results in Chapter 7, the comparative simulation test results in this chapter are also correct.

9 Conclusions and prospect

In this paper, the influence of the fluctuation of the coal seam floor on the straightness of a scraper conveyor has been investigated. First, the motion law of the floating connecting mechanism is obtained based on the pose solution of the industrial robot model, and a joint virtual straightening system of “Coal Seam + Equipment” is established. Through relevant simulation tests and comparative analysis, the following conclusions are obtained.

  1. (1)

    The precise push–pull movement of hydraulic support in a virtual environment is realized. In this paper, the motion law of the floating connecting mechanism is obtained based on the pose solution of the industrial robot model, which can be transformed into a form that can be used by the electro-hydraulic control system, which lays a foundation for the accurate movement in the physical environment.

  2. (2)

    The fluctuation of coal seam floor has a significant influence on the straightening accuracy of a scraper conveyor. The larger the fluctuation of the coal seam floor along the advancing direction of a fully mechanized coal mining face, the greater the straightness error. And the subsidence of coal seam floor has a great influence on the straightening accuracy of scraper conveyor.

  3. (3)

    The straightening method based on the motion law of the floating connection mechanism has high straightening accuracy. The straightening method proposed in this paper has high straightening accuracy when there is a complex cutting floor in the coal mine. Compared with the same conditions when the scraper conveyor is straightened using the principle of LASC technology, the proposed straightening method has high accuracy.

In this study, because the fluctuation of the coal seam floor is not the only change along the coal seam trend, i.e., the entire floor is uneven, it is necessary to construct a coal seam floor model in the virtual environment that is based on data information obtained from the real detection. In addition, this paper only considers the undulation of the coal seam floor in the advancing direction of the fully mechanized coal face and the existence of the coal seam dip angle. Faults, folds, and other complex geological structures complicate the advancing and straightening process of the fully mechanized coal face.

In future research, the above conclusions should be verified in combination with the actual coal mining process, and the influence of the complex coal seam floor on the straightening of the fully mechanized mining face should be further studied. According to geological structure models, such as faults and folds, the virtual floor model is established to explore the cooperation between hydraulic support and scraper conveyor under the complex geological structure in order to lay the foundation for the establishment of a fully mechanized mining face production system based on digital twin and to promote the construction of an “Intelligent Mine”.