CN110457421A - Methods of exhibiting and device, the treadmill of shift position - Google Patents

Methods of exhibiting and device, the treadmill of shift position Download PDF

Info

Publication number
CN110457421A
CN110457421A CN201910749064.4A CN201910749064A CN110457421A CN 110457421 A CN110457421 A CN 110457421A CN 201910749064 A CN201910749064 A CN 201910749064A CN 110457421 A CN110457421 A CN 110457421A
Authority
CN
China
Prior art keywords
route
target
point
route point
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910749064.4A
Other languages
Chinese (zh)
Inventor
林启南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910749064.4A priority Critical patent/CN110457421A/en
Publication of CN110457421A publication Critical patent/CN110457421A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem

Abstract

This application discloses a kind of methods of exhibiting of shift position and devices, treadmill.Wherein, this method comprises: the moving distance of detected target object;Determine sub- route corresponding with moving distance in target route that intended display interface is shown, wherein, it include two route points adjacent in default route point set corresponding with target route, and the increased route point between two adjacent route points in sub- route;Target route point is determined in two adjacent route points and increased route point based on moving distance;Target position information corresponding to the mobile logo of target object is determined based on position of the target route point in target route, and shows target position information in intended display interface.The technical issues of present application addresses the discontinuous effects of mobile appearance due to leading to user location according to the movement of discrete coordinate points analog subscriber position in the related technology.

Description

Methods of exhibiting and device, the treadmill of shift position
Technical field
This application involves motion detection field, methods of exhibiting and device in particular to a kind of shift position, running Machine.
Background technique
In the related technology, intelligence runs function with the map simulation of screen treadmill, is exactly selected on map according to user Starting and terminal point generates running route, then obtains the user coordinates that the distance that user runs is come in simulator locating map route.It runs The generation of step line is needed by third party map SDK, and what is returned due to the route planning function of map SDK is one group discrete Coordinate points (i.e. route point), if according to these coordinate points come the movement of analog subscriber position, screen when will lead to user's running There is Caton in the mobile display effect of upper user, i.e. the movement of user location is not continuous enough, not enough smoothly.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the present application provides the methods of exhibiting and device, treadmill of a kind of shift position, at least to solve correlation Due to leading to the discontinuous effect of mobile appearance of user location according to the movement of discrete coordinate points analog subscriber position in technology The technical issues of fruit.
According to the one aspect of the embodiment of the present application, a kind of methods of exhibiting of shift position is provided, comprising: detection target The moving distance of object;Determine sub- route corresponding with moving distance in target route that intended display interface is shown, wherein It include two route points adjacent in default route point set corresponding with target route in sub- route, and at adjacent two Increased route point between route point;Target is determined in two adjacent route points and increased route point based on moving distance Route point;Target position corresponding to the mobile logo of target object is determined based on position of the target route point in target route Information, and target position information is shown in intended display interface.
Optionally, the moving distance of detected target object, comprising: the operation speed of transmission device where detected target object Degree, wherein target object follows transmission device to execute the movement that moves ahead;The speed of service according to transmission device determines target object Movement speed;Moving distance is determined based on the movement duration of movement speed and target object on transmission device.
Optionally it is determined that in the target route that intended display interface is shown before sub- route corresponding with moving distance, Method further include: compare the distance value in moving distance and route point distance set, obtain comparison result, wherein route point away from It is the distance between original route point position and other route point positions in default route point set from the distance value in set;According to According to comparison result from route point distance set selection target distance value;Determine the sub- route of target corresponding with target range value, And using the sub- route of target as sub- route corresponding with moving distance, wherein the sub- route of the target is corresponding with target range value Route point and an adjacent upper route point between route.
Optionally, according to comparison result selection target distance value from route point distance set, comprising: according to comparison result Determine the distance value for being less than moving distance;Determination differs the smallest distance with moving distance from the distance value for being less than moving distance Value, and the smallest distance value will be differed with moving distance as target range value.
Optionally it is determined that the sub- route of target corresponding with target range value, comprising: determine road corresponding with target range value Line point pair, wherein the route point centering includes route point corresponding with target range value, and road corresponding with target range value The adjacent upper route point of line point;Determine the distance between two route points of route point centering;Alternative line point centering two The distance between route point and preset threshold;When the distance in route point pair between two route points is greater than preset threshold, In Increase at least one route point between two route points.
Optionally, increased route point determines in the following manner between two adjacent route points: determining adjacent It is fixed than branch between two route points, and will determine than branch as the increased route point between two adjacent route points.
Optionally, increased route point determines in the following manner between two adjacent route points: determining route point First ratio of the distance between two route points of centering and preset threshold;Two roads of route point centering are determined according to the first ratio Increased route points between line point;Determine second of the longitude and latitude difference and route points between two route points of route point centering Ratio obtains longitude and latitude increment;Starting route point position and longitude and latitude increment in foundation two route points of route point centering is true It is scheduled on increased route point between two adjacent route points.
Optionally it is determined that in the target route that displaying interface is shown before sub- route corresponding with moving distance, method Further include: obtain the route point for generating the target route in the shown map in intended display interface;Route based on acquisition Point generates default route point set.
According to the another aspect of the embodiment of the present application, provide a kind of methods of exhibiting of shift position, comprising: from target Route point is extracted in the corresponding default route point set of the mobile route of object, wherein route point is for generating target route;Really Surely adjacent the distance between two route points in the route point extracted;Compare distance and preset threshold;It is greater than in distance default When threshold value, increase at least one target route point between two adjacent route points;According to two adjacent route point coordinates And at least one target route point generates the sub- route in default route between two adjacent paths points;Mesh is shown in sub- route Mark the position of object.
Optionally, two are generated in default route according to adjacent two route point coordinates and at least one target route point Sub- route between adjacent route point, comprising: compare the moving distance of target object at a distance from route point distance set Value, obtains comparison result, wherein the distance value in route point distance set is original route point position in default route point set The distance between other route point positions;According to comparison result selection target distance value from route point distance set;It determines The sub- route of target corresponding with target range value, and using the sub- route of target as sub- route corresponding with moving distance, wherein it should The sub- route of target is the route being worth between corresponding route point and an adjacent upper route point with target range.
Optionally, according to comparison result selection target distance value from route point distance set, comprising: according to comparison result Determine the distance value for being less than moving distance;Determination differs the smallest distance with moving distance from the distance value for being less than moving distance Value, and the smallest distance value will be differed with moving distance as target range value.
Optionally, increase at least one target route point between two adjacent route points, comprising: determine adjacent two It is fixed than branch between a route point, and will determine than branch as target route point.
According to the another aspect of the embodiment of the present application, a kind of displaying device of shift position is provided, comprising: detection mould Block, the moving distance for detected target object;First determining module, the target road shown for determining intended display interface Sub- route corresponding with moving distance in line, wherein include in default route point set corresponding with target route in sub- route Two adjacent route points, and the increased target route point between two adjacent route points;Second determining module, is used for Target route point is determined in adjacent two route points and target route point based on moving distance;Display module, for being based on Position of the target route point in target route determines target position information corresponding to the mobile logo of target object, and in mesh Mark, which is shown in interface, shows target position information.
Optionally, detection module, the speed of service of transmission device where being also used to detected target object, wherein target pair As following transmission device to execute the movement that moves ahead;The speed of service according to transmission device determines the movement speed of target object;And Moving distance is determined based on the movement duration of movement speed and target object on a treadmill.
According to the another aspect of the embodiment of the present application, a kind of non-volatile memory medium is provided, non-volatile memories are situated between Matter includes the program of storage, wherein the movement in program operation where control non-volatile memory medium more than equipment execution The methods of exhibiting of position.
According to the another aspect of the embodiment of the present application, a kind of processor is provided, processor is for running program, wherein The methods of exhibiting of shift position more than being executed when program is run.
According to the another aspect of the embodiment of the present application, a kind of treadmill is provided, comprising: display device, for providing mesh Mark shows that interface, the intended display interface are used to show target route in electronic map and target object in target route In the corresponding target position information of mobile logo;Transmission device, for carrying target object, and drive target object execute before Action is made;Controller determines the movement speed of target object for the speed of service according to transmission device;Based on movement speed and Movement duration of the target object on transmission device determines the moving distance of target object;Determine in target route with moving distance Corresponding sub- route, wherein include two routes adjacent in default route point set corresponding with target route in sub- route Point, and the increased target route point between two adjacent route points;Based on moving distance in two adjacent route points With target route point determining in increased route point;Position of the target route point in target route is right as mobile logo institute The target position information answered.
In the embodiment of the present application, using between the adjacent paths point in the corresponding default route point set of target route The mode for increasing new route point, due to increasing new route point, the shift position of user can be made when moving Display effect it is more smooth, and then solve in the related technology due to the movement according to discrete coordinate points analog subscriber position The technical issues of leading to the mobile appearance of user location discontinuous effect.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the structural schematic diagram according to a kind of treadmill of the embodiment of the present application;
Fig. 2 is the flow diagram according to a kind of methods of exhibiting of shift position of the embodiment of the present application;
Fig. 3 is the product process schematic diagram according to a kind of optional route point of the embodiment of the present application;
Fig. 4 is one kind according to the embodiment of the present application optionally using the fixed process signal for generating route point than branch principle Figure;
Fig. 5 is the structural schematic diagram according to a kind of displaying device of shift position of the embodiment of the present application;
Fig. 6 is the flow diagram according to the methods of exhibiting of another shift position of the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
The embodiment of the present application in order to better understand, below such as by explanation of technical terms involved in the embodiment of the present application Under:
Determine than branch:, if the coordinate of the beginning and end of a directed line segment is respectively x1 and x2 in reference axis, branch M divides The ratio of this directed line segment is λ, then, coordinate x=(x1+ λ x2)/(the 1+ λ), this branch M of branch M as compares branch surely.
Route point: for generating the series of discrete point of the route between starting point and terminal.
It is according in electronic map when in the related technology, due to showing position of the user in route in electronic map What the discrete point for generating above-mentioned route was simulated, therefore, lead to the shift position of the user shown in electronic map It will appear discontinuous display effect.Based on the above issues, the embodiment of the present application increases newly between two adjacent discrete points Discrete point, in this way, can improve to a certain extent shift position show when continuity.Specifically:
Fig. 1 is the structural schematic diagram according to a kind of treadmill of the embodiment of the present application.As shown in Figure 1, the treadmill includes:
Display device 10, for providing intended display interface, which is used to show the mesh in electronic map Mark the corresponding target position information of mobile logo of route and target object in target route;
Transmission device 12 for carrying target object, and drives target object to execute the movement that moves ahead;
Controller 14 determines the movement speed of target object for the speed of service according to transmission device;Based on mobile speed Degree and movement duration of the target object on transmission device determine the moving distance of target object;Determine in target route with movement Apart from corresponding sub- route, wherein include two adjacent in default route point set corresponding with target route in sub- route Route point, and the increased target route point between two adjacent route points;Based on moving distance on two adjacent roads Target route point is determined in line point and increased route point;Using position of the target route point in target route as mobile logo Corresponding target position information.
Treadmill using the above structure, due to increasing new route point in existing route point, can make The display effect of the shift position of user when moving is more smooth, and then solves in the related technology due to according to discrete seat The movement of punctuate analog subscriber position leads to the technical issues of mobile appearance of user location discontinuous effect.
It should be noted that above-mentioned treadmill can also have than more structures shown in Fig. 1, for example including pedestal, help The structures such as hand structure, but not limited to this.
It should also be noted that, the above-mentioned operational process about controller 14, it below can be in the methods of exhibiting of shift position Middle detailed description, details are not described herein again.
According to the embodiment of the present application, a kind of embodiment of the method for the methods of exhibiting of shift position is provided, needs to illustrate It is that step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, Also, although logical order is shown in flow charts, and it in some cases, can be to be different from sequence execution herein Shown or described step.
Fig. 2 be according to a kind of flow diagram of the methods of exhibiting of shift position of the embodiment of the present application, as shown in Fig. 2, This method comprises the following steps:
Step S202, the moving distance of detected target object, wherein moving distance be rate based on target object and when Between determine;
Step S204 determines sub- route corresponding with moving distance in target route that intended display interface is shown, In, it include two route points adjacent in default route point set corresponding with target route in sub- route, and adjacent Increased route point between two route points;
Step S206 determines target route based on moving distance in two adjacent route points and increased route point Point;
Step S208 is determined corresponding to the mobile logo of target object based on position of the target route point in target route Target position information, and show target position information in intended display interface.
In the embodiment of the present application, using between the adjacent paths point in the corresponding default route point set of target route The mode for increasing new route point, due to increasing new route point, the shift position of user can be made when moving Display effect it is more smooth, and then solve in the related technology due to the movement according to discrete coordinate points analog subscriber position The technical issues of leading to the mobile appearance of user location discontinuous effect.
In step S202, can detected target object in the following manner moving distance: where detected target object The speed of service of transmission device, wherein target object follows transmission device to execute the movement that moves ahead;Operation speed according to transmission device Spend the movement speed for determining target object;Movement is determined based on the movement duration of movement speed and target object on transmission device Distance.
Specifically, the moving distance of target object can be the length of travel of target object, which is only one Kind range data, the speed of service setting value of the calculation basis transmission device crawler belt of this data and the fortune of transmission device crawler belt The row time, for example, when user is run on transmission device crawler belt, crawler belt with user's direction of travel reverse movement, because The speed of this crawler belt, that is, user's running speed v, then user's equivalent path (moving distance of target object) s=v*t, wherein T is the time value of transmission device operation.
In addition, transmission device processor needs will be in runing time when the movement speed of target object is speed change The speed of service of the average speed as transmission device crawler belt, for example, transmission device runing time is t, t=t1+t2, if with Travel speed of the family within the t1 time is v1, and the travel speed in the t2 time is v2, then user advances, (i.e. transmission device is transported Row) average speed are as follows: v1*t1/ (t1+t2)+v2*t2/ (t1+t2), finally according to average speed and transmission device operation Total time t calculate the moving distance of target object.
In some embodiments of the present application, determine in target route that intended display interface is shown with moving distance pair Before the sub- route answered, following treatment process can also be performed: comparing the distance value in moving distance and route point distance set, Obtain comparison result, wherein distance value in route point distance set be in default route point set original route point position and The distance between other route point positions;According to comparison result selection target distance value from route point distance set;Determine with Target range is worth the corresponding sub- route of target, and using the sub- route of target as sub- route corresponding with moving distance, wherein the mesh Marking sub- route is the route being worth between corresponding route point and an adjacent upper route point with target range.
Wherein, when according to comparison result selection target distance value from route point distance set, following place can be executed Reason process: the distance value for being less than moving distance is determined according to comparison result;It determines and moves from the distance value for being less than moving distance Dynamic distance differs the smallest distance value, and the smallest distance value will be differed with moving distance as target range value.
For the waste for avoiding operation resource, new road can be increased between route point only in the case where meeting the requirements Line point: route point pair corresponding with target range value is determined, wherein the route point centering includes road corresponding with target range value Line point, and it is worth the adjacent upper route point of corresponding route point with target range;Determine two route points of route point centering The distance between;The distance between alternative line point two route points of centering and preset threshold;Two routes in route point pair When the distance between point is greater than preset threshold, increase at least one route point between two route points.
Optionally, increased route point determines in the following manner between two adjacent route points: determining route point First ratio of the distance between two route points of centering and preset threshold;Two roads of route point centering are determined according to the first ratio Increased route points between line point;Determine second of the longitude and latitude difference and route points between two route points of route point centering Ratio obtains longitude and latitude increment;Starting route point position and longitude and latitude increment in foundation two route points of route point centering is true It is scheduled on increased route point between two adjacent route points.
Specifically, it is determined that the route distance of discrete coordinates, is to measure the distance between discrete coordinates midpoint and point and be It is no to meet preset smoothness condition, in actual operation, when stretch line discrete coordinate is more, the row of this section of route It is more smooth-out into track, then being the technical effect smoothly felt to reach user experience running track, need to increase To the treatment process of discrete coordinate.
By taking function is run in the map simulation in treadmill as an example, all discrete of software tool pack (SDK) return is precalculated Coordinate can calculate currently run distance and route after getting the distance of running that bottom transmits to the route distance of starting point coordinate Which upper discrete coordinates are closest, and as the analog position of user, update to map and run on interface.Wherein, route The process for segmenting cutting is as shown in Figure 3: firstly, in the discrete route point that map SDK is returned, the straight line between points of part away from From excessive, cause to occur when user location is mobile it is similar fall frame the phenomenon that, generate more route points among the two points. A maximum distance threshold can be preset, if adjacent two o'clock distance is greater than this threshold value, the line just formed in this two o'clock Route point is generated in section again.Specific algorithm process is as shown in Figure 3.
In order to keep the movement of user location more smooth, the embodiment of the present application route discrete point that SDK is returned according to the map The line segment of composition carries out repeatedly cutting and determines score point location.Increased route point can be with i.e. between two adjacent route points Determine in the following manner: it is fixed than branch between two adjacent route points to determine, and will determine than branch as adjacent Increased route point between two route points.
The cutting of route solves the situation that distance is excessive between two route points, theoretically, the 1st point of maximum mentioned Distance threshold is set smaller, and movement of the user on route is more smooth, but can generate more route points in this way in list In, increase memory consumption.Therefore, one layer of processing is done on the basis of after the cutting of route again, exactly route is done and determines score Point.Fixed to be than branch principle, if the coordinate of the beginning and end of a directed line segment is respectively x1 and x2 in reference axis, branch M divides The ratio of this directed line segment is λ, then, coordinate x=(x1+ λ x2)/(the 1+ λ) of branch M.It is fixed than branch to do to route, exactly allows The position of user is allowed to be fallen in branch according to the distance proportion in two route points.Specific algorithm is as shown in figure 4, herein no longer It repeats.
In some alternative embodiments of the application, above-mentioned default route point set is combined into be generated in the following manner: being obtained It takes in the route point for generating the target route in the shown map in intended display interface;Route point based on acquisition generates default Route point set.
Specifically, the process for obtaining route point can be according to the discrete co-ordinate values that may pass through in default route to map Obtained, and be fitted to form a route set according to this discrete co-ordinate values, this set be based on route point and Obtain, so and a kind of set of route point, obtain route point process can also be according to user advance viameter Starting point is calculated to the position of journey's end, then the discrete point coordinate of the position constructive ways based on final position and starting point, And according to these Coordinate generation set of paths.For example, discrete coordinates point (a1, b1) (a2, b2) (a3, b3), then passing through place Managing set of paths produced after device calculates is Q={ (a1, b1) (a2, b2) (a3, b3) }, and wherein Q is that this paths is all The set of coordinate points.
As shown in figure 3, according to a kind of product process schematic diagram of optional route point of the embodiment of the present application, specific steps Are as follows:
Step S302, the list that the route point that input map SDK is returned is constituted;
Step S304 presets maximal distance threshold=20 meter, and executes since first route point value;
Step S306, the distance between the next route point for taking a certain route point adjacent thereto;
Step S308, judges whether S306 distance between two points are greater than preset threshold;
Step S310, cuts point-to-point transmission, and the number of cutting is the ratio of the distance between two o'clock with preset threshold;
Step S312, obtains the longitude and latitude increment of every part of cutting, and increment is equal to longitude or difference of latitude/cutting number;
Step S314, calculates new route point, i.e., route point and product and value, wherein product is every part of increment and n (n For from 1 to cutting number) product, then take next route point to continue to traverse;
Step S316 judges whether to have traversed the route point in list, if being, terminates, and otherwise, goes to step S306.
Specifically, data structured can be stored by the way of binary tree traversal and be pressed traversal y-bend by traversal of lists The advantages of tree rule is traversed, traversed in this way is that clear logic, exhaustive and data storage reading efficiency are high.
As shown in figure 4, according to one kind of the embodiment of the present application optionally using the fixed stream for generating route point than branch principle Journey schematic diagram, specifically:
Step S402, input user run distance;
Step S404, traversal route point list, and to from starting point to i+1 route point apart from assignment;
Step S406 judges whether running less than or equal to user slave starting point to the distance of i+1 route point for S404 institute assignment Distance;
Step S408, if S406 is judged as YES, the position of user is just fallen between i and i+1 at this time, using determining ratio Branch principle calculates the specific location in point-to-point transmission;
Step S410 exports the route branch between two o'clock.
The embodiment of the present application provides a kind of displaying device of shift position, as shown in figure 5, the displaying device includes: inspection Survey module 50, the moving distance for detected target object, wherein moving distance is that the velocity and time based on target object is true Fixed;First determining module 52, for determining son corresponding with moving distance in target route that intended display interface is shown Route, wherein include two route points adjacent in default route point set corresponding with target route, Yi Ji in sub- route Increased target route point between two adjacent route points;Second determining module 54, for based on moving distance adjacent Target route point is determined in two route points and target route point;Display module 56, for being based on target route point on target road Position in line determines target position information corresponding to the mobile logo of target object, and shows mesh in intended display interface Cursor position information.
In the embodiment of the present application, using between the adjacent paths point in the corresponding default route point set of target route The mode for increasing new route point, due to increasing new route point, the shift position of user can be made when moving Display effect it is more smooth, and then solve in the related technology due to the movement according to discrete coordinate points analog subscriber position The technical issues of leading to the mobile appearance of user location discontinuous effect.
Optionally, detection module 50, the speed of service of transmission device where being also used to detected target object, wherein target Object follows transmission device to execute the movement that moves ahead;The speed of service according to transmission device determines the movement speed of target object;With And moving distance is determined based on the movement duration of movement speed and target object on a treadmill.
The embodiment of the present application also provides the methods of exhibiting of another shift position, as shown in fig. 6, this method comprises:
Step S602 extracts route point from default route point set corresponding with the mobile route of target object, wherein Route point is for generating target route;Determine the distance between two route points adjacent in the route point extracted;
Step S604, compares distance and preset threshold;
Step S606 increases at least one target between two adjacent route points when distance is greater than preset threshold Route point;
Step S608 is generated two in default route according to adjacent two route point coordinates and at least one target route point Sub- route between a adjacent paths point;
Step S610 shows the position of target object in sub- route.
It, can be according to adjacent two route point coordinates and at least one target route in some embodiments of the present application Point generates the sub- route in default route between two adjacent route points: compare target object moving distance and route point away from From the distance value in set, comparison result is obtained, wherein the distance value in route point distance set is in default route point set The distance between original route point position and other route point positions;Mesh is selected from route point distance set according to comparison result Subject distance value;Determine the sub- route of target corresponding with target range value, and using the sub- route of target as corresponding with moving distance Sub- route, wherein the sub- route of the target is to be worth between corresponding route point and an adjacent upper route point with target range Route.
Specifically, the moving distance of target object can be the length of travel of target object, which is only one Kind range data, the speed of service setting value of the calculation basis transmission device crawler belt of this data and the fortune of transmission device crawler belt The row time, for example, when user is run on transmission device crawler belt, crawler belt with user's direction of travel reverse movement, because The speed of this crawler belt, that is, user's running speed v, then user's equivalent path (moving distance of target object) s=v*t, wherein T is the time value of transmission device operation.
In addition, transmission device processor needs will be in runing time when the movement speed of target object is speed change The speed of service of the average speed as transmission device crawler belt, for example, transmission device runing time is t, t=t1+t2, if with Travel speed of the family within the t1 time is v1, and the travel speed in the t2 time is v2, then user advances, (i.e. transmission device is transported Row) average speed are as follows: v1*t1/ (t1+t2)+v2*t2/ (t1+t2), finally according to average speed and transmission device operation Total time t calculate the moving distance of target object.
It, can selection target distance value in the following manner in other embodiments of the application: according to comparison result Determine the distance value for being less than moving distance;Determination differs the smallest distance with moving distance from the distance value for being less than moving distance Value, and the smallest distance value will be differed with moving distance as target range value.
When increasing at least one target route point between two adjacent route points, in order to enable smooth effect is more preferable, It is fixed than branch between two adjacent route points to determine, and will determine than branch as target route point.
Specifically, it is determined that the route distance of discrete coordinates, is to measure the distance between discrete coordinates midpoint and point and be It is no to meet preset smoothness condition, in actual operation, when stretch line discrete coordinate is more, the row of this section of route It is more smooth-out into track, then being the technical effect smoothly felt to reach user experience running track, need to increase To the treatment process of discrete coordinate.
By taking function is run in the map simulation in treadmill as an example, all discrete of software tool pack (SDK) return is precalculated Coordinate can calculate currently run distance and route after getting the distance of running that bottom transmits to the route distance of starting point coordinate Which upper discrete coordinates are closest, and as the analog position of user, update to map and run on interface.Wherein, route The process for segmenting cutting is as shown in Figure 3: firstly, in the discrete route point that map SDK is returned, the straight line between points of part away from From excessive, cause to occur when user location is mobile it is similar fall frame the phenomenon that, generate more route points among the two points. A maximum distance threshold can be preset, if adjacent two o'clock distance is greater than this threshold value, the line just formed in this two o'clock Route point is generated in section again.Specific algorithm process is as shown in Figure 3.
In order to keep the movement of user location more smooth, the embodiment of the present application route discrete point that SDK is returned according to the map The line segment of composition carries out repeatedly cutting and determines score point location.Increased route point can be with i.e. between two adjacent route points Determine in the following manner: it is fixed than branch between two adjacent route points to determine, and will determine than branch as adjacent Increased route point between two route points.
The cutting of route solves the situation that distance is excessive between two route points, theoretically, the 1st point of maximum mentioned Distance threshold is set smaller, and movement of the user on route is more smooth, but can generate more route points in this way in list In, increase memory consumption.Therefore, one layer of processing is done on the basis of after the cutting of route again, exactly route is done and determines score Point.Fixed to be than branch principle, if the coordinate of the beginning and end of a directed line segment is respectively x1 and x2 in reference axis, branch M divides The ratio of this directed line segment is λ, then, coordinate x=(x1+ λ x2)/(the 1+ λ) of branch M.It is fixed than branch to do to route, exactly allows The position of user is allowed to be fallen in branch according to the distance proportion in two route points.Specific algorithm is as shown in figure 4, herein no longer It repeats.
In some alternative embodiments of the application, above-mentioned default route point set is combined into be generated in the following manner: being obtained It takes in the route point for generating the target route in the shown map in intended display interface;Route point based on acquisition generates default Route point set.
Specifically, the process for obtaining route point can be according to the discrete co-ordinate values that may pass through in default route to map Obtained, and be fitted to form a route set according to this discrete co-ordinate values, this set be based on route point and Obtain, so and a kind of set of route point, obtain route point process can also be according to user advance viameter Starting point is calculated to the position of journey's end, then the discrete point coordinate of the position constructive ways based on final position and starting point, And according to these Coordinate generation set of paths.For example, discrete coordinates point (a1, b1) (a2, b2) (a3, b3), then passing through place Managing set of paths produced after device calculates is Q={ (a1, b1) (a2, b2) (a3, b3) }, and wherein Q is that this paths is all The set of coordinate points.
Above scheme provided by the embodiments of the present application, using adjacent in the corresponding default route point set of target route The mode for increasing new route point between route point, due to increasing new route point, the mobile position of user can be made The display effect set when moving is more smooth, and then solves in the related technology due to according to discrete coordinate points analog subscriber The movement of position leads to the technical issues of mobile appearance of user location discontinuous effect.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
In above-described embodiment of the application, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, can be one kind Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module, It can be electrical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple units On.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of step of each embodiment method of the application Suddenly.And storage medium above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
The above is only the preferred embodiments of the application, it is noted that those skilled in the art are come It says, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications also should be regarded as The protection scope of the application.

Claims (17)

1. a kind of methods of exhibiting of shift position characterized by comprising
The moving distance of detected target object;
Determine sub- route corresponding with the moving distance in target route that intended display interface is shown, wherein the son It include two route points adjacent in default route point set corresponding with the target route in route, and described adjacent Two route points between increased route point;
Target route point is determined in adjacent two route points and the increased route point based on the moving distance;
It is determined corresponding to the mobile logo of the target object based on the target route point in the position in the target route Target position information, and show the target position information in the intended display interface.
2. the method according to claim 1, wherein the moving distance of detected target object, comprising:
The speed of service of transmission device where detecting the target object, wherein the target object follows the transmission device Execute the movement that moves ahead;
The speed of service according to the transmission device determines the movement speed of the target object;
The moving distance is determined based on the movement duration of the movement speed and the target object on the transmission device.
3. the method according to claim 1, wherein determine in the target route that is shown of intended display interface with Before the corresponding sub- route of the moving distance, the method also includes:
Compare the distance value in the moving distance and route point distance set, obtain comparison result, wherein the route point away from From the distance value in set be the default route point set between original route point position and other route point positions away from From;
According to comparison result selection target distance value from the route point distance set;
Determine the sub- route of target corresponding with target range value, and using the sub- route of the target as with the moving distance Corresponding sub- route, wherein the sub- route of the target is to be worth corresponding route point and the adjacent road Shang Yige with the target range Route between line point.
4. according to the method described in claim 3, it is characterized in that, being selected from the route point distance set according to comparison result Select target range value, comprising:
The distance value for being less than the moving distance is determined according to the comparison result;
Determined from the distance value for being less than the moving distance and differ the smallest distance value with the moving distance, and will with it is described Moving distance differs the smallest distance value as the target range value.
5. according to the method described in claim 3, it is characterized in that, determining the sub- road of target corresponding with target range value Line, comprising:
Determine corresponding with target range value route point pair, wherein the route point centering includes and the target range value Corresponding route point, and it is worth the adjacent upper route point of corresponding route point with the target range;
Determine the distance between described two route points of route point centering;
Compare the distance between described two route points of route point centering and preset threshold;
The distance in the route point pair between two route points be greater than the preset threshold when, described two route points it Between increase at least one route point.
6. according to the method described in claim 5, it is characterized in that, between two adjacent route points increased route Point determines in the following manner:
Determine first ratio of the distance between described two route points of route point centering He the preset threshold;
Increased route points between two route points of the route point centering are determined according to first ratio;
The second ratio for determining longitude and latitude difference between two route points of the route point centering and route points, obtain through Latitude increment;
According in two route points of the route point centering starting route point position and the longitude and latitude increment determine described Increased route point between two adjacent route points.
7. the method according to claim 1, wherein the increased route between two adjacent route points Point determines in the following manner:
It is fixed than branch between two adjacent route points to determine, and using it is described it is fixed than branch as described adjacent two Increased route point between a route point.
8. method as claimed in any of claims 1 to 7, which is characterized in that determine the mesh for showing that interface is shown It marks in route before sub- route corresponding with the moving distance, the method also includes: it obtains for generating the target exhibition Show the route point of the target route in the shown map in interface;Route point based on acquisition generates the default route point set It closes.
9. a kind of methods of exhibiting of shift position characterized by comprising
Route point is extracted from default route point set corresponding with the mobile route of target object, wherein the route point is used In generation target route;
Determine the distance between two route points adjacent in the route point extracted;
Compare the distance and preset threshold;
When the distance is greater than the preset threshold, increase at least one target road between two adjacent route points Line point;
Institute in the default route is generated according to two adjacent route point coordinates and at least one described target route point State the sub- route between two adjacent paths points;
The position of the target object is shown in the sub- route.
10. according to the method described in claim 9, it is characterized in that, according to two adjacent route point coordinates and described At least one target route point generates the sub- route between two adjacent route points described in the default route, comprising:
The moving distance for comparing the target object and the distance value in route point distance set, obtain comparison result, wherein institute Stating the distance value in route point distance set is original route point position and other route points in the default route point set The distance between set;
According to comparison result selection target distance value from the route point distance set;
Determine the sub- route of target corresponding with target range value, and using the sub- route of the target as with the moving distance Corresponding sub- route, wherein the sub- route of the target is to be worth corresponding route point and the adjacent road Shang Yige with the target range Route between line point.
11. according to the method described in claim 10, it is characterized in that, according to comparison result from the route point distance set Selection target distance value, comprising:
The distance value for being less than the moving distance is determined according to the comparison result;
Determined from the distance value for being less than the moving distance and differ the smallest distance value with the moving distance, and will with it is described Moving distance differs the smallest distance value as the target range value.
12. according to the method for claim 11, which is characterized in that increase at least between two adjacent route points One target route point, comprising:
It is fixed than branch between two adjacent route points to determine, and determines described than branch as the target route Point.
13. a kind of displaying device of shift position characterized by comprising
Detection module, the moving distance for detected target object;
First determining module, for determining son corresponding with the moving distance in target route that intended display interface is shown Route, wherein include two routes adjacent in default route point set corresponding with the target route in the sub- route Point, and the increased target route point between two adjacent route points;
Second determining module, for based on the moving distance in adjacent two route points and target route point Determine target route point;
Display module, for determining the shifting of the target object based on position of the target route point in the target route The corresponding target position information of dynamic mark, and the target position information is shown in the intended display interface.
14. device according to claim 13, which is characterized in that the detection module is also used to detect the target pair As the speed of service of place transmission device, wherein the target object follows the transmission device to execute the movement that moves ahead;According to institute The speed of service for stating transmission device determines the movement speed of the target object;And it is based on the movement speed and the target The movement duration of object on a treadmill determines the moving distance.
15. a kind of non-volatile memory medium, which is characterized in that the non-volatile memory medium includes the program of storage, In, equipment perform claim where controlling the non-volatile memory medium in described program operation requires any one of 1 to 7 The methods of exhibiting of the shift position.
16. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 7 described in shift position methods of exhibiting.
17. a kind of treadmill characterized by comprising
Display device, for providing intended display interface, which is used to show the target route in electronic map, And the corresponding target position information of mobile logo of the target object in the target route;
Transmission device for carrying the target object, and drives the target object to execute the movement that moves ahead;
Controller, for determining the movement speed of the target object according to the speed of service of the transmission device;Based on described The movement duration of movement speed and the target object on the transmission device determines the moving distance of the target object;Really Sub- route corresponding with the moving distance in the fixed target route, wherein include in the sub- route and the target road Two adjacent route points in the corresponding default route point set of line, and between two adjacent route points it is increased Target route point;Target is determined in adjacent two route points and the increased route point based on the moving distance Route point;Using the target route point in the position in the target route as target position corresponding to the mobile logo Information.
CN201910749064.4A 2019-08-14 2019-08-14 Methods of exhibiting and device, the treadmill of shift position Pending CN110457421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910749064.4A CN110457421A (en) 2019-08-14 2019-08-14 Methods of exhibiting and device, the treadmill of shift position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910749064.4A CN110457421A (en) 2019-08-14 2019-08-14 Methods of exhibiting and device, the treadmill of shift position

Publications (1)

Publication Number Publication Date
CN110457421A true CN110457421A (en) 2019-11-15

Family

ID=68486523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910749064.4A Pending CN110457421A (en) 2019-08-14 2019-08-14 Methods of exhibiting and device, the treadmill of shift position

Country Status (1)

Country Link
CN (1) CN110457421A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541987A (en) * 2020-12-17 2021-03-23 深圳我家云网络科技有限公司 Electronic patrol route generation method and device and computer storage medium
CN114184117A (en) * 2021-10-20 2022-03-15 山东齐鲁数通科技有限公司 Map point displacement moving method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861992A (en) * 2017-10-18 2018-03-30 北京卡路里信息技术有限公司 A kind of running route processing method and apparatus
CN108763414A (en) * 2018-05-23 2018-11-06 广州视源电子科技股份有限公司 A kind of live-action display method, device, terminal device and storage medium
US20190094373A1 (en) * 2004-01-16 2019-03-28 Adidas Ag Systems and methods for presenting route traversal information
CN110118976A (en) * 2019-04-18 2019-08-13 广州斯沃德科技有限公司 A kind of driving trace method for drafting, device, terminal device and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190094373A1 (en) * 2004-01-16 2019-03-28 Adidas Ag Systems and methods for presenting route traversal information
CN107861992A (en) * 2017-10-18 2018-03-30 北京卡路里信息技术有限公司 A kind of running route processing method and apparatus
CN108763414A (en) * 2018-05-23 2018-11-06 广州视源电子科技股份有限公司 A kind of live-action display method, device, terminal device and storage medium
CN110118976A (en) * 2019-04-18 2019-08-13 广州斯沃德科技有限公司 A kind of driving trace method for drafting, device, terminal device and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541987A (en) * 2020-12-17 2021-03-23 深圳我家云网络科技有限公司 Electronic patrol route generation method and device and computer storage medium
CN114184117A (en) * 2021-10-20 2022-03-15 山东齐鲁数通科技有限公司 Map point displacement moving method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106730841A (en) A kind of method for searching and device
CN109782763A (en) A kind of method for planning path for mobile robot under dynamic environment
US20210381846A1 (en) Methods and apparatuses for navigation guidance and establishing a three-dimensional real scene model, device and medium
CN108725440A (en) Forward direction collision control method and device, electronic equipment, program and medium
CN110457421A (en) Methods of exhibiting and device, the treadmill of shift position
CN104866500A (en) Method and device for displaying pictures in classified manner
CN110268457A (en) For determining medium, controller that the actuated method of collection, computer program product, the computer capacity of at least two vehicles read and including the vehicle of the controller
CN106104656A (en) Map information generating systems, method and program
CN106647742A (en) Moving path planning method and device
CN106599561A (en) Trajectory data cleaning method and device
CN104205187B (en) Fortuitous event predicts sensitivity judgment means
CN103186710A (en) Optimal route searching method and system
Liu et al. Balanced traffic routing: Design, implementation, and evaluation
CN107389085A (en) A kind of determination method, apparatus, computer and the storage medium of road attribute
CN111202986A (en) Method and device for generating virtual track in game, processor and electronic device
JP2014135061A (en) Drive evaluating device, drive evaluating method, and drive support system
CN113375689B (en) Navigation method, navigation device, terminal and storage medium
US20230281357A1 (en) Generating simulation environments for testing av behaviour
CN107392359A (en) Navigation way replacing options, device, storage medium, electronic equipment and server
CN101840202A (en) Functional block intelligent wiring method in modeling of control system
CN111185013B (en) Game data acquisition method based on virtual track, processor and electronic device
CN116956554A (en) Traffic simulation processing method and device, electronic equipment and storage medium
CN113867367B (en) Processing method and device for test scene and computer program product
CN108595882B (en) Yinyi planning pipeline BIM design pipeline cost generation system
CN109102712A (en) The data processing method and device smoothly moved for realizing vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191115