Map adjustment method and device

By receiving adjustment requests, updating the absolute pose parameters of the reference object and adjusting the relative pose parameters of each object on the map according to the hierarchical relationship, the problem of lack of rotation and translation adjustment when importing game maps is solved, and the map adjustment efficiency and user experience are improved.

CN115581918BActive Publication Date: 2025-09-23ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211121844.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2025-09-23
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

In the existing technology, game maps lack adjustment functions such as rotation and translation when imported, resulting in low robustness and reducing the player's experience.

Method used

By receiving adjustment requests, the absolute pose parameters of the reference object are updated, and the relative pose parameters of each object are adjusted according to the hierarchical relationship to achieve the pose adjustment of each object on the map.

Benefits of technology

It improves the efficiency of map adjustment and user experience, and enhances user stickiness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115581918B_ABST
    Figure CN115581918B_ABST
Patent Text Reader

Abstract

The present application provides a map adjustment method and device, wherein the map adjustment method includes: receiving an adjustment request for a map to be adjusted, wherein the map to be adjusted contains multiple objects with a hierarchical relationship; updating the absolute posture parameters of a reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects; updating the relative posture parameters of each object according to the adjustment parameters, the absolute posture parameters, and the hierarchical relationship between the multiple objects; adjusting the posture of the object according to the absolute posture parameters and the relative posture parameters to obtain a target map. The map adjustment method provided by the present application can improve the efficiency of map adjustment and simplify the map adjustment process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more particularly to a map adjustment method, a map adjustment device, a computing device, and a computer-readable storage medium. Background Art

[0002] With the development of computer and internet technologies, a wide variety of games have emerged, and more and more people are using them to relax. To increase game diversity and enhance player engagement, some games offer users the ability to adjust maps, such as modifying objects within a map or merging different maps.

[0003] In existing technology, games often have maps of varying sizes. When importing a small map into a larger map, the center of the small map is typically aligned with the mouse position and then imported directly into the larger map. This lack of support for rotation, translation, and other adjustments to the small map results in low robustness, significantly reducing the player experience. Therefore, an effective solution is urgently needed to address this issue. Summary of the Invention

[0004] In view of this, the embodiments of the present application provide a map adjustment method to solve the technical defects existing in the prior art. The embodiments of the present application also provide a map adjustment device, a computing device, and a computer-readable storage medium.

[0005] According to a first aspect of an embodiment of the present application, a map adjustment method is provided, comprising:

[0006] receiving an adjustment request for a map to be adjusted, wherein the map to be adjusted includes a plurality of objects having a hierarchical relationship;

[0007] updating the absolute pose parameters of a reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects;

[0008] Update the relative pose parameters of each object based on the adjustment parameters, absolute pose parameters, and the hierarchical relationship between multiple objects;

[0009] According to the absolute pose parameters and relative pose parameters, the pose of the object is adjusted to obtain the target map.

[0010] According to a second aspect of an embodiment of the present application, a map adjustment device is provided, comprising:

[0011] A first receiving module is configured to receive an adjustment request for a map to be adjusted, wherein the map to be adjusted includes a plurality of objects having a hierarchical relationship;

[0012] A first updating module is configured to update absolute pose parameters of a reference object according to adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects;

[0013] a second updating module configured to update the relative pose parameters of each sub-object according to the adjustment parameter, the absolute pose parameters, and the hierarchical relationship between the multiple objects;

[0014] The adjustment module is configured to adjust the pose of the object according to the absolute pose parameters and the relative pose parameters to obtain a target map.

[0015] According to a third aspect of an embodiment of the present application, a computing device is provided, including:

[0016] memory and processor;

[0017] The memory is used to store computer-executable instructions, and the processor implements the steps of the above-mentioned map adjustment method when executing the computer-executable instructions.

[0018] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned map adjustment method are implemented.

[0019] According to a fifth aspect of the embodiments of the present application, a chip is provided, which stores a computer program, and when the computer program is executed by the chip, the steps of the above-mentioned map adjustment method are implemented.

[0020] The map adjustment method provided by the present application receives an adjustment request for a map to be adjusted, wherein the map to be adjusted contains multiple objects with a hierarchical relationship; updates the absolute posture parameters of a reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects; updates the relative posture parameters of each object according to the adjustment parameters, the absolute posture parameters, and the hierarchical relationship between the multiple objects; adjusts the posture of the object according to the absolute posture parameters and the relative posture parameters to obtain a target map. By using the hierarchical relationship between multiple objects and taking the absolute posture parameters of the reference object as the basis, the posture adjustment of each object on the map to be adjusted is completed, thereby improving the efficiency of posture adjustment, further improving the efficiency of map adjustment, and simplifying the map adjustment process. This is conducive to improving the user's experience in adjusting the map, thereby improving user stickiness. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1A This is a structural diagram of a map adjustment system provided by an embodiment of the present application;

[0022] Figure 1B This is a structural diagram of another map adjustment system provided by an embodiment of the present application;

[0023] Figure 2 This is a flowchart of a map adjustment method provided by an embodiment of the present application;

[0024] Figure 3 This is a schematic diagram of the hierarchical relationship in a map adjustment method provided in one embodiment of the present application;

[0025] Figure 4 This is a processing flow chart of a map adjustment method applied to a game scene provided by an embodiment of the present application;

[0026] Figure 5 This is a structural diagram of a map adjustment device provided in one embodiment of the present application;

[0027] Figure 6 This is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0028] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.

[0029] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0030] It should be understood that although the terms "first," "second," and the like may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, "first" may also be referred to as "second," and similarly, "second" may also be referred to as "first," without departing from the scope of one or more embodiments of the present application.

[0031] First, the terms involved in one or more embodiments of the present invention are explained.

[0032] A blueprint is a map that stores object information, also known as a map file.

[0033] The global blueprint is a map that stores information about all objects on a map.

[0034] This application provides a map adjustment method, a map adjustment device, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments.

[0035] The map adjustment method provided in the embodiments of the present application can be executed by a server or a terminal, which is not limited in this embodiment. Furthermore, the terminal can be any electronic product capable of human-computer interaction with a user, such as a PC (Personal Computer), a mobile phone, a PPC (Pocket PC), a tablet computer, etc. The server can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center, which is not limited in this embodiment.

[0036] For example, the execution subject is the terminal, see Figure 1A , Figure 1A This is a structural diagram of a map adjustment system provided according to an embodiment of the present application: a user adjusts a map to be adjusted through a terminal, and the terminal accordingly receives an adjustment request for the map to be adjusted, wherein the map to be adjusted includes multiple objects with a hierarchical relationship; according to the adjustment parameters carried in the adjustment request, the absolute posture parameters of the reference object are updated, wherein the reference object is any object among the multiple objects; according to the adjustment parameters, the absolute posture parameters and the hierarchical relationship between the multiple objects, the relative posture parameters of each object are updated; according to the absolute posture parameters and the relative posture parameters, the posture of the object is adjusted to obtain the target map.

[0037] In addition, the terminal may also receive an adjustment request for the map to be adjusted sent by the server.

[0038] Take the server as an example, see Figure 1B , Figure 1B This is a schematic diagram of the structure of another map adjustment system provided according to an embodiment of the present application: When a user adjusts a map to be adjusted through a terminal, the terminal generates an adjustment request for the map to be adjusted and sends it to a server. After receiving the adjustment request for the map to be adjusted, the server updates the absolute pose parameters of a reference object based on the adjustment parameters carried in the adjustment request, where the reference object is any one of multiple objects; updates the relative pose parameters of each object based on the adjustment parameters, the absolute pose parameters, and the hierarchical relationship between the multiple objects; and adjusts the pose of the object based on the absolute pose parameters and the relative pose parameters to obtain a target map.

[0039] Correspondingly, the server can also send the target map to the terminal for the user to view.

[0040] In an embodiment of the present application, an adjustment request for a map to be adjusted is received, wherein the map to be adjusted contains multiple objects with a hierarchical relationship; the absolute posture parameters of the reference object are updated according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects; the relative posture parameters of each object are updated according to the adjustment parameters, the absolute posture parameters, and the hierarchical relationship between the multiple objects; the posture of the object is adjusted according to the absolute posture parameters and the relative posture parameters to obtain a target map. By using the hierarchical relationship between multiple objects and taking the absolute posture parameters of the reference object as the basis, the posture adjustment of each object on the map to be adjusted is completed, thereby improving the efficiency of posture adjustment, further improving the efficiency of map adjustment, and simplifying the map adjustment process. This is conducive to improving the user's experience of adjusting the map, thereby improving user stickiness.

[0041] Figure 2 A flowchart of a map adjustment method according to an embodiment of the present application is shown, which specifically includes the following steps:

[0042] Step 202: Receive an adjustment request for a map to be adjusted, wherein the map to be adjusted includes a plurality of objects having a hierarchical relationship.

[0043] Specifically, the map to be adjusted refers to the global blueprint that needs to be adjusted; the adjustment request refers to the request triggered by the user adjusting the map through the terminal; the object refers to the things and items in the map, such as rockery, houses, rivers, etc.; the hierarchical relationship refers to the subordinate relationship between objects, that is, the parent-child relationship. For example, a tree includes a trunk and bark on the trunk. The tree is the first level, the trunk is the second level, and the bark is the third level. The second level belongs to the first level, and the third level belongs to the second level, that is, the tree is the parent object of the trunk, and the trunk is the parent object of the bark.

[0044] In actual applications, users can adjust a map containing multiple objects by operating a mobile phone, computer, or other terminal. The execution entity then receives the adjustment request for the map. The multiple objects are hierarchically related, and the user's operation on the mobile phone, computer, or other terminal can be at least one of a click, voice control, and text input.

[0045] For example, the user adjusts map A containing a house, a table, and a teacup on a computer. Accordingly, the terminal (computer) receives an adjustment request for map A, in which the house is on the first level, the table is on the second level, and the teacup is on the third level.

[0046] Step 204: Update the absolute pose parameters of the reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any object among the multiple objects.

[0047] Specifically, adjustment parameters refer to parameters for adjusting the shape, orientation, rotation angle, etc. of an object or map; pose parameters refer to parameters corresponding to the position, posture, orientation, etc. of an object, which are divided into absolute pose parameters and relative pose parameters; absolute pose parameters refer to pose parameters based on the source point of the coordinate system of the world space; relative pose parameters refer to pose parameters based on different objects or points.

[0048] In practical applications, reference objects are pre-set in the map. Upon receiving an adjustment request for the map to be adjusted, the adjustment request is parsed to obtain adjustment parameters. The reference object in the map to be adjusted is identified and its pose parameters, also known as absolute pose parameters, are read. The adjustment parameters and absolute pose parameters are then calculated and processed according to pre-set absolute parameter adjustment rules to obtain updated absolute pose parameters, which in turn update the absolute pose parameters of the reference object.

[0049] Alternatively, the reference object can be a root object, which is the object at the first level in the hierarchy, i.e., an object without a parent object; a leaf object, which is the object at the last level in the hierarchy, i.e., an object without a child object; or an intermediate object, which is the object at the level between the first and last levels in the hierarchy, i.e., an object with both a parent object and a child object. Both leaf objects and intermediate objects can be child objects.

[0050] For example, see Figure 3 , Figure 3 This is a schematic diagram of the hierarchical structure of a map adjustment method provided in one embodiment of the present application: there are six objects, L1-L6, of which L1 is the first level, L2 and L3 are the second level, and L4, L5, and L6 are the third level. It can be seen that L1 is the root object, L2 and L3 are intermediate objects, and L4, L5, and L6 are leaf objects.

[0051] In one achievable embodiment of this specification, the adjustment request may be a displacement request, and the absolute pose parameters include absolute coordinate parameters. Based on the adjustment parameters carried in the adjustment request, the absolute pose parameters of the reference object are updated. The specific implementation process may be as follows:

[0052] Determine an offset based on an adjustment parameter carried in the displacement request;

[0053] Update the absolute coordinate parameters of the reference object based on the offset.

[0054] Specifically, a displacement request refers to a request to displace an object or a map to be adjusted; an offset refers to the offset value before and after the object moves, including the offset direction and distance; and an absolute coordinate parameter refers to the coordinates of the object in the world coordinate system.

[0055] Optionally, the adjustment parameter can be multiple displacement parameters. Vector addition is performed based on the multiple displacement parameters to obtain an offset, and then the absolute coordinate parameters of the reference object are offset by the offset to obtain the updated absolute coordinate parameters of the reference object. For example, if the adjustment parameter includes two displacement parameters: a northward shift of 30 and an eastward shift of 30, the offset is a northeastward shift of 30√2. Assuming the absolute coordinate parameter is (0, 0), (0, 0) is translated northeast by 30√2 to obtain the updated absolute coordinate parameter (30, 30).

[0056] By offsetting the absolute coordinate parameters by the offset amount to obtain updated absolute coordinate parameters, the accuracy of the updated absolute coordinate parameters can be improved, and the accuracy of map adjustment can be further improved.

[0057] Alternatively, the adjustment parameter may be the distance after the center point of the map to be adjusted is moved. The offset can then be calculated based on the distance after the center point of the map to be adjusted is compared with the distance before the center point of the map to be adjusted is moved. The offset is then added to the absolute coordinate parameters of the reference object to obtain the updated absolute coordinate parameters of the reference object. Specifically, updating the absolute coordinate parameters of the reference object based on the offset can be accomplished by adding the absolute coordinate parameters of the reference object to the offset to obtain the updated absolute coordinate parameters of the reference object.

[0058] By adding the offset to the absolute coordinate parameters of the reference object to obtain the updated absolute coordinate parameters, the process of updating the absolute coordinate parameters can be simplified, the amount of data processing can be reduced, and the efficiency of map adjustment can be further improved.

[0059] In another achievable embodiment of the present specification, the adjustment request may be a rotation request; and the absolute pose parameters of the reference object are updated according to the adjustment parameters carried in the adjustment request. The specific implementation process may be as follows:

[0060] Determine the rotation center and rotation angle based on the adjustment parameters carried in the rotation request;

[0061] Update the absolute pose parameters of the reference object based on the rotation center and rotation angle.

[0062] Specifically, rotation refers to the rotation of an object around a fixed point by a certain angle; a rotation request refers to a request to rotate an object or a map to be adjusted; the rotation center refers to the fixed point around which the rotation occurs; and the rotation angle refers to the angle of the object's rotation, including the rotation direction and the rotation angle value.

[0063] Optionally, the rotation request can be for the map to be adjusted, and the adjustment parameters are the rotation direction and rotation angle value of the map to be adjusted around a fixed point. The fixed point in the adjustment parameters is determined as the rotation center, and the rotation direction and rotation angle value are determined as the rotation angle. The rotation center and rotation angle of the map to be adjusted are also the rotation center and rotation angle of the reference object. The reference object is rotated according to the rotation center. When the rotation angle is reached, the posture parameters of the reference object are the updated absolute posture parameters.

[0064] Alternatively, the rotation request can be for the map to be adjusted, with the adjustment parameter being to rotate the map around a fixed point so that a specific object in the map reaches a preset position. The rotation angle can then be determined based on the relative pose parameters of the specific object, the preset position, and the fixed point, and the fixed point is then determined as the rotation center. The absolute pose parameters of the reference object are then updated based on the rotation center and rotation angle.

[0065] Optionally, the rotation request can also be for multiple objects in the map to be adjusted. Based on the rotation center and rotation angle, the absolute pose parameters of the reference object are updated. The specific implementation process can be as follows:

[0066] In the case where the rotation request is for multiple objects, determining the rotation increment of each object based on the rotation center and the rotation angle;

[0067] According to the rotation increment of the reference object, the absolute pose parameters of the updated reference object are obtained.

[0068] Specifically, the rotation increment refers to the rotation change value before and after the object is rotated.

[0069] In practical applications, rotation requests can be for multiple objects. In this case, the rotation increment for each object can be determined based on the rotation center and rotation angle. Furthermore, the rotation increment for the reference object and the absolute pose parameters of the reference object can be calculated according to a preset rotation rule to obtain updated absolute pose parameters. In this way, using the rotation center and rotation angle to determine the rotation increment for each object and then updating the absolute pose parameters can improve the efficiency of updating the absolute pose parameters.

[0070] In one or more optional embodiments of this specification, the absolute pose parameters are absolute rotation parameters. The reference object's rotation increment can then be added to the reference object's absolute pose parameters to obtain updated absolute pose parameters. This simplifies the process of updating the absolute rotation parameters, reduces data processing, and further improves map adjustment efficiency.

[0071] In one or more optional embodiments of the present specification, the absolute pose parameters include absolute coordinate parameters and absolute rotation parameters; and the updated absolute pose parameters of the reference object are obtained according to the rotation increment of the reference object. The specific implementation process may be as follows:

[0072] Obtain updated absolute coordinate parameters of the reference object according to the rotation increment and absolute coordinate parameters of the reference object;

[0073] An updated absolute rotation parameter of the reference object is obtained according to the rotation increment and the absolute rotation parameter of the reference object.

[0074] Specifically, the absolute coordinate parameter refers to the coordinate in the world coordinate system; the absolute rotation parameter can be the rotation parameter between the front face of the object and the direction of the camera space lens.

[0075] In practical applications, the rotation increment can be added to the absolute rotation parameter to obtain the updated absolute rotation parameter of the reference object. Since rotation will also change the coordinates of the object, the absolute coordinate parameters of the reference object also need to be updated according to the rotation increment: the absolute coordinate parameters are rotated according to the rotation increment, and the absolute coordinate parameters after rotation are the updated absolute coordinate parameters of the reference object.

[0076] In this way, by updating the absolute coordinate parameters and absolute rotation parameters of the reference object based on the rotation increment, the absolute pose parameters of the reference object can be made more accurate, thereby ensuring the accuracy of map adjustment.

[0077] Step 206: Update the relative pose parameters of each object according to the adjustment parameters, the absolute pose parameters, and the hierarchical relationship between the multiple objects.

[0078] Specifically, the relative pose parameters of an object refer to the pose parameters of the object relative to its parent object.

[0079] In practical applications, after determining the absolute pose parameters of the reference object, the child object or parent object of the reference object, that is, the first associated object, can be determined according to the hierarchical relationship; then, the relative pose parameters of the first associated object relative to the reference object are determined; further, the child object or parent object of the first associated object, that is, the second associated object, is determined, and the relative pose parameters of the second associated object relative to the first associated object are determined, and so on, until the objects are traversed.

[0080] In one achievable embodiment of this specification, the relative pose parameters may be relative coordinate parameters. Based on determining an offset based on the adjustment parameters carried in the displacement request and updating the absolute coordinate parameters of the reference object according to the offset, the relative pose parameters of each object are updated according to the adjustment parameters, the absolute pose parameters, and the hierarchical relationship between multiple objects. The specific implementation process may be as follows:

[0081] The relative coordinate parameters of each object are updated according to the offset, the absolute coordinate parameters, and the hierarchical relationship between multiple objects.

[0082] In practical applications, after determining the absolute pose parameters of a reference object, the reference object's child or parent object, i.e., the first associated object, can be identified based on the hierarchical relationship. The relative coordinate parameters of the first associated object are then added to the offset to obtain the changed coordinate parameters of the first associated object. The changed coordinate parameters of the first associated object are then compared with the absolute coordinate parameters to determine the relative coordinate parameters of the first associated object relative to the reference object, thereby updating the relative coordinate parameters of the first associated object. Similarly, the first associated object's child or parent object, i.e., the second associated object, is identified. The relative coordinate parameters of the second associated object are added to the offset to obtain the changed coordinate parameters of the second associated object. The changed coordinate parameters of the second associated object are then compared with the relative coordinate parameters of the first associated object to determine the relative coordinate parameters of the second associated object relative to the first associated object, thereby updating the relative coordinate parameters of the second associated object. This process continues in this manner until all objects have been traversed. In this way, simply adjusting the reference object adjusts the pose parameters of all objects accordingly, significantly improving map adjustment efficiency.

[0083] Optionally, after obtaining updated absolute coordinate parameters of the reference object by adding the absolute coordinate parameters of the reference object to the offset, the relative coordinate parameters of each object are updated according to the offset, the absolute coordinate parameters, and the hierarchical relationship between the multiple objects, specifically including:

[0084] When the reference object is the root object, according to the hierarchical relationship between multiple objects, starting from the child objects of the root object, the variable coordinate parameters of the current child object are determined based on the absolute coordinate parameters and offset of the current child object. Based on the variable coordinate parameters and the absolute coordinate parameters of the parent object corresponding to the current child object, the relative coordinate parameters of the current child object are updated until the last child object is reached.

[0085] If the reference object is the root object, after determining the absolute pose parameters of the root object, the root object's child objects can be determined based on the hierarchical relationship. The child objects' relative coordinate parameters are then added to the offset to obtain the child objects' changed coordinate parameters. The child objects' changed coordinate parameters are then compared with their absolute coordinate parameters to determine the child objects' relative coordinate parameters relative to the root object, thus updating the child objects' relative coordinate parameters. Next, using the child objects as their parent objects, the parent's child objects are determined. The child objects' relative coordinate parameters are added to the offset to obtain the child objects' changed coordinate parameters. The child objects' changed coordinate parameters are then compared with the parent objects' relative coordinate parameters to determine the child objects' relative coordinate parameters relative to the parent, thus updating the child objects' relative coordinate parameters. This process continues in this manner until all objects have been traversed.

[0086] In this way, with the root object as the reference object, the pose parameters of each object can be quickly updated according to the parent-child relationship, further improving the update efficiency and greatly improving the efficiency of map adjustment.

[0087] In one feasible embodiment of the present specification, after determining the rotation center and rotation angle based on the adjustment parameters carried in the rotation request and updating the absolute pose parameters of the reference object according to the rotation center and rotation angle, the relative pose parameters of each object are updated according to the adjustment parameters, the absolute pose parameters, and the hierarchical relationship between multiple objects. The specific implementation process can be as follows:

[0088] Update the relative pose parameters of each child object based on the rotation center, rotation angle, absolute pose parameters, and the hierarchical relationship between multiple objects.

[0089] In practical applications, after determining the absolute pose parameters of the reference object, the child or parent object of the reference object, i.e., the first associated object, can be identified based on the hierarchical relationship. Then, the changed pose parameters of the first associated object are determined based on the relative pose parameters, rotation center, and rotation angle offset of the first associated object. The changed pose parameters of the first associated object are then compared with the absolute pose parameters to determine the relative pose parameters of the first associated object relative to the reference object, thereby updating the relative pose parameters of the first associated object. Similarly, the child or parent object of the first associated object, i.e., the second associated object, can be determined. The changed pose parameters of the second associated object are then compared with the relative pose parameters of the first associated object to determine the relative pose parameters of the second associated object relative to the first associated object, thereby updating the relative pose parameters of the second associated object. This process continues in this manner until all objects have been traversed. In this way, only the reference object needs to be adjusted to adjust the pose parameters of all objects accordingly, which greatly improves the efficiency of map adjustment.

[0090] It should be noted that the process of determining the changed posture of the associated object based on the relative posture parameters, rotation center, and rotation angle offset of the associated object is the same as the process of determining the absolute posture parameters of the updated reference object based on the rotation center and rotation angle, and will not be repeated here.

[0091] Optionally, when the rotation request is for multiple objects, the rotation increment of each object is determined based on the rotation center and rotation angle. Based on the updated absolute pose parameters of the reference object obtained based on the rotation increment of the reference object, the relative pose parameters of each child object are updated based on the rotation center, rotation angle, absolute pose parameters, and the hierarchical relationship between the multiple objects. The specific implementation process can be as follows:

[0092] When the reference object is the root object, according to the hierarchical relationship between multiple objects, starting from the child objects of the root object, the variable pose parameters of the current child object are determined based on the relative pose parameters of the current child object and the rotation increment of the current child object. According to the variable pose parameters and the absolute pose parameters of the parent object corresponding to the current child object, the relative pose parameters of the current child object are updated until the last child object.

[0093] If the reference object is the root object, after determining the absolute pose parameters of the root object, the root object's child objects can be identified based on the hierarchical relationship. Then, the child objects' modified pose parameters are obtained based on their relative pose parameters and their rotation increments. The child objects' modified pose parameters are then compared with their absolute pose parameters to determine their relative pose parameters relative to the root object, thereby updating their relative pose parameters. Next, using the child object as its parent, the parent's child objects are identified. The child objects' relative pose parameters are added to the offset to obtain their modified pose parameters. Finally, the child objects' relative pose parameters relative to the parent object are determined based on their relative pose parameters and their rotation increments, thereby updating their relative pose parameters. This process continues in this manner until all objects have been traversed. In this way, using the root object as the reference object, the pose parameters of each object can be rapidly updated based on the parent-child relationship, further improving update efficiency and significantly enhancing the efficiency of map adjustments.

[0094] In one or more optional embodiments of this specification, the rotation request can also be for a specific object in the map to be adjusted. Based on the rotation center, rotation angle, absolute pose parameters, and the hierarchical relationship between multiple objects, the relative pose parameters of each child object are updated. The specific implementation process can be as follows:

[0095] When the rotation request is for a specified object, determining a rotation increment of the specified object based on the rotation center and the rotation angle;

[0096] Determine the changed posture parameters according to the rotation increment of the specified object and the relative posture parameters of the specified object;

[0097] Updates the relative pose parameters of the specified object based on the changed pose parameters and the absolute pose parameters.

[0098] Specifically, the designated object is the object to be rotated; the changed posture parameter is the parameter of the relative posture parameter of the designated object after being rotated according to the rotation increment.

[0099] In actual applications, if the rotation request is for a specified object in the map to be adjusted, the rotation increment of the specified object can be determined based on the rotation center and rotation angle. Furthermore, the rotation increment of the specified object and the relative pose parameters of the specified target object can be calculated according to the preset rotation rules to obtain the changed pose parameters. The changed pose parameters are then compared with the absolute pose parameters to determine the updated relative pose parameters of the specified object. In this way, using the rotation center and rotation angle to determine the rotation increment of each object and then updating the absolute pose parameters can improve the efficiency of updating the absolute pose parameters.

[0100] It should be noted that the process of determining the changed pose parameters based on the rotation increment of the specified object and the relative pose parameters of the specified object is the same as the process of determining the updated absolute pose parameters based on the rotation increment and the absolute pose parameters, and will not be repeated here.

[0101] Step 208: Adjust the pose of the object according to the absolute pose parameters and the relative pose parameters to obtain a target map.

[0102] Specifically, the target map is the adjusted map.

[0103] In practical applications, after updating the absolute pose parameters of the reference object and the relative pose parameters of each object, the poses of each object are updated according to their pose parameters (absolute pose parameters or relative pose parameters), that is, their poses are adjusted. After the adjustment is completed, the target map is obtained.

[0104] In an achievable embodiment of the present specification, in a scenario where a user selects a map to be adjusted from at least one map, the map to be adjusted is adjusted.

[0105] In another achievable embodiment of the present specification, in a scenario where a user has selected a map to be adjusted and a designated map from at least two maps, the map to be adjusted is adjusted during the fusion process of the map to be adjusted and the designated map. That is, before receiving an adjustment request for the map to be adjusted, the process further includes:

[0106] A fusion request for a designated map and a map to be adjusted is received and responded to, and the map to be adjusted is displayed on the designated map so that a user can adjust the map to be adjusted on the designated map, wherein the designated map is larger than the map to be adjusted.

[0107] Specifically, the designated map is a base map, and the map to be adjusted can be added to the designated map, and the area of ​​the designated map is larger than that of the map to be adjusted.

[0108] In actual applications, users use mobile phones, computers, and other terminals to merge a designated map with the map to be adjusted. The execution entity then receives a request to merge the designated map with the map to be adjusted. The execution entity then responds to the request by displaying the map to be adjusted on the designated map for user convenience and then adjusts the map to be adjusted based on the displayed content. This allows for the import of small maps into large maps, allowing for the movement and rotation of small maps, enriching the scenarios and techniques for map adjustment.

[0109] Optionally, after adjusting the pose of the object according to the absolute pose parameters and the relative pose parameters to obtain the target map, the method further includes:

[0110] Perform fusion verification based on the location information of the specified map and the target map;

[0111] When the fusion verification passes, a fusion map is obtained.

[0112] Specifically, the fused map refers to a map obtained by fusing a specified map and a map to be adjusted.

[0113] In actual applications, after obtaining the target map, a fusion check can be performed based on the location information of the target map and the location information of the specified map to check whether the target map and the specified map can be fused. If successful, they are fused to obtain a fused map; if not, the user is prompted that the fusion failed, and the user can continue to adjust the map to be adjusted.

[0114] It should be noted that when performing fusion verification, you can check whether the target map is included in the specified map based on the location information of the target map and the location information of the specified map. If it is included, the fusion verification passes; if it cannot be completely included, the fusion verification fails.

[0115] In addition, you can check whether the object is included in the specified map based on the location information of each object in the target map and the location information of the specified map. If it is included, the fusion verification passes and a fused map is obtained. If it is not completely included, the fusion verification fails, but a fused map can still be obtained, but the object will not be displayed in the fused map.

[0116] Optionally, in the scenario of fusing the specified map with the map to be adjusted, the adjustment request can be a displacement request; the pose parameters include coordinate parameters. Based on the adjustment parameters carried in the adjustment request, the absolute pose parameters of the reference object are updated. The specific implementation process can be as follows:

[0117] Determining a center position of a first center of the map to be adjusted in the specified map based on the adjustment parameter carried in the displacement request;

[0118] Determining an offset according to a center position of the first center and a center position of the second center, wherein the second center is a center point of the specified map;

[0119] The absolute coordinate parameters of the reference object are added to the offset to obtain the updated absolute coordinate parameters of the reference object.

[0120] In actual applications, the adjustment parameters include the position parameters and direction parameters of the first center. Then, based on the position parameters and direction parameters, the center position of the first center in the specified map is determined, that is, the coordinate parameters of the first center in the space where the specified map is located. Then, the center position of the first center is subtracted from the center position of the second center to obtain the offset, and then the absolute coordinate parameters of the reference object are added to the offset to obtain the updated absolute coordinate parameters of the reference object.

[0121] For example, if the first center in the terminal moves with the mouse, and the mouse is pointing to the first center, a ray check is performed based on the mouse position and camera direction to obtain the actual coordinates of the mouse in the 3D scene (specified map), calculate the offset, and add the offset to the absolute coordinate parameters of each root object.

[0122] The offset is determined by the position information of the first center and the second center to make the offset more accurate. The offset is added to the absolute coordinate parameters of the reference object to obtain the updated absolute coordinate parameters. This can simplify the process of updating the absolute coordinate parameters, reduce the amount of data processing, and further improve the efficiency of map adjustment.

[0123] For example, the objects in the global blueprint are composed of a tree. The object at the bottom is called the root object (subroot), which records the coordinate parameters and rotation parameters. Then there are many child objects hanging on the subroot. The child objects record the coordinate parameters and rotation parameters relative to the parent node.

[0124] First, import the small global blueprint into the large global blueprint and calculate the center point of the small global blueprint. The mouse is attached to the center point of the small global blueprint.

[0125] Then, move and adjust, perform ray checking based on the mouse position and camera direction, obtain the actual coordinates of the mouse in the 3D scene, calculate the offset, and add the offset to the coordinates of each subroot. Also, check whether the bounding box of the small global blueprint exceeds the range of the large global blueprint. If it exceeds the range, it will not be placed.

[0126] Next, rotate and adjust. Rotate the coordinates of all subroots according to the center point of the small global blueprint, and rotate the rotation (that is, the orientation) of all subroots themselves. And check whether the bounding box of the small global blueprint exceeds the range of the large global blueprint. If it exceeds the range, it will not be placed.

[0127] Finally, the player uses the mouse to place objects in the global blueprint. Moving and rotating subroots can also be operated.

[0128] The map adjustment method provided by the present application receives an adjustment request for a map to be adjusted, wherein the map to be adjusted contains multiple objects with a hierarchical relationship; updates the absolute posture parameters of a reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects; updates the relative posture parameters of each object according to the adjustment parameters, the absolute posture parameters, and the hierarchical relationship between the multiple objects; adjusts the posture of the object according to the absolute posture parameters and the relative posture parameters to obtain a target map. By using the hierarchical relationship between multiple objects and taking the absolute posture parameters of the reference object as the basis, the posture adjustment of each object on the map to be adjusted is completed, thereby improving the efficiency of posture adjustment, further improving the efficiency of map adjustment, and simplifying the map adjustment process. This is conducive to improving the user's experience in adjusting the map, thereby improving user stickiness.

[0129] The following combined Figure 4 Taking the application of the map adjustment method provided in this application to the game scene as an example, the map adjustment method is further explained. Figure 4 A processing flow chart of a map adjustment method applied to a game scene provided by an embodiment of the present application is shown, which specifically includes the following steps:

[0130] 402: Receive and respond to a fusion request for a designated game map and a game map to be adjusted, and display the game map to be adjusted on the designated game map so that the user can adjust the game map to be adjusted on the designated game map, wherein the designated game map is larger than the game map to be adjusted, and the game map to be adjusted includes multiple objects with a hierarchical relationship.

[0131] Step 404: When the adjustment request is a displacement request, the absolute pose parameters include absolute coordinate parameters, and the relative pose parameters include relative coordinate parameters, determine the center position of the first center of the game map to be adjusted in the specified game map based on the adjustment parameters carried by the displacement request; determine the offset according to the center position of the first center and the center position of the second center, wherein the second center is the center point of the specified game map.

[0132] Step 406: Add the absolute coordinate parameters of the root object to the offset to obtain the updated absolute coordinate parameters of the reference object.

[0133] Step 408: Starting from the child objects of the root object, according to the hierarchical relationship between multiple objects, the variable coordinate parameters of the current child object are determined based on the absolute coordinate parameters and offset of the current child object. The relative coordinate parameters of the current child object are updated based on the variable coordinate parameters and the absolute coordinate parameters of the parent object corresponding to the current child object, until the last child object is reached.

[0134] Step 410: When the adjustment request is a rotation request, determine the rotation center and the rotation angle based on the adjustment parameters carried in the rotation request.

[0135] Step 412: When the rotation request is for multiple objects, determine the rotation increment of each object based on the rotation center and the rotation angle; and update the absolute pose parameters of the reference object based on the rotation increment of the root object.

[0136] Step 414: According to the hierarchical relationship between multiple objects, starting from the child objects of the root object, the variable pose parameters of the current child object are determined based on the absolute pose parameters of the current child object and the rotation increment of the current child object. Based on the variable pose parameters and the absolute pose parameters of the parent object corresponding to the current child object, the relative pose parameters of the current child object are updated until the last child object.

[0137] Optionally, the absolute pose parameters include absolute coordinate parameters and absolute rotation parameters;

[0138] Based on the rotation increment of the root object, the absolute pose parameters of the updated reference object include:

[0139] According to the rotation increment and absolute coordinate parameters of the root object, the updated absolute coordinate parameters of the root object are obtained;

[0140] Get the updated absolute rotation parameter of the root object based on the rotation increment and absolute rotation parameter of the root object.

[0141] Step 416: When the rotation request is for a specified object, determine the rotation increment of the specified object based on the rotation center and the rotation angle; determine the changed posture parameters based on the rotation increment of the specified object and the relative posture parameters of the specified object; and update the relative posture parameters of the specified object based on the changed posture parameters and the absolute posture parameters.

[0142] Step 418: Adjust the object's posture according to the absolute posture parameters and the relative posture parameters to obtain the target game map, and perform a fusion check based on the position information of the specified game map and the target game map; if the fusion check passes, obtain the fused game map.

[0143] The map adjustment method provided in this application uses the hierarchical relationships between multiple objects and the absolute pose parameters of reference objects to complete the pose adjustment of each object on the game map to be adjusted. This improves the efficiency of pose adjustment, further improves the efficiency of game map adjustment, and simplifies the game map adjustment process. This helps to improve the user experience of adjusting the game map, thereby increasing user stickiness.

[0144] Corresponding to the above method embodiment, the present application also provides a map adjustment device embodiment, Figure 5 FIG. 1 shows a schematic diagram of the structure of a map adjustment device provided by an embodiment of the present application. Figure 5 As shown, the device includes:

[0145] A first receiving module 502 is configured to receive an adjustment request for a map to be adjusted, wherein the map to be adjusted includes a plurality of objects having a hierarchical relationship;

[0146] A first updating module 504 is configured to update absolute pose parameters of a reference object according to adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects;

[0147] A second updating module 506 is configured to update the relative pose parameters of each child object according to the adjustment parameter, the absolute pose parameters, and the hierarchical relationship between the multiple objects;

[0148] The adjustment module 508 is configured to adjust the pose of the object according to the absolute pose parameters and the relative pose parameters to obtain a target map.

[0149] Optionally, the reference object is a root object, and the root object is an object corresponding to the first level in the hierarchical relationship.

[0150] Optionally, the adjustment request is a displacement request; the absolute pose parameter includes an absolute coordinate parameter; the relative pose parameter includes a relative coordinate parameter;

[0151] The first update module 504 is further configured to:

[0152] Determine an offset based on an adjustment parameter carried in the displacement request;

[0153] Update the absolute coordinate parameters of the reference object according to the offset;

[0154] The second update module 506 is further configured to:

[0155] The relative coordinate parameters of each object are updated according to the offset, the absolute coordinate parameters, and the hierarchical relationship between multiple objects.

[0156] Optionally, the first updating module 504 is further configured to:

[0157] Adding the absolute coordinate parameters of the reference object to the offset to obtain the updated absolute coordinate parameters of the reference object;

[0158] The second update module 506 is further configured to:

[0159] When the reference object is the root object, according to the hierarchical relationship between multiple objects, starting from the child objects of the root object, the variable coordinate parameters of the current child object are determined based on the absolute coordinate parameters and offset of the current child object. Based on the variable coordinate parameters and the absolute coordinate parameters of the parent object corresponding to the current child object, the relative coordinate parameters of the current child object are updated until the last child object is reached.

[0160] Optionally, the adjustment request is a rotation request;

[0161] The first update module 504 is further configured to:

[0162] Determine the rotation center and rotation angle based on the adjustment parameters carried in the rotation request;

[0163] Update the absolute pose parameters of the reference object according to the rotation center and rotation angle;

[0164] The second update module 506 is further configured to:

[0165] Update the relative pose parameters of each child object based on the rotation center, rotation angle, absolute pose parameters, and the hierarchical relationship between multiple objects.

[0166] Optionally, the first updating module 504 is further configured to:

[0167] In the case where the rotation request is for multiple objects, determining the rotation increment of each object based on the rotation center and the rotation angle;

[0168] According to the rotation increment of the reference object, the updated absolute pose parameters of the reference object are obtained;

[0169] The second update module 506 is further configured to:

[0170] When the reference object is the root object, according to the hierarchical relationship between multiple objects, starting from the child objects of the root object, the variable pose parameters of the current child object are determined based on the relative pose parameters of the current child object and the rotation increment of the current child object. According to the variable pose parameters and the absolute pose parameters of the parent object corresponding to the current child object, the relative pose parameters of the current child object are updated until the last child object.

[0171] Optionally, the absolute pose parameters include absolute coordinate parameters and absolute rotation parameters;

[0172] The first update module 504 is further configured to:

[0173] Obtain updated absolute coordinate parameters of the reference object according to the rotation increment and absolute coordinate parameters of the reference object;

[0174] An updated absolute rotation parameter of the reference object is obtained according to the rotation increment and the absolute rotation parameter of the reference object.

[0175] Optionally, the second updating module 506 is further configured to:

[0176] When the rotation request is for a specified object, determining a rotation increment of the specified object based on the rotation center and the rotation angle;

[0177] Determine the changed posture parameters according to the rotation increment of the specified object and the relative posture parameters of the specified object;

[0178] Updates the relative pose parameters of the specified object based on the changed pose parameters and the absolute pose parameters.

[0179] Optionally, the device further includes a second receiving module configured to:

[0180] A fusion request for a designated map and a map to be adjusted is received and responded to, and the map to be adjusted is displayed on the designated map so that a user can adjust the map to be adjusted on the designated map, wherein the designated map is larger than the map to be adjusted.

[0181] Optionally, the device further includes a verification module configured to:

[0182] Perform fusion verification based on the location information of the specified map and the target map;

[0183] When the fusion verification passes, a fusion map is obtained.

[0184] Optionally, the adjustment request is a displacement request; the posture parameter includes a coordinate parameter;

[0185] The first update module 504 is further configured to:

[0186] Determining a center position of a first center of the map to be adjusted in the specified map based on the adjustment parameter carried in the displacement request;

[0187] Determining an offset according to a center position of the first center and a center position of the second center, wherein the second center is a center point of the specified map;

[0188] The absolute coordinate parameters of the reference object are added to the offset to obtain the updated absolute coordinate parameters of the reference object.

[0189] The map adjustment device provided in this application uses the hierarchical relationships between multiple objects and the absolute pose parameters of the reference objects to complete the pose adjustment of each object on the map to be adjusted. This improves the efficiency of pose adjustment, further improves the efficiency of map adjustment, and simplifies the map adjustment process. This helps to improve the user experience of map adjustment and thus increase user stickiness.

[0190] The above is a schematic scheme of a map adjustment device of this embodiment. It should be noted that the technical solution of the map adjustment device and the technical solution of the map adjustment method described above belong to the same concept. For details not described in detail in the technical solution of the map adjustment device, please refer to the description of the technical solution of the map adjustment method described above. In addition, the various components in the device embodiment should be understood as functional modules that must be established to implement each step of the program flow or each step of the method. The various functional modules are not actual functional divisions or separate definitions. A device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.

[0191] Figure 6 6 shows a block diagram of a computing device according to an embodiment of the present application. Components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and a database 650 is used to store data.

[0192] The computing device 600 also includes an access device 640 that enables the computing device 600 to communicate via one or more networks 660. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0193] In one embodiment of the present application, the above components of the computing device 600 and Figure 6 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 6 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.

[0194] The computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 600 may also be a mobile or stationary server.

[0195] The processor 620 is configured to execute computer executable instructions of the map adjustment method.

[0196] The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the map adjustment method described above are based on the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the map adjustment method described above.

[0197] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which are used in a map adjustment method when executed by a processor.

[0198] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the map adjustment method described above are based on the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the map adjustment method described above.

[0199] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium.

[0200] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0201] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0202] The preferred embodiments of the present application disclosed above are intended only to help illustrate the present application. The optional embodiments do not describe all details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of this application. This application selects and describes these embodiments in detail in order to better explain the principles and practical applications of this application, so that those skilled in the art can better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. A map adjustment method, characterized in that: include: receiving an adjustment request for a map to be adjusted, wherein the map to be adjusted includes a plurality of objects having a hierarchical relationship; updating absolute pose parameters of a reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects; updating the relative pose parameters of each object according to the adjustment parameter, the absolute pose parameter, and the hierarchical relationship between the plurality of objects; The posture of the object is adjusted according to the absolute posture parameters and the relative posture parameters to obtain a target map, wherein the absolute posture parameters and the relative posture parameters at least include: parameters corresponding to the position, posture, and orientation of the object.

2. The method according to claim 1, characterized in that The reference object is a root object, and the root object is an object corresponding to the first level in the hierarchical relationship.

3. The method according to claim 1, characterized in that The adjustment request is a displacement request; the absolute posture parameter includes an absolute coordinate parameter; the relative posture parameter includes a relative coordinate parameter; The updating of the absolute pose parameters of the reference object according to the adjustment parameters carried in the adjustment request includes: determining an offset based on an adjustment parameter carried in the displacement request; updating the absolute coordinate parameters of the reference object according to the offset; The updating of the relative pose parameters of each object according to the adjustment parameter, the absolute pose parameter, and the hierarchical relationship between the plurality of objects includes: The relative coordinate parameters of each sub-object are updated according to the offset, the absolute coordinate parameters, and the hierarchical relationship between the multiple objects.

4. The method according to claim 3, characterized in that The updating of the absolute coordinate parameters of the reference object according to the offset includes: Adding the absolute coordinate parameters of the reference object to the offset to obtain updated absolute coordinate parameters of the reference object; Updating the relative coordinate parameters of each sub-object according to the offset, the absolute coordinate parameters, and the hierarchical relationship between the multiple objects includes: When the reference object is a root object, according to the hierarchical relationship between the multiple objects, starting from the child objects of the root object, the variable coordinate parameters of the current child object are determined based on the absolute coordinate parameters and offset of the current child object, and the relative coordinate parameters of the current child object are updated based on the variable coordinate parameters and the absolute coordinate parameters of the parent object corresponding to the current child object, until the last child object is updated.

5. The method according to claim 1, wherein The adjustment request is a rotation request; The updating of the absolute pose parameters of the reference object according to the adjustment parameters carried in the adjustment request includes: Determining a rotation center and a rotation angle based on the adjustment parameters carried in the rotation request; updating the absolute pose parameters of the reference object according to the rotation center and the rotation angle; The updating of the relative pose parameters of each object according to the adjustment parameter, the absolute pose parameter, and the hierarchical relationship between the plurality of objects includes: The relative pose parameters of each child object are updated according to the rotation center, the rotation angle, the absolute pose parameters, and the hierarchical relationship between the multiple objects.

6. The method according to claim 5, characterized in that The updating of the absolute pose parameters of the reference object according to the rotation center and the rotation angle includes: When the rotation request is for the plurality of objects, determining a rotation increment for each object based on the rotation center and the rotation angle; Obtaining updated absolute pose parameters of the reference object according to the rotation increment of the reference object; The updating of the relative pose parameters of each sub-object according to the rotation center, the rotation angle, the absolute pose parameters, and the hierarchical relationship between the multiple objects includes: When the reference object is a root object, starting from the child objects of the root object, according to the hierarchical relationship between multiple objects, the variable pose parameters of the current child object are determined based on the absolute pose parameters of the current child object and the rotation increment of the current child object. The relative pose parameters of the current child object are updated based on the variable pose parameters and the absolute pose parameters of the parent object corresponding to the current child object, until the last child object is reached.

7. The method according to claim 6, characterized in that The absolute posture parameters include absolute coordinate parameters and absolute rotation parameters; Obtaining updated absolute pose parameters of the reference object according to the rotation increment of the reference object includes: Obtaining updated absolute coordinate parameters of the reference object according to the rotation increment and the absolute coordinate parameters of the reference object; An updated absolute rotation parameter of the reference object is obtained according to the rotation increment and the absolute rotation parameter of the reference object.

8. The method according to claim 5, characterized in that The updating of the relative pose parameters of each sub-object according to the rotation center, the rotation angle, the absolute pose parameters, and the hierarchical relationship between the multiple objects includes: When the rotation request is for a specified object, determining a rotation increment of the specified object based on the rotation center and the rotation angle; Determining a changed posture parameter according to the rotation increment of the designated object and the relative posture parameter of the designated object; The relative pose parameters of the designated object are updated according to the changed pose parameters and the absolute pose parameters.

9. The method according to claim 1, characterized in that Before receiving the adjustment request for the map to be adjusted, the method further includes: A fusion request for a designated map and a map to be adjusted is received and responded to, and the map to be adjusted is displayed on the designated map so that a user can adjust the map to be adjusted on the designated map, wherein the designated map is larger than the map to be adjusted.

10. The method according to claim 9, characterized in that After adjusting the posture of the object according to the absolute posture parameter and the relative posture parameter to obtain the target map, the method further includes: Performing fusion verification based on the location information of the designated map and the target map; When the fusion verification passes, a fusion map is obtained.

11. The method according to claim 9 or 10, characterized in that The adjustment request is a displacement request; the posture parameters include coordinate parameters; The updating of the absolute pose parameters of the reference object according to the adjustment parameters carried in the adjustment request includes: Determining, based on the adjustment parameters carried in the displacement request, a central position of a first center of the map to be adjusted in the designated map; determining an offset according to a center position of the first center and a center position of a second center, wherein the second center is a center point of the designated map; The absolute coordinate parameters of the reference object are added to the offset to obtain updated absolute coordinate parameters of the reference object.

12. A map adjustment device, characterized in that: include: A first receiving module is configured to receive an adjustment request for a map to be adjusted, wherein the map to be adjusted includes a plurality of objects having a hierarchical relationship; a first updating module configured to update absolute pose parameters of a reference object according to the adjustment parameters carried in the adjustment request, wherein the reference object is any one of the multiple objects; a second updating module configured to update the relative pose parameters of each sub-object according to the adjustment parameter, the absolute pose parameter, and the hierarchical relationship between the plurality of objects; The adjustment module is configured to adjust the posture of the object according to the absolute posture parameters and the relative posture parameters to obtain a target map, wherein the absolute posture parameters and the relative posture parameters at least include: parameters corresponding to the position, posture, and orientation of the object.

13. A computing device, characterized in that include: memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the map adjustment method according to any one of claims 1 to 11.

14. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by the processor, the steps of the map adjustment method described in any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Method using multi-scale line element map to make synthetically drawing

    CN107369373A