Train moving position display tracking method, device, equipment and storage medium
By acquiring the train's current running data, combining it with the previous running data and the virtual track attribute parameters corresponding to the real track markers, the position where the train icon should be displayed is determined. This achieves high-precision tracking of the train's movement position, solves the problem of the jumpy effect in the display of the train's movement position, and provides a technical effect of smooth movement on the virtual track.
Patent Information
- Application Number
- CN202310757890.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2043-06-26
AI Technical Summary
In existing technologies, the tracking accuracy of train movement is insufficient, resulting in a jumping effect in the display of train movement, and high-precision tracking cannot be achieved.
By acquiring the current round's operation data of the target train, combining it with the previous round's operation data and the virtual track attribute parameters corresponding to the real track markers, the position where the train's icon should be displayed is determined. The animation runtime is then used to smoothly move the icon, avoiding jumpy movements.
It achieves high-precision tracking of train movement position, displays smooth movement effect, solves the display problem of train movement in the prior art, provides a smooth movement effect displayed on the virtual track, avoids the display problem of train movement position in the prior art, solves the technical problem of displaying on the virtual track, provides the technical effect of displaying on the virtual track, and solves the technical application of train movement position in the prior art.
Smart Images

Figure CN116788319B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of rail transit, in particular to a train moving position display tracking method and device, equipment and a storage medium. BACKGROUND
[0002] In urban rail transit, users usually monitor the running process of a train on a track section by using a station yard diagram on an ATS (Automatic Train Supervision) interface.
[0003] Currently, according to the mapping relationship between the section information occupied by a current train and the train window pre-set on the station yard diagram, the position of the train window to be displayed is determined, and the train window at the position is then assigned relevant information of the current train, so that the moving position of the current train can be tracked according to the displayed position of the train window.
[0004] However, since there is a certain distance between the train windows pre-set on the station yard diagram, the tracking of the moving position of the train by using the prior art will produce a jumping moving effect, resulting in a decrease in the accuracy of tracking the moving position of the train. SUMMARY
[0005] The present application aims at the deficiencies in the prior art, and provides a train moving position display tracking method, device, equipment and storage medium, which can track the moving position of a train with high accuracy.
[0006] To achieve the above-mentioned purpose, the technical solutions adopted by the embodiments of the present application are as follows:
[0007] In a first aspect, the embodiments of the present application provide a train moving position display tracking method, which comprises:
[0008] obtaining the current round running data of the target train according to the train identification of the target train, wherein the current round running data comprises the current round real track identification and the current round real track position ratio at which the target train runs;
[0009] determining the icon display position of the target train according to the current round running data and the previous round running data of the target train, the attribute parameters of the virtual track corresponding to the real track identification, and the preset animation running time, wherein the real track identification comprises the current round real track identification and / or the previous round real track identification, and the attribute parameters of the virtual track at least comprise the track length;
[0010] displaying the train running diagram of the target train according to the icon display position of the target train, so as to track the moving position of the target train.
[0011] Optionally, the determining the icon display position of the target train according to the current round running data and the previous round running data of the target train, attribute parameters of a virtual track corresponding to a real track identity, and a preset animation running time comprises:
[0012] determining whether the current round real track identity included in the current round running data is consistent with the previous round real track identity included in the previous round running data;
[0013] if the current round real track identity is consistent with the previous round real track identity, determining a current round to-be-moved position according to a current round real track position ratio included in the current round running data and a track length of the virtual track corresponding to the current round real track identity;
[0014] determining the icon display position of the target train according to the current round to-be-moved position, a previous round to-be-moved position corresponding to the previous round running data, and the preset animation running time.
[0015] Optionally, the method further comprises:
[0016] if the current round real track identity is not consistent with the previous round real track identity, determining whether the previous round real track position ratio included in the previous round running data is greater than or equal to a preset threshold value;
[0017] if the previous round real track position ratio is not greater than or equal to the preset threshold value, subtracting the preset threshold value from the previous round real track position ratio to obtain a real track supplementary position ratio corresponding to the previous round real track identity;
[0018] determining the icon display position of the target train according to the real track supplementary position ratio corresponding to the previous round real track identity, the previous round to-be-moved position corresponding to the previous round real track position ratio, the current round real track position ratio, the current round real track identity, and the track lengths of the virtual tracks corresponding to the current round real track identity and the previous round real track identity respectively, and the preset animation running time.
[0019] Optionally, the determining the icon display position of the target train according to the real track supplementary position ratio corresponding to the previous round real track identity, the previous round to-be-moved position corresponding to the previous round real track position ratio, the current round real track position ratio, the current round real track identity, and the track lengths of the virtual tracks corresponding to the current round real track identity and the previous round real track identity respectively, and the preset animation running time comprises:
[0020] determining a current round first to-be-moved position corresponding to the previous round real track identity according to the real track supplementary position ratio corresponding to the previous round real track identity and the track length of the virtual track corresponding to the previous round real track identity;
[0021] determining a second to-be-moved position of the target train in the current round according to the current round real track position ratio and a track length of a virtual track corresponding to the current round real track identifier;
[0022] determining an icon to-be-displayed position of the target train according to the first to-be-moved position of the target train in the current round, the second to-be-moved position of the target train in the current round, a previous round moved position corresponding to the previous round real track position ratio, and a preset animation running time.
[0023] Optionally, the determining of the icon to-be-displayed position of the target train according to the first to-be-moved position of the target train in the current round, the second to-be-moved position of the target train in the current round, the previous round moved position corresponding to the previous round real track position ratio, and the preset animation running time comprises:
[0024] subtracting the first to-be-moved position of the target train in the current round from a previous round moved position corresponding to the previous round real track position ratio to obtain a to-be-moved distance of the target train;
[0025] determining an icon to-be-displayed position of the target train on a virtual track corresponding to the previous round real track identifier according to the to-be-moved distance and the animation running time;
[0026] determining an icon to-be-displayed position of the target train on a virtual track corresponding to the current round real track identifier according to the second to-be-moved position of the target train in the current round and the animation running time.
[0027] Optionally, before the determining of the icon to-be-displayed position of the target train according to the current round running data and the previous round running data of the target train, attribute parameters of a virtual track corresponding to the real track identifier, and the preset animation running time, the method further comprises:
[0028] detecting a drawing direction of the virtual track based on a reference drawing direction to determine a virtual track not belonging to the reference drawing direction;
[0029] converting the drawing direction of the virtual track not belonging to the reference drawing direction, and obtaining the attribute parameters of the virtual track according to initial parameters of the virtual track.
[0030] Optionally, the displaying of the train running diagram of the target train according to the icon to-be-displayed position of the target train comprises:
[0031] subtracting the icon to-be-displayed position of the target train from a length of the train running diagram of the target train to obtain a to-be-displayed target position of the target train;
[0032] display a train running picture of the target train on the target position of the target train to be displayed according to a track angle corresponding to the target position of the target train to be displayed.
[0033] In a second aspect, the embodiments of the present application further provide a display and tracking device for a moving position of a train, and the device comprises:
[0034] The acquisition module is configured to acquire the current round running data of the target train according to a train ID of the target train, and the current round running data comprises a current round real track ID and a current round real track position ratio.
[0035] The determination module is configured to determine an icon to-be-displayed position of the target train according to the current round running data and the previous round running data of the target train, attribute parameters of a virtual track corresponding to a real track ID, and a preset animation running time, wherein the real track ID comprises the current round real track ID and / or the previous round real track ID, and the attribute parameters of the virtual track at least comprise a track length.
[0036] The display module is configured to display a train running picture of the target train according to the icon to-be-displayed position of the target train, so as to track the moving position of the target train.
[0037] Optionally, the determination module is specifically configured to determine whether the current round real track ID included in the current round running data is consistent with the previous round real track ID included in the previous round running data, and if yes, determine a current round to-be-moved position according to the current round real track position ratio included in the current round running data and the track length of the virtual track corresponding to the current round real track ID, and determine the icon to-be-displayed position of the target train according to the current round to-be-moved position, a previous round to-be-moved position corresponding to the previous round running data, and the preset animation running time.
[0038] Optionally, the determination module is further configured to determine whether the previous round real track position ratio included in the previous round running data is greater than or equal to a preset threshold value if the current round real track ID is not consistent with the previous round real track ID, and if no, obtain a real track supplementary position ratio corresponding to the previous round real track ID by subtracting the previous round real track position ratio from the preset threshold value, and determine the icon to-be-displayed position of the target train according to the real track supplementary position ratio corresponding to the previous round real track ID, the previous round to-be-moved position corresponding to the previous round real track position ratio, the current round real track position ratio, the track lengths of the virtual tracks corresponding to the current round real track ID and the previous round real track ID, and the preset animation running time.
[0039] Optionally, the determining module is further configured to determine a first to-be-moved position corresponding to the previous round of real track identification according to the real track position proportion of the previous round of real track identification and the track length of the virtual track corresponding to the previous round of real track identification; determine a second to-be-moved position corresponding to the current round of real track identification according to the real track position proportion of the current round of real track identification and the track length of the virtual track corresponding to the current round of real track identification; and determine the icon to-be-displayed position of the target train according to the first to-be-moved position, the second to-be-moved position, the previous round of moving position corresponding to the real track position proportion of the previous round of real track identification, and the preset animation running time.
[0040] Optionally, the determining module is further configured to subtract the first to-be-moved position from the previous round of moving position corresponding to the real track position proportion of the previous round of real track identification to obtain a to-be-moved distance of the target train; determine the icon to-be-displayed position of the target train on the virtual track corresponding to the previous round of real track identification according to the to-be-moved distance and the animation running time; and determine the icon to-be-displayed position of the target train on the virtual track corresponding to the current round of real track identification according to the second to-be-moved position and the animation running time.
[0041] Optionally, the device further includes a detecting module.
[0042] The detecting module is configured to detect the drawing direction of the virtual track based on a reference drawing direction, determine a virtual track that does not belong to the reference drawing direction, convert the drawing direction of the virtual track that does not belong to the reference drawing direction, and obtain attribute parameters of the virtual track according to initial parameters of the virtual track.
[0043] Optionally, the display module is configured to subtract the icon to-be-displayed position of the target train from the length of the train diagram of the target train to obtain a to-be-displayed target position of the target train; and display the train diagram of the target train at the to-be-displayed target position of the target train based on the track angle corresponding to the to-be-displayed target position of the target train.
[0044] In a third aspect, an electronic device is provided, including a processor, a storage medium, and a bus. The storage medium stores machine readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium through the bus. The processor executes the machine readable instructions to perform the steps of the train moving position display and tracking method of the first aspect.
[0045] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program. When the computer program is run by a processor, the steps of the train moving position display tracking method in the first aspect are executed.
[0046] The present application has the following beneficial effects:
[0047] The embodiments of the present application provide a train moving position display tracking method, device, equipment and storage medium. After the current round of operation data of a target train is acquired, the current round of operation data of the target train is combined with previous round of operation data, and the moving information of the target train in the corresponding virtual track relative to the previous round is determined according to the track length included in the attribute parameters of the virtual track corresponding to the real track identification. Then, according to the moving information of the target train in the corresponding virtual track relative to the previous round, the moving time corresponding to the moving information and the preset animation running time, the position points passed by the target train from the corresponding position of the previous round to the current round are determined, and these position points passed are taken as icon display positions. Since the determined icon display positions are calculated according to the real-time moving data of the target train on the real track, the train diagram can appear at any position of the virtual track. When the train diagram of the target train is displayed at each icon display position, the smooth moving effect can be displayed on the virtual track in the process of moving of the target train, that is, the accurate position of the target train can be displayed on the interface of the display end in real time, that is, the moving position of the train can be tracked with high accuracy. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as a limitation to the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[0049] Figure 1 A scene schematic diagram of an ATS system provided by the embodiments of the present application;
[0050] Figure 2 A flowchart of a train moving position display tracking method provided by the embodiments of the present application;
[0051] Figure 3 A flowchart of another train moving position display tracking method provided by the embodiments of the present application;
[0052] Figure 4A flowchart of another display and tracking method of a moving position of a train provided by an embodiment of the present application is shown in FIG. 6.
[0053] Figure 5 A flowchart of another display and tracking method of a moving position of a train provided by an embodiment of the present application is shown in FIG. 6.
[0054] Figure 6 A structure diagram of a display and tracking device of a moving position of a train provided by an embodiment of the present application is shown in FIG. 7.
[0055] Figure 7 A structure diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 8. DETAILED DESCRIPTION
[0056] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations.
[0057] Therefore, the detailed description of the embodiments of the present application provided in the drawings below is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative labor are within the scope of protection of the present application.
[0058] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0059] Before the embodiments of the present application are explained in detail, the application scenario of the present application is first introduced. The application scenario can be specifically a scenario of display of a train state based on an ATS system, wherein the train state can include information such as a moving position and attribute parameters, and a worker can track a moving track of a train in a real environment in real time according to the moving position of the train displayed on an interface, and can understand information of the train according to parameters such as a train set number, a service number and a destination number included in the attribute parameters displayed on the interface. Figure 1 A scenario diagram of an ATS system provided by an embodiment of the present application is shown in FIG. 1. Figure 1As shown, the ATS system includes a display end 101, a service end 102, and a train end 103. The service end 102 is in communication connection with the display end 101 and the train end 103. It can be understood that the city rail transit monitoring interface displayed on the display end 101 displays state information of tracks, axles, signal machines, etc. The tracks are displayed in the form of sections on the city rail transit monitoring interface. The track section displayed on the city rail transit monitoring interface is referred to as a virtual track, and the track section in reality is referred to as a real track. The real track and the virtual track of the same track have a corresponding relationship.
[0060] The train data sensor related to the train end 103 is in communication connection with the service end 102. Therefore, when the train corresponding to the train end 103 sends movement on the real track, the train data sensor can send the related data of the train to the service end 102 in real time. The service end 102 can determine the real track identifier where the train is currently located and the position proportion on the real track according to the received related data of the train, and store the train identifier, the real track identifier where the train is currently located, and the position proportion on the real track in the database in association. The train identifier can be composed of information such as a train set number. The real track identifier and the position proportion on the real track corresponding to the train identifier in the database can be updated in real time according to the related data of the train received by the service end.
[0061] The service end 102 can subscribe to data in real time. The service end 102 updates the data in two forms. When the data subscribed by the service end in the database changes, the database pushes the changed data to the service end. Alternatively, every ten minutes, the database pushes all the subscribed data to the service end. The service end receives the data and stores the data in the buffer according to the train identifier.
[0062] In this way, the service end 102 can send the running data of the corresponding train to the display end 101 based on the train identifier carried in the request information sent by the display end 101. Therefore, the display end 101 can be explained according to the display tracking method of the train moving position mentioned in the following examples.
[0063] Figure 2 A flowchart of a train moving position display tracking method provided by the embodiment of the application is shown in FIG. 1. Figure 2 As shown, the method can include the following steps.
[0064] S201, obtaining the current round running data of a target train according to a train identifier of the target train.
[0065] The current round running data includes a current round real track identifier where the target train runs and a current round real track position proportion.
[0066] Exemplarily, the display end can determine the target train in response to the preset train timetable or in response to the train adding operation of the staff, and then can generate the current round request information according to the train identification of the target train, and send the current round request information to the service end. If the target train has been displaced relative to the previous round, the service end can read the current round running data of the target train from the cache based on the train identification of the target train carried in the current round request information.
[0067] According to the above description, the train data sensor related to the target train is in communication connection with the service end, and the related data of the target train such as the speed and the real track currently running on can be obtained in real time. The service end can further determine the real track identification and the position information on the real track of the target train currently located according to the related data of the target train obtained, and determine the real track position ratio according to the position information on the real track and the length of the real track. Based on this, if the target train has been displaced relative to the previous round on the real track, the service end can send the current real track identification and the current real track position ratio of the target train running to the display end.
[0068] S202, determining the icon display position of the target train according to the current round running data and the previous round running data of the target train, the attribute parameter of the virtual track corresponding to the real track identification, and the preset animation running time.
[0069] The real track identification includes the current real track identification and / or the previous real track identification, and the attribute parameter of the virtual track at least includes the track length.
[0070] Exemplarily, the display end can store the running data of the target train obtained from the service end in the local in the form of key-value pairs. Then, the current real track identification in the current round running data and the previous real track identification in the previous round running data can be compared. If they are consistent, the current real track position ratio in the current round running data and the previous real track position ratio are compared. If they are consistent, it proves that the target train has not moved on the current track, and no subsequent processing is performed. If the current real track identification in the current round running data is consistent with the previous real track identification in the previous round running data, but the current real track position ratio in the current round running data is inconsistent with the previous real track position ratio, or the current real track identification in the current round running data is inconsistent with the previous real track identification in the previous round running data, it proves that the target train has moved on the track.
[0071] The present application mainly describes the phenomenon that the target train moves on the track. The movement information of the target train in the real track relative to the previous round can be determined according to the real track identifier and the real track position ratio in the current round of operation data of the target train, the real track identifier and the real track position ratio in the previous round of operation data. The movement information of the target train in the corresponding virtual track relative to the previous round is determined by combining the movement information of the target train in the real track relative to the previous round with the track length in the attribute parameter of the corresponding virtual track. Further, according to the movement information of the target train in the corresponding virtual track relative to the previous round, the movement time corresponding to the movement information, and the preset animation running time, the position points passed by the target train from the corresponding position of the previous round to the corresponding position of the current round on the corresponding virtual track can be determined. These position points passed are taken as the icon display positions. The preset animation running time can be set according to actual needs, which is not limited in the present application.
[0072] S203, display the train driving diagram of the target train according to the icon display position of the target train.
[0073] For example, after the icon display position of the target train is determined, the train driving diagram of the target vehicle can be obtained according to the vehicle identifier of the target vehicle, and the train driving diagram of the target vehicle is displayed on each icon display position. In this way, the moving position of the target train can be displayed and tracked on the urban rail transit monitoring interface.
[0074] In summary, in the display and tracking method of the train moving position provided by the present application, after the current round of operation data of the target train is obtained, the current round of operation data of the target train is combined with the previous round of operation data, and the movement information of the target train in the corresponding virtual track relative to the previous round is determined according to the track length included in the attribute parameter of the corresponding virtual track corresponding to the real track identifier. Further, according to the movement information of the target train in the corresponding virtual track relative to the previous round, the movement time corresponding to the movement information, and the preset animation running time, the position points passed by the target train from the corresponding position of the previous round to the corresponding position of the current round can be determined. These position points passed are taken as the icon display positions. Since the determined icon display positions are calculated according to the real-time movement data of the target train on the real track, the train driving diagram can appear on any position of the virtual track. When the train driving diagram of the target train is displayed on each icon display position, the smooth moving effect can be displayed on the virtual track during the movement of the target train, that is, the accurate position of the target train can be displayed in real time on the interface of the display end, that is, the moving position of the train can be tracked with high accuracy.
[0075] Meanwhile, the phenomenon of overlapping of train number windows of two trains is avoided in the case of shortening the interval time between the two trains.
[0076] Figure 3 Another flowchart of a display and tracking method of a train moving position is provided for the embodiments of the present application. Optionally, as shown in Figure 3 determining a to-be-displayed position of an icon of the target train according to the current round running data and the previous round running data of the target train, attribute parameters of a virtual track corresponding to a real track identity, and a preset animation running time, includes:
[0077] S301, determining whether a current round real track identity included in the current round running data is consistent with a previous round real track identity included in the previous round running data.
[0078] S302, if the current round real track identity is consistent with the previous round real track identity, determining a current round to-be-moved position according to a current round real track position ratio included in the current round running data and a track length of a virtual track corresponding to the current round real track identity.
[0079] It can be understood that the running data of the target train obtained by the display end includes a real track identity, and then the current round real track identity included in the obtained current round running data can be compared with the previous round real track identity included in the locally stored previous round running data to determine whether the current round real track identity is consistent with the previous round real track identity.
[0080] If the current round real track identity is consistent with the previous round real track identity, it proves that the target train runs on the same track in the current round and the previous round, and then the track length of the virtual track corresponding to the current round real track identity can be determined according to the correspondence between the real track and the virtual track, and the current round to-be-moved position is obtained by multiplying the track length of the virtual track corresponding to the current round real track identity and the current round real track position ratio, the current round to-be-moved position is used to indicate a position coordinate to which the target train will move on the virtual track.
[0081] S303, determining a to-be-displayed position of an icon of the target train according to the current round to-be-moved position, a previous round to-be-moved position corresponding to the previous round to-be-moved position, and a preset animation running time.
[0082] It can be understood that the determination process of the previous round to-be-moved position corresponding to the previous round to-be-moved position is similar to the determination process of the current round to-be-moved position, which will not be described here.
[0083] For example, after the current round to-be-moved position and the previous round to-be-moved position are determined, a moving distance of the target train in the current round relative to the previous round can be obtained, and the moving distance is divided based on a moving time corresponding to the moving distance and the preset animation running time to obtain a plurality of position points, and each position point is taken as a to-be-displayed position of an icon of the target train.
[0084] Figure 4 A flowchart of another method for displaying and tracking the moving position of a train is provided in the embodiments of the present application. Optionally, as shown in Figure 4 The method can further include:
[0085] S401, if the current real track identification is inconsistent with the previous real track identification, determining whether the proportion of the previous real track position included in the previous round of operation data is greater than or equal to a preset threshold value.
[0086] S402, if not, subtracting the preset threshold value from the proportion of the previous real track position to obtain a real track supplementary position proportion corresponding to the previous real track identification.
[0087] It can be understood that if the current real track identification is inconsistent with the previous real track identification, it proves that the target train is not running on the same track in the current round and the previous round, and then it is determined whether the proportion of the previous real track position is equal to the preset threshold value. If the preset threshold value is 100%, it is determined whether the target train moves to the end of the real track corresponding to the previous real track identification in the previous round. It should be noted that the preset threshold value can be set according to actual needs, and the present application does not limit it.
[0088] If the target train does not run to the position corresponding to the preset threshold value of the real track corresponding to the previous real track identification in the previous round, the preset threshold value can be subtracted from the proportion of the previous real track position, and the subtraction result is used as the real track supplementary position proportion corresponding to the previous real track identification.
[0089] S403, determining the icon display position of the target train according to the real track supplementary position proportion corresponding to the previous real track identification, the previous moving position corresponding to the proportion of the previous real track position, the current real track position, the current real track identification and the track length of the virtual track corresponding to the previous real track identification and the previous real track identification, and the preset animation running time.
[0090] For example, after the real track supplementary position proportion corresponding to the previous real track identification is determined, the moving distance of the target train on the virtual track corresponding to the previous real track identification can be determined according to the real track supplementary position proportion corresponding to the previous real track identification, the track length of the corresponding virtual track and the previous moving position corresponding to the proportion of the previous real track position. The moving distance of the target train on the virtual track corresponding to the current real track identification is determined according to the current real track position and the track length of the virtual track corresponding to the current real track identification.
[0091] According to the moving distance of the target train on the virtual track corresponding to the real track identification in the previous round, the moving distance of the target train on the virtual track corresponding to the real track identification in the current round, the moving time corresponding to the moving distance, and the preset animation running time, the icon display position of the target train on the virtual track corresponding to the real track identification in the previous round and the icon display position of the target train on the virtual track corresponding to the real track identification in the current round are determined.
[0092] Figure 5 Another flowchart of a display and tracking method of a train moving position provided by an embodiment of the present application is provided. Alternatively, the icon display position of the target train is determined according to the real track supplement position ratio corresponding to the real track identification in the previous round, the moving position in the previous round corresponding to the real track position ratio in the previous round, the real track position ratio in the current round, the real track identification in the current round, the track length of the virtual track corresponding to the real track identification in the previous round and the real track identification in the previous round, and the preset animation running time, and includes the following steps.
[0093] S501, determining the first moving position in the current round corresponding to the real track identification in the previous round according to the real track supplement position ratio corresponding to the real track identification in the previous round and the track length of the virtual track.
[0094] S502, determining the second moving position in the current round corresponding to the real track identification in the current round according to the real track position ratio in the current round and the track length of the virtual track corresponding to the real track identification in the current round.
[0095] For example, the real track supplement position ratio corresponding to the real track identification in the previous round is multiplied by the track length of the virtual track, and the multiplication result is taken as the first moving position in the current round corresponding to the real track identification in the previous round. The real track position ratio in the current round is multiplied by the track length of the virtual track corresponding to the real track identification in the current round, and the multiplication result is taken as the second moving position in the current round corresponding to the real track identification in the current round.
[0096] S503, determining the icon display position of the target train according to the first moving position in the current round, the second moving position in the current round, the moving position in the previous round corresponding to the real track position ratio in the previous round, and the preset animation running time.
[0097] Optionally, the first to-be-moved position in the current round is subtracted from the previous round moving position corresponding to the real track position proportion in the previous round, to obtain a to-be-moved distance of the target train; an icon to-be-displayed position of the target train on the virtual track corresponding to the real track identifier in the previous round is determined according to the to-be-moved distance, a moving time corresponding to the to-be-moved distance, and an animation running time; and an icon to-be-displayed position of the target train on the virtual track corresponding to the real track identifier in the current round is determined according to the second to-be-moved position in the current round, a moving distance corresponding to the second to-be-moved position, and the animation running time.
[0098] According to the subtraction result of the first to-be-moved position in the current round and the previous round moving position corresponding to the real track position proportion in the previous round, and the animation running time, the icon to-be-displayed position of the target train on the virtual track corresponding to the real track identifier in the previous round is determined, so that the moving animation of the target train on the virtual track corresponding to the real track identifier in the previous round is enriched to reach a preset threshold (such as 100%) of the animation amount.
[0099] It can be understood that the second to-be-moved position in the current round can represent a moving distance from the starting end of the virtual track corresponding to the real track identifier in the current round to the second to-be-moved position, and then according to the second to-be-moved position and the animation running time, the icon to-be-displayed position of the target train on the virtual track corresponding to the real track identifier in the current round is determined, so that the moving animation of the target train on the virtual track corresponding to the real track identifier in the current round starts from the starting end thereof.
[0100] Although the running data of the target train represents that the target train directly jumps from the previous real track to the next real track in the current round, the moving position of the target train can be displayed more finely by the above-mentioned manner, so that the train diagram of the target train displayed on the interface in the later period can smoothly slide from the virtual track corresponding to the previous real track to the virtual track corresponding to the next real track, and the moving position of the target train is tracked in real time.
[0101] Optionally, before determining the icon to-be-displayed position of the target train according to the current round running data and the previous round running data of the target train, the attribute parameters of the virtual track corresponding to the real track identifier, and the preset animation running time, the method can further include: detecting a drawing direction of the virtual track based on a reference drawing direction, to determine a virtual track not belonging to the reference drawing direction; converting the drawing direction of the virtual track not belonging to the reference drawing direction, and obtaining the attribute parameters of the virtual track according to initial parameters of the virtual track.
[0102] It can be understood that the virtual track drawn on the urban rail monitoring interface should have a unified reference drawing direction, but there can be a phenomenon of reverse running. Based on this, before determining the icon display position of the target train, the following processing needs to be performed first, which can improve the accuracy of the determined icon display position of the target train.
[0103] For example, each virtual track displayed on the interface has corresponding initial parameters, which include drawing direction, track angle and other information. Then, it can be detected whether the drawing direction of the virtual track is the reference drawing direction. If not, the initial parameters of the virtual track can be converted into attribute parameters of the virtual track based on the corresponding relationship between the drawing direction of the virtual track and the reference drawing direction.
[0104] Optionally, the above displaying the train running graph of the target train according to the icon display position of the target train includes: subtracting the icon display position of the target train from the length of the train running graph of the target train to obtain a target display target position of the target train; and displaying the train running graph of the target train at the target display target position of the target train based on the track angle corresponding to the target display target position of the target train.
[0105] It can be understood that the train running graph of the target train has a certain length. Then, the coordinates of the icon display position of the target train can be revised based on the length of the train running graph of the target train, and the train running graph of the target train is displayed at the target display target position of the target train obtained after the revision. In this way, the situation that the train running graph of the target train exceeds the virtual track when the target train runs on the virtual track can be avoided.
[0106] Further, each position point on the virtual track has a corresponding track angle. The track angle of the position point corresponding to the starting end and the track angle of the position point corresponding to the ending end on the virtual track can also be revised according to the track angles of the position points on the virtual track. Then, after the target display target position of the target train is determined, the track angles corresponding to each target display target position can be obtained, and the train running graph of the target train is displayed at each target display target position based on the track angles corresponding to each target display target position. In this way, the train running graph of the target train can be moved along the corresponding virtual track.
[0107] Optionally, the train running graph can include a plurality of graph elements. If the position coordinates of each graph element are absolute coordinates relative to the display interface, the position coordinates of each graph element can be first converted into relative coordinates relative to the train running graph. In this way, when the train running graph moves, each graph element on the train running graph also moves relatively.
[0108] Figure 6 A structure schematic diagram of a train moving position display tracking device provided by an embodiment of the present application is shown in FIG. 1. Figure 6 As shown in the figure, the device includes:
[0109] The acquisition module 601 is configured to acquire the current round running data of the target train according to a train identification of the target train, and the current round running data comprises a current round real track identification and a current round real track position ratio in which the target train runs.
[0110] The determination module 602 is configured to determine an icon display position of the target train according to the current round running data and the previous round running data of the target train, attribute parameters of a virtual track corresponding to a real track identification, and a preset animation running time, and the real track identification comprises the current round real track identification and / or the previous round real track identification, and the attribute parameters of the virtual track at least comprise a track length.
[0111] The display module 603 is configured to display a train running diagram of the target train according to the icon display position of the target train, so as to track a moving position of the target train.
[0112] Optionally, the determination module 602 is specifically configured to determine whether the current round real track identification included in the current round running data is consistent with the previous round real track identification included in the previous round running data, and if yes, determine a current round to-be-moved position according to the current round real track position ratio included in the current round running data and the track length of the virtual track corresponding to the current round real track identification, and determine the icon display position of the target train according to the current round to-be-moved position, a previous round to-be-moved position corresponding to the previous round running data, and the preset animation running time.
[0113] Optionally, the determination module 602 is further configured to determine whether the previous round real track position ratio included in the previous round running data is greater than or equal to a preset threshold if the current round real track identification is not consistent with the previous round real track identification, and if not, obtain a real track supplementary position ratio corresponding to the previous round real track identification by subtracting the preset threshold from the previous round real track position ratio, and determine the icon display position of the target train according to the real track supplementary position ratio corresponding to the previous round real track identification, the previous round to-be-moved position corresponding to the previous round real track position ratio, the current round real track position ratio, the track lengths of the virtual tracks corresponding to the current round real track identification and the previous round real track identification, and the preset animation running time.
[0114] Optionally, the determination module 602 is further specifically configured to determine a current round first to-be-moved position corresponding to the previous round real track identification according to the real track supplementary position ratio corresponding to the previous round real track identification and the track length of the virtual track, determine a current round second to-be-moved position corresponding to the current round real track identification according to the current round real track position ratio and the track length of the virtual track corresponding to the current round real track identification, and determine the icon display position of the target train according to the current round first to-be-moved position, the current round second to-be-moved position, the previous round to-be-moved position corresponding to the previous round real track position ratio, and the preset animation running time.
[0115] Optionally, the determining module 602 is also specifically configured to subtract the first to-be-moved position in the current round from a previous round moving position corresponding to the proportion of the real track position in the previous round, to obtain a to-be-moved distance of the target train; determine an icon to-be-displayed position of the target train on a virtual track corresponding to the real track identification in the previous round according to the to-be-moved distance and the animation running time; and determine an icon to-be-displayed position of the target train on a virtual track corresponding to the real track identification in the current round according to the second to-be-moved position in the current round and the animation running time.
[0116] Optionally, the apparatus further includes a detecting module.
[0117] The detecting module is configured to detect a drawing direction of the virtual track based on a reference drawing direction, determine a virtual track not belonging to the reference drawing direction, convert the drawing direction of the virtual track not belonging to the reference drawing direction, and obtain attribute parameters of the virtual track according to initial parameters of the virtual track.
[0118] Optionally, the display module 603 is specifically configured to subtract the icon to-be-displayed position of the target train from a length of the train diagram of the target train, to obtain a to-be-displayed target position of the target train; and display the train diagram of the target train at the to-be-displayed target position of the target train based on a track angle corresponding to the to-be-displayed target position of the target train.
[0119] The apparatus is used for executing the method provided by the foregoing embodiments, and has similar implementation principles and technical effects, which will not be described here in detail.
[0120] The above modules can be one or more integrated circuits configured to implement the above method, for example, one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when the above module is implemented in the form of a processing element scheduling code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can invoke program code. For another example, the modules can be integrated together in the form of a system on a chip (SOC).
[0121] Figure 7 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1. Figure 7As shown, the electronic device can include a processor 701, a storage medium 702, and a bus 703, the storage medium 702 stores machine readable instructions executable by the processor 701, when the electronic device is running, the processor 701 communicates with the storage medium 702 through the bus 703, the processor 701 executes the machine readable instructions to perform the steps of the above method embodiments. The specific implementation and technical effects are similar, and will not be repeated here.
[0122] Optionally, the present application also provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is run by a processor to perform the steps of the above method embodiments.
[0123] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0124] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0125] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
[0126] The integrated unit implemented in the form of software functional units can be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute part of the steps of the method described in various embodiments of the present application. And the foregoing storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, for short: ROM), random access memory (English: Random Access Memory, for short: RAM), magnetic disk or optical disk and various program code storage media.
[0127] It should be noted that, in this paper, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0128] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method of displaying and tracking the movement of a train's position, characterized by, The method comprises: acquiring the current round running data of the target train according to the train identification of the target train, the current round running data comprising: the current round real track identification and the current round real track position proportion on which the target train runs; determining the icon display position of the target train according to the current round running data and the previous round running data of the target train, the attribute parameters of the virtual track corresponding to the real track identification, and the preset animation running time, the real track identification comprising: the current round real track identification and / or the previous round real track identification, and the attribute parameters of the virtual track comprising at least: track length; displaying the train running graph of the target train according to the icon display position of the target train, so as to track the moving position of the target train; the method further comprises: determining whether the current round real track identification included in the current round running data is consistent with the previous round real track identification included in the previous round running data; if consistent, determining the current round to be moved position according to the current round real track position proportion included in the current round running data and the track length of the virtual track corresponding to the current round real track identification; determining the icon display position of the target train according to the current round to be moved position, the previous round to be moved position corresponding to the previous round running data, and the preset animation running time.
2. The method of claim 1, wherein, the method further comprises: if inconsistent, determining whether the previous round real track position proportion included in the previous round running data is greater than or equal to the preset threshold value; if not, subtracting the preset threshold value from the previous round real track position proportion to obtain the real track supplementary position proportion corresponding to the previous round real track identification; determining the icon display position of the target train according to the real track supplementary position proportion corresponding to the previous round real track identification, the previous round to be moved position corresponding to the previous round real track position proportion, the current round real track position proportion, the current round real track identification and the previous round real track identification respectively corresponding to the track length of the virtual track, and the preset animation running time.
3. The method of claim 2, wherein, the method further comprises: determining the current round first to be moved position corresponding to the previous round real track identification according to the real track supplementary position proportion corresponding to the previous round real track identification and the track length of the virtual track corresponding to the previous round real track identification; determining the current round second to be moved position corresponding to the current round real track identification according to the current round real track position proportion and the track length of the virtual track corresponding to the current round real track identification; Determine the icon display position of the target train according to the first position to be moved in the current round, the second position to be moved in the current round, the previous round moving position corresponding to the real track position ratio in the previous round, and the preset animation running time.
4. The method of claim 3, wherein, The method for determining the icon display position of the target train according to the first position to be moved in the current round, the second position to be moved in the current round, the previous round moving position corresponding to the real track position ratio in the previous round, and the preset animation running time comprises: Subtract the first position to be moved in the current round from the previous round moving position corresponding to the real track position ratio in the previous round to obtain the moving distance of the target train; Determine the icon display position of the target train on the virtual track corresponding to the real track identification in the previous round according to the moving distance and the animation running time; Determine the icon display position of the target train on the virtual track corresponding to the real track identification in the current round according to the second position to be moved in the current round and the animation running time.
5. The method according to any one of claims 1 to 4, characterized in that, Before determining the icon display position of the target train according to the running data in the current round and the running data in the previous round of the target train, the attribute parameters of the virtual track corresponding to the real track identification, and the preset animation running time, the method further comprises: Detect the drawing direction of the virtual track based on a reference drawing direction to determine the virtual track that does not belong to the reference drawing direction; Convert the drawing direction of the virtual track that does not belong to the reference drawing direction, and obtain the attribute parameters of the virtual track according to the initial parameters of the virtual track.
6. The method according to any one of claims 1 to 4, characterized in that, The method for displaying the train running graph of the target train according to the icon display position of the target train comprises: Subtract the icon display position of the target train from the length of the train running graph of the target train to obtain the target display position of the target train; Display the train running graph of the target train at the target display position of the target train based on the track angle corresponding to the target display position of the target train.
7. A display tracking device for moving locations of trains, characterized by The device comprises: An acquisition module is configured to acquire the running data in the current round of a target train according to the train identification of the target train, wherein the running data in the current round comprises the real track identification in the current round and the real track position ratio in the current round in which the target train runs. A determination module is configured to determine the icon display position of the target train according to the running data in the current round and the running data in the previous round of the target train, the attribute parameters of the virtual track corresponding to the real track identification, and the preset animation running time, wherein the real track identification comprises the real track identification in the current round and / or the real track identification in the previous round, and the attribute parameters of the virtual track at least comprise the track length. A display module is configured to display the train running graph of the target train according to the icon display position of the target train, so as to track the moving position of the target train. The determining module is specifically configured to determine whether the current round real track identifier included in the current round running data is consistent with the previous round real track identifier included in the previous round running data; if consistent, determine a current round to-be-moved position according to a current round real track position proportion included in the current round running data and a track length of a virtual track corresponding to the current round real track identifier; and determine an icon to-be-displayed position of the target train according to the current round to-be-moved position, a previous round moved position corresponding to the previous round running data, and a preset animation running time.
8. An electronic device, comprising: The processor, the storage medium, and the bus, the storage medium stores machine readable instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, the processor executes the machine readable instructions to execute the steps of the train moving position display tracking method in any one of claims 1-6. The computer readable storage medium stores a computer program, the computer program is run by the processor to execute the steps of the train moving position display tracking method in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Virtual block control system for railway vehicle
US5398894A