Scenic spot mobile vending method and system based on quadruped bionic body
By combining pre-contact perception with a hierarchical factor graph optimization model, the problems of state estimation lag and gait response delay of quadruped robots on unstructured terrain are solved, enabling quadruped robots to move stably on complex terrain and perform sales tasks reliably.
Patent Information
- Application Number
- CN202611332379.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
When existing quadruped robots perform mobile vending tasks on unstructured terrain, the unidirectional and open-loop nature of information transmission between the terrain perception, state estimation, and gait control modules leads to lag in state estimation and delay in gait response, making it difficult to guarantee motion stability and the reliability of the vending task.
The system generates pre-contact recognition results by scanning terrain geometry features and 3D force data using a pre-contact sensing unit, constructs a hierarchical factor graph optimization model for joint optimization, dynamically updates the local drivability cost map by combining real-time fusion state estimation results, switches gait modes, and generates motion control commands.
It significantly improves the accuracy and robustness of state estimation, pre-adjusts gait patterns to cope with terrain changes, reduces the risk of aircraft swaying and overturning, and ensures the stability and continuity of sales missions.
Smart Images

Figure CN123177482A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of machine control technology, and in particular to a method and system for mobile vending in scenic areas based on a quadrupedal bionic machine. Background Technology
[0002] With the intelligent upgrading of the cultural tourism industry, quadrupedal bionic robots, with their excellent obstacle-crossing ability and adaptability to complex terrain, have shown broad application prospects in fields such as material transportation, environmental surveying, autonomous inspection, and tourist guidance. In the application scenario of mobile vending in scenic spots, quadrupedal bionic robots need to achieve stable walking and reliable operation on unstructured terrain. In terms of state estimation, multi-source sensor fusion methods based on factor graph optimization are widely used in the pose estimation of quadrupedal robots. By using multi-source perception data such as inertial measurement units, joint encoders, foot odometry, and visual odometry as factor nodes to construct optimization models, the accuracy and robustness of state estimation of robots in complex terrain can be effectively improved. In terms of terrain perception, three-dimensional force signals of the interaction between the sole of the foot and the ground are collected and feature extraction is performed to achieve joint analysis of terrain geometric features and contact force features. In terms of drivability assessment and gait control, existing methods construct a cost map based on elevation information, combine terrain slope, roughness and other indicators to perform drivability analysis, and switch the corresponding gait mode according to terrain conditions.
[0003] However, in existing quadruped robots, terrain perception, state estimation, and gait control are usually treated as relatively independent technical links. Terrain perception focuses on the analysis of three-dimensional force signals of the foot already in contact with the ground or the visual geometric modeling of the environment in front; state estimation focuses on the fusion and optimization of historical and current data from multiple sources of sensors; and gait control is based on a constructed cost map for passive terrain response. This unidirectional and open-loop characteristic of information transmission between modules makes it difficult for terrain perception results to form effective future state constraints at the state estimation level and to form a forward-looking control basis at the gait decision level. When a quadruped bionic robot performs a mobile vending task on unstructured terrain in a scenic area, the local terrain features before the foot makes contact cannot be perceived in time and integrated into state estimation and gait decision. When faced with sudden terrain changes, the robot often has to rely on passive feedback after the foot makes contact to make corrections, resulting in the lag accumulation of state estimation and the response delay of gait switching. It is difficult to ensure both motion stability and the reliability of vending task execution in a dynamically changing scenic environment. Summary of the Invention
[0004] This invention provides a mobile vending method and system for scenic areas based on a quadrupedal bionic body to solve the problems mentioned in the background art.
[0005] To achieve the above objectives, the present invention provides a mobile vending method for scenic areas based on a quadrupedal bionic body, comprising:
[0006] S1: The terrain in front of the foot is scanned by the pre-contact sensing unit on the sole of the quadruped bionic robot to obtain the terrain geometric feature data within a preset range, and the pre-contact recognition result is generated based on the terrain geometric feature data and the three-dimensional force data of the quadruped bionic robot.
[0007] S2: Using the multi-source sensing data of the quadrupedal bionic organism as factor nodes and the pre-contact recognition results as future state prediction factor nodes, a hierarchical factor graph optimization model is constructed, and the factor graph optimization model is jointly optimized and solved to obtain the real-time fusion state estimation result.
[0008] S3: Based on the pre-contact recognition results, the terrain within a preset range in front of the feet of the quadrupedal bionic body is assessed for drivability. The local drivability cost map is dynamically updated based on the assessment results. Combined with the real-time fusion state estimation results, the gait mode is switched and motion control commands are generated.
[0009] S4: Controls the quadrupedal bionic body to perform sales tasks according to motion control commands, and introduces dynamic obstacle avoidance constraints to monitor and update product inventory in real time.
[0010] To address the aforementioned problems, this invention also provides a mobile vending system for scenic areas based on a quadrupedal bionic body, the system comprising:
[0011] The pre-contact sensing module is used to scan the terrain in front of the foot through the pre-contact sensing unit on the sole of the quadrupedal bionic robot, obtain terrain geometric feature data within a preset range, and generate pre-contact recognition results based on the terrain geometric feature data and the three-dimensional force data of the quadrupedal bionic robot.
[0012] The factor graph optimization module is used to construct a hierarchical factor graph optimization model by using the multi-source perception data of the quadrupedal bionic organism as factor nodes and the pre-contact recognition results as future state prediction factor nodes. The module then performs joint optimization on the factor graph optimization model to obtain real-time fusion state estimation results.
[0013] The gait decision control module is used to assess the traversability of the terrain within a preset range in front of the feet of the quadrupedal bionic body based on the pre-contact recognition results, dynamically update the local traversability cost map based on the assessment results, and switch gait modes and generate motion control commands by combining the real-time fusion state estimation results.
[0014] The sales execution module is used to control the quadrupedal bionic body to perform sales tasks according to motion control commands, and introduces dynamic obstacle avoidance constraints to monitor and update the inventory of goods in real time.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] 1. This invention fuses terrain geometric feature data obtained by scanning with a pre-contact sensing unit on the sole of the foot with three-dimensional force data to generate a pre-contact recognition result containing information on the contact state of the terrain ahead. This pre-contact recognition result is then directly embedded as a future state prediction factor node into a hierarchical factor graph optimization model. It is then jointly optimized and solved with multi-source sensing factor nodes such as inertial measurement data, joint encoder data, and visual odometry data. Through the above technical means, this invention ensures that the hierarchical factor graph optimization model is not only constrained by multi-source sensing data at the current and historical times, but also by the expected future contact of the terrain within a preset range in front of the sole. This introduces a forward-looking correction mechanism in the optimization solution of state estimation. This mechanism effectively suppresses the state estimation drift caused by sole slippage or visual feature degradation in unstructured terrain such as step crossings and slope transitions of the quadrupedal bionic organism, significantly improving the accuracy and robustness of the real-time fused state estimation results in complex scenic environments.
[0017] 2. This invention assesses the drivability of the terrain within a preset range in front of the foot based on the pre-contact recognition results. It dynamically updates a local drivability cost map based on the assessment results. In the updated cost map, each grid position is assigned a corrected drivability cost value reflecting the difficulty of passage. This cost value is constrained by both terrain geometric feature parameters and the foot contact state category label. Combining real-time fusion state estimation results, the proportion of grid positions within the preset range in front of the foot whose cost value exceeds the drivability threshold is statistically analyzed and compared with a gait switching threshold. A target gait mode adapted to the terrain conditions is determined from multiple gait modes. The current gait and the target gait are then transitionally interpolated before switching. Through these technical means, this invention enables the gait mode of the quadrupedal bionic body to be adjusted in advance before terrain conditions change, avoiding the delayed response of forced gait switching after foot contact. This significantly reduces the risk of body swaying and tipping during the execution of mobile sales tasks, ensuring the stable operation of the product dispensing mechanism and the continuity of sales operations. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating a mobile vending method for scenic areas based on a quadrupedal bionic body, according to an embodiment of the present invention.
[0019] Figure 2 This is a functional module diagram of a mobile vending system for scenic areas based on a quadrupedal bionic body, provided in an embodiment of the present invention.
[0020] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0022] This application provides a method for mobile vending in scenic areas based on a quadrupedal bionic body. The execution subject of the method includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server and a terminal. In other words, the method for mobile vending in scenic areas based on a quadrupedal bionic body can be executed by software or hardware installed on a terminal device or a server device. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0023] Reference Figure 1 The diagram shown is a flowchart illustrating a mobile vending method for tourist attractions based on a quadrupedal bionic body, according to an embodiment of the present invention. In this embodiment, the mobile vending method for tourist attractions based on a quadrupedal bionic body includes:
[0024] S1: The terrain in front of the foot is scanned by the pre-contact sensing unit on the sole of the quadruped bionic robot to obtain the terrain geometric feature data within a preset range, and the pre-contact recognition result is generated based on the terrain geometric feature data and the three-dimensional force data of the quadruped bionic robot.
[0025] In this embodiment of the invention, a detection signal is emitted to the terrain surface within a preset range in front of the foot by a pre-contact sensing unit on the sole of the four-legged bionic body, and the echo signal reflected by the terrain surface is received.
[0026] It should be specifically noted that the pre-contact sensing unit is installed at the soles of each foot of the quadrupedal bionic body. It uses an active short-range detection sensor to emit detection signals to the terrain surface within a preset range in front of the sole. The detection signal can be an infrared pulse signal or an ultrasonic pulse signal. In this embodiment, infrared pulse signals are preferred because they have good beam directionality and strong resistance to ambient light interference, making them suitable for terrain perception scenarios under varying outdoor lighting conditions in scenic areas. The preset range refers to a fan-shaped area extending along the direction of the body's movement with the current projection position of the sole as the origin. The radial distance of this fan-shaped area is determined according to the detection capability of the pre-contact sensing unit.
[0027] Based on the signal flight time between the detection signal and the echo signal, the distance between the pre-contact sensing unit and each reflection point on the terrain surface is evaluated, and terrain geometric feature data is generated.
[0028] It should be specifically explained that after the pre-contact sensing unit emits a detection signal, it continuously receives the echo signals reflected back from each reflection point on the terrain surface. For each reflection point, the emission time of the detection signal and the reception time of the corresponding echo signal are recorded, and the time difference between the two is calculated. This time difference is the round-trip flight time of the signal between the pre-contact sensing unit and the reflection point. Based on the speed of signal propagation in the air and the round-trip flight time, the one-way distance between the pre-contact sensing unit and each reflection point is calculated. Specifically, the round-trip flight time is multiplied by the signal propagation speed and then divided by two. The result is the distance between the pre-contact sensing unit and the corresponding reflection point.
[0029] Based on the distance values between each reflection point and the pre-contact sensing unit within a preset range, and combining the azimuth and pitch angle information of each reflection point relative to the pre-contact sensing unit, the distance values of each reflection point are converted into spatial three-dimensional coordinates relative to the sole of the foot. The azimuth and pitch angle information is provided by the beam pointing detection element built into the pre-contact sensing unit. The spatial three-dimensional coordinates of all reflection points within the preset range are collected into a three-dimensional coordinate point set. Based on the spatial distribution pattern of the three-dimensional coordinate point set, a terrain contour elevation map within the preset range is constructed. The terrain contour elevation map is the terrain geometric feature data, which includes at least the local slope value, local undulation value, and local elevation variance value of each location within the preset range relative to the sole of the foot.
[0030] Three-dimensional force signals between the foot and the ground are collected by three-dimensional force sensors on the sole of the quadrupedal bionic body. The statistical feature values of the three-dimensional force signals in the time domain are extracted to obtain three-dimensional force data.
[0031] It should be specifically noted that while collecting terrain geometric feature data, a three-dimensional force sensor integrated into the sole of the quadrupedal bionic body collects three-dimensional force signals between the sole and the ground. The three-dimensional force sensor is installed at the connection between the sole and the leg structure and can simultaneously detect the force components of the sole in three orthogonal directions of the sole coordinate system. The three-dimensional force sensor continuously collects three-dimensional force signals during the interaction between the sole and the ground according to a preset sampling frequency, and outputs the collected analog signals as a digital three-dimensional force signal sequence after analog-to-digital conversion.
[0032] In one feasible implementation, the preset sampling frequency of the three-dimensional force sensor is determined based on the gait cycle of the quadrupedal bionic body and the frequency band range of the foot contact impact signal. When the quadrupedal bionic body moves in a walking gait in a scenic environment, the duration of a single gait cycle is approximately 0.5 to 1.0 seconds. The impact signal generated at the moment of contact between the foot and the ground is mainly concentrated in the frequency band of 50Hz to 500Hz. According to the Nyquist sampling theorem, the sampling frequency of the three-dimensional force sensor is set to 1000Hz. This sampling frequency can completely capture the impact peak and change details in the foot contact force signal, ensuring the accuracy of peak detection and variance estimation in the subsequent calculation of time-domain statistical feature values. When the quadrupedal bionic body moves in a running gait, its gait cycle is shortened, and the highest frequency component of the foot contact impact signal increases. At this time, the sampling frequency can be increased to 2000Hz to match the higher frequency signal acquisition requirements. The specific values of 1000Hz and 2000Hz can be adaptively adjusted by those skilled in the art within the above range according to the actual application scenario.
[0033] The three-dimensional force signal sequence is pre-processed by filtering to eliminate high-frequency noise and low-frequency drift components in the signal. In this embodiment, a bandpass filter is used to filter the three-dimensional force signal sequence to retain the signal components in the frequency band related to the plantar contact event. After filtering, the statistical feature values of the three-dimensional force signal in the time domain are extracted. Specifically, for the three-dimensional force signal sequence within a preset time window, the mean, peak value, variance and signal energy value of each directional component are calculated respectively, and the above statistical feature values are combined into plantar three-dimensional force feature data.
[0034] Based on the terrain geometric feature data and three-dimensional force data, the pre-contact state category is determined by a preset contact state discrimination rule, and a pre-contact recognition result is generated.
[0035] It should be specifically explained that the terrain geometric feature data and the foot three-dimensional force feature data are time-aligned to ensure that their time bases are consistent. After time alignment, based on the terrain parameters at each location in the terrain geometric feature data and the contact force feature parameters in the foot three-dimensional force feature data, the pre-contact state category between the foot and the terrain surface is determined by a preset contact state discrimination rule. The contact state discrimination rule includes contact state category labels corresponding to different combinations of terrain parameters and different force feature parameters. The terrain parameters at each location in the terrain geometric feature data are jointly matched with the foot three-dimensional force feature data to determine the pre-contact state category of each location within a preset range in front of the current foot, and a pre-contact recognition result is generated.
[0036] S2: Using the multi-source sensing data of the quadrupedal bionic organism as factor nodes and the pre-contact recognition results as future state prediction factor nodes, a hierarchical factor graph optimization model is constructed, and the factor graph optimization model is jointly optimized and solved to obtain the real-time fusion state estimation result.
[0037] In this embodiment of the invention, the multi-source sensing data of the quadrupedal bionic organism are respectively associated with each factor node in the preset factor graph layer, and observation constraint relationships are constructed at each factor node according to the data type.
[0038] It should be specifically noted that the multi-source sensing data includes acceleration and angular velocity data collected by the inertial measurement unit, angle and angular velocity data of each joint collected by the joint encoder, three-dimensional force signals collected by the plantar three-dimensional force sensor, and pose increment data output by the visual odometry. In the bottom layer of the factor graph, a corresponding factor node is assigned to each type of sensing data. The inertial measurement data is associated with the inertial factor node, the joint encoder data is associated with the joint motion factor node, the plantar three-dimensional force data is associated with the plantar force factor node, and the visual odometry data is associated with the visual odometry factor node. At each factor node, the observation constraint relationship of the factor node is constructed according to the measurement model of the corresponding sensing data type. The observation constraint relationship is used to describe the mathematical relationship between the sensing data associated with the factor node and the state variable to be estimated.
[0039] In one feasible implementation, the factor graph's bottom layer includes inertial factor nodes, joint motion factor nodes, plantar force factor nodes, and visual odometry factor nodes. An inertial measurement unit (IMU) collects acceleration and angular velocity data of the quadrupedal bionic body in three-dimensional space at a sampling frequency of 400Hz; a joint encoder collects rotation angle and rotational speed information of each joint at a sampling frequency of 1000Hz; a plantar three-dimensional force sensor collects three-dimensional force signals when the foot contacts the ground at a sampling frequency of 1000Hz; and the visual odometry outputs image frames and pose increment data from a binocular camera at a frequency of 30Hz. At each factor node, observation constraints are constructed based on the measurement model of the corresponding sensor: inertial pre-integration constraints are constructed at the inertial factor nodes, forward kinematic constraints at the joint motion factor nodes, contact force constraints at the plantar force factor nodes, and relative pose constraints at the visual odometry factor nodes. Each factor node is time-aligned according to its respective sensor's timestamp, collectively forming the constraint system of the factor graph's bottom layer.
[0040] The terrain geometric features and contact state category information from the pre-contact identification results are configured together as future state prediction factor nodes in the top layer of the factor graph;
[0041] At the future state predictor node, construct the predictive constraint relationship between the expected foot contact state of the quadrupedal bionic organism at future time and the terrain geometry.
[0042] It needs to be specifically explained that terrain geometric feature information and contact state category information are extracted from the pre-contact recognition results. The terrain geometric feature information includes the local slope value, local undulation value, and local elevation variance value of each position relative to the foot within the preset range. The contact state category information includes the contact state category label corresponding to each position. The terrain geometric feature information and contact state category information are used together as input parameters for the future state prediction factor node. At the future state prediction factor node, a predictive constraint relationship between the expected contact state of the foot of the quadrupedal bionic organism at future time and the terrain geometric features is constructed. The predictive constraint relationship is used to describe the constraint conditions of the current pre-contact recognition results on the contact state between the foot and the ground at future time.
[0043] In one feasible implementation, the top layer of the factor graph includes a future state prediction factor node, which is configured above each of the bottom layer factor nodes in the factor graph. A hierarchical association is established between the factor graph and the bottom layer factor nodes through the factor edges. The pre-contact recognition result, after being timestamped, is input into the future state prediction factor node in the form of an information matrix. The information matrix includes terrain geometric feature information and contact state category information for each position within a preset range in front of the foot. The preset range is a fan-shaped area extending along the forward direction with the current foot projection position as the center. Its radial distance is set to twice the foot swing phase step length. This value is determined based on the walking gait of the quadrupedal bionic body in a scenic environment. In the prediction constraint relationship constructed at the future state prediction factor node, the prediction time window from the current time to the future time is set to one gait cycle. The prediction constraint relationship is the residual equation between the expected foot contact state variable at the future time and the pre-contact recognition result of the future state prediction factor node. After solving the residual equation, the future state prediction result is generated. This result uses the terrain geometric feature information and contact state category information in the information matrix as constraint boundaries.
[0044] The observation constraints of the bottom-level factor nodes and the prediction constraints of the top-level future state prediction factor nodes are linked hierarchically through factor edges in the factor graph. Specifically, the hierarchical linking involves passing the prediction residuals output by the top-level factor nodes to the joint optimization cost function of the bottom-level factor nodes in the form of prior constraints.
[0045] Based on the observation constraints and prediction constraints, a hierarchical relationship is established between the bottom-level factor nodes and the top-level factor nodes. The bottom-level and top-level factor graphs are combined to generate a hierarchical factor graph optimization model.
[0046] It should be specifically explained that hierarchical association is implemented by using the prediction constraint relationship of the top-level factor node as the prior constraint term in the optimization solution process of the bottom-level factor node. Based on hierarchical association, the bottom and top levels of the factor graph are combined to generate a hierarchical factor graph optimization model. This hierarchical factor graph optimization model estimates the motion state at the current moment at the bottom level and predicts the foot contact state at the future moment at the top level. The bottom and top levels achieve bidirectional information transmission through hierarchical association.
[0047] In the hierarchical factor graph optimization model, the current motion state variables at the bottom layer of the factor graph and the expected foot contact state variables at the top layer of the factor graph at the future time are combined into a set of variables to be optimized.
[0048] Specifically, it is necessary to extract the current motion state variables corresponding to each factor node in the bottom layer of the factor graph, including the three-dimensional position, three-dimensional attitude, three-dimensional velocity, and three-dimensional angular velocity of the quadrupedal bionic organism in the world coordinate system; and extract the expected contact state variables of the feet at the future time corresponding to the future state prediction factor nodes in the top layer of the factor graph, including the expected landing point position and expected contact force direction of each foot at the future time. The current motion state variables and the expected contact state variables of the feet at the future time are combined to generate a set of variables to be optimized.
[0049] The observation residuals of the observation constraint relationship and the observation residuals of the prediction constraint relationship are weighted according to the weight coefficients of each level of the factor graph to generate a joint optimization cost function.
[0050] Specifically, based on the observation constraint relationships constructed at each factor node in the bottom layer of the factor graph, the observation residuals corresponding to each observation constraint relationship are calculated. For each observation constraint relationship, the variable value of the current iteration step is substituted into the measurement model of the observation constraint relationship, and the difference between the output value of the measurement model and the actual observed value is calculated. This difference is the observation residual. Based on the prediction constraint relationships constructed at the future state prediction factor nodes in the top layer of the factor graph, the prediction residuals corresponding to the prediction constraint relationships are calculated. The variable value of the current iteration step is substituted into the prediction constraint relationships, and the deviation between the predicted state and the actual pre-contact recognition result is calculated. This deviation is the prediction residual. All observation residuals and prediction residuals are weighted and combined according to the weight coefficients of each level of the factor graph to generate a joint optimization cost function. The weight coefficients are preset according to the noise characteristics and confidence level of the sensors corresponding to each factor node.
[0051] For the joint optimization cost function, in some embodiments, this application preferably constructs the joint optimization cost function by weighting the observation residuals of each factor node in the bottom layer of the factor graph and the prediction residuals of the future state prediction factor nodes in the top layer of the factor graph according to their respective information matrices.
[0052] Specifically, the joint optimization cost function is expressed as:
[0053] ;
[0054] in, For all variables to be optimized in the set of variables to be optimized, This refers to the set of all factor nodes in the bottom layer of the factor graph. For the first The observed residuals of each factor node, For the first The subset of local variables associated with each factor node For the first The observed covariance matrix of each factor node. This refers to the set of future state prediction factor nodes in the top layer of the factor graph. For the first The subset of local variables associated with each predictor node For the first The prediction covariance matrix of each predictor node. The squared Mahalanobis distance is represented by the inverse matrix of the observed covariance matrix and the predicted covariance matrix, which is the aforementioned weight matrix. The covariance matrix of each factor node is obtained in advance based on the noise characteristics of the corresponding sensor and the confidence level of the pre-contact sensing unit.
[0055] In one feasible implementation, the weight coefficients of each level of the factor graph are pre-calibrated based on the noise characteristics and confidence levels of the sensing sensors corresponding to each factor node. Specifically, each weight coefficient is represented in the form of a covariance matrix. In the bottom layer of the factor graph, the covariance matrix of the visual odometry factor node is set as a diagonal matrix, and its diagonal elements are determined based on the positioning accuracy calibration value of the visual odometry in a scenic environment with rich textures. The corresponding weight coefficient is the inverse of the covariance matrix. The covariance matrix of the joint motion factor node is set based on the angle measurement noise of the joint encoder, and its angle noise standard deviation calibration value is 0.01 radians. The corresponding weight coefficient is the inverse of the covariance matrix. The covariance matrix of the inertial factor node is set based on the noise density parameters of the accelerometer and gyroscope of the inertial measurement unit, and its acceleration noise density calibration value is... The angular velocity noise density calibration value is The corresponding weighting coefficient is the inverse of the covariance matrix; the covariance matrix of the foot force factor node is set according to the force measurement noise calibration value of the three-dimensional force sensor, and its force measurement noise standard deviation is 0.5N, and the corresponding weighting coefficient is the inverse of the covariance matrix.
[0056] In the top layer of the factor graph, the covariance matrix of the future state prediction factor node is set according to the terrain detection confidence of the pre-contact sensing unit. The diagonal elements of its covariance matrix are greater than the diagonal elements of the covariance matrix of each factor node at the bottom layer. This makes the weight of the future state prediction factor node in the joint optimization lower than the weight of each factor node at the bottom layer, so as to balance the uncertainty of the prediction information. The specific values of the above weight coefficients are determined by those skilled in the art in actual application scenarios through sensor calibration experiments.
[0057] The joint optimization cost function is solved iteratively, and the current fused state estimation result and the future state prediction result are output, including:
[0058] The initial values of the motion state variables at the current moment and the initial values of the expected contact state variables of the foot at future moments in the set of variables to be optimized are used to form the variable vector of the current iteration step;
[0059] Calculate the Jacobian matrix of the observation residual and prediction residual in the joint optimization cost function at the variable vector of the current iteration step, and calculate the residual vector of each residual term at the variable vector of the current iteration step;
[0060] In one feasible implementation, taking the visual odometry factor node in the bottom layer of the factor graph as an example, the observation residual of this factor node is the difference between the pose increment observation value output by the visual odometry and the pose increment estimate value calculated based on the variable vector of the current iteration step. Assuming that the subset of local variables associated with the visual odometry factor node in the variable vector of the current iteration step includes the world coordinate system pose variables of the quadrupedal bionic organism at two adjacent image frames, the observation residual vector of the visual odometry factor node has a dimension of 6, corresponding to the three-dimensional position residual and the three-dimensional attitude angle residual, respectively. In the current iteration step... The residual vector calculated at the given location consists of three-dimensional position residuals with components of 0.05 m, -0.02 m, and 0.03 m, and three-dimensional attitude angle residuals with components of 0.01 radians, -0.005 radians, and 0.008 radians. The Jacobian matrix is a matrix of partial derivatives of the residual vector with respect to each state variable in the local variable subset. It has a dimension of 6 rows by 12 columns. Each element is obtained by taking the first-order partial derivative of the visual odometry measurement model at the variable vector of the current iteration step. The values of each partial derivative in the Jacobian matrix are updated as the iteration step changes, and it is used to map the residual vector to the variable increment space.
[0061] Based on the weight matrix composed of the Jacobian matrix, residual vector, and weight coefficients of each level of the factor graph, a variable increment solution equation is constructed, and the variable increment vector of the current iteration step is obtained by solving it.
[0062] In one feasible implementation, the variable incremental solution equation can be expressed as:
[0063] ;
[0064] in, This is the variable increment vector for the current iteration step. The Jacobian matrix is formed by concatenating the residual terms at the variable vector in the current iteration step. The weight matrix is composed of the weight coefficients of each factor node. This is the residual vector formed by concatenating the residual terms at the variable vector of the current iteration step.
[0065] Taking a factor graph with 20 observation residuals at the bottom layer and a variable vector dimension of 12 in the current iteration step as an example, the Jacobian matrix... The dimension is 20 rows by 12 columns, and its elements are obtained by taking the first-order partial derivatives of each residual term with respect to the variable vector of the current iteration step; the weight matrix This is a 20x20 diagonal matrix, where the diagonal elements correspond to the weight coefficients of each factor node. The specific values of each weight coefficient are determined based on the noise characteristics of the corresponding sensor. Specifically, the weight coefficient for the visual odometry factor is 0.5, for the inertia factor it is 0.3, for the joint motion factor it is 0.2, and for the top-level prediction factor it is 0.1. The residual vector... This is a 20-dimensional column vector containing the current values of each observed residual and predicted residual. Substituting this matrix into the normal equation and solving the variable increment solution equation yields the variable increment vector for the current iteration step. Each component of the vector represents the adjustment amount required for each variable in the current iteration step. The variable increment vector is superimposed on the variable vector of the current iteration step to update the estimated value of each state variable.
[0066] Update the variable vector of the current iteration step according to the variable increment vector of the current iteration step, and use the updated variable vector as the variable vector of the current iteration step of the next iteration. Repeat the iteration operation until the change in the function value of the joint optimization cost function between the previous iteration step and the next iteration step meets the preset convergence condition, and then terminate the iteration.
[0067] The motion state variable at the current moment in the updated variable vector at the end of the iteration is used as the fusion state estimation result at the current moment, and the expected contact state variable of the foot at the future moment is used as the state prediction result at the future moment.
[0068] It should be specifically noted that the Jacobian matrix represents the partial derivative of each residual term with respect to each variable in the current iteration step variable vector. The variable increment solution equation is the normal equation of a nonlinear least squares problem. The current iteration step variable vector is updated according to the current iteration step variable increment vector. The updated variable vector is used as the current iteration step variable vector for the next iteration. The above operations of calculating the Jacobian matrix, residual vector, solving variable increment vector, and updating variable vector are repeated until the change in function value of the joint optimization cost function between the previous iteration step and the next iteration step meets the preset convergence condition and the iteration terminates. The current motion state variable in the updated variable vector at the time of iteration termination is used as the current fusion state estimation result, and the future foot expected contact state variable in the updated variable vector at the time of iteration termination is used as the future state prediction result.
[0069] The current fusion state estimation result and the future state prediction result are temporally correlated, and the future state prediction result is fed back to the bottom layer of the factor graph at the next time as a prior constraint to generate the real-time fusion state estimation result.
[0070] It should be specifically explained that, according to the preset fusion period, the expected contact state variable of the foot end in the future state prediction result is fed back to the bottom layer of the factor graph at the next moment, as a prior constraint term for the optimization solution of the bottom layer of the factor graph at the next moment, so that the state estimation at the next moment can be based on the prediction of the future contact state at the current moment, and the state estimation result after temporal correlation and feedback is output as the real-time fusion state estimation result.
[0071] Regarding the current state estimation result and the future state prediction result, in some embodiments of this application, the current state estimation result preferably includes the current position estimate, attitude estimate, velocity estimate, and angular velocity estimate of the quadrupedal bionic body in the world coordinate system. The position estimate is a three-dimensional vector containing position components in the three-dimensional axis directions in the world coordinate system, in meters; the attitude estimate is a three-dimensional vector containing roll, pitch, and yaw components, in radians; the velocity estimate is a three-dimensional vector containing velocity components in three directions in the world coordinate system, in meters per second; and the angular velocity estimate is a three-dimensional vector containing angular velocity components in three directions in the body coordinate system, in radians per second.
[0072] The current state estimation result is directly output from the current motion state variable in the variable vector updated after the termination iteration step when the joint optimization cost function converges. The future state prediction result includes the expected landing point position of each foot of the quadrupedal bionic organism in the world coordinate system and the expected contact force direction of each foot in the future. The expected landing point position is a three-dimensional position coordinate in meters, and the expected contact force direction is a three-dimensional direction vector. The future state prediction result is directly output from the expected contact state variable of the foot in the variable vector updated after the termination iteration step when the joint optimization cost function converges. The current state estimation result is used for gait mode switching decision, and the future state prediction result is fed back to the bottom layer of the factor graph of the next moment as a prior constraint.
[0073] S3: Based on the pre-contact recognition results, the terrain within a preset range in front of the feet of the quadrupedal bionic body is assessed for drivability. The local drivability cost map is dynamically updated based on the assessment results. Combined with the real-time fusion state estimation results, the gait mode is switched and motion control commands are generated.
[0074] In this embodiment of the invention, terrain geometric feature parameters of each position within a preset range in front of the foot are extracted from the pre-contact recognition result, and contact state category labels corresponding to each position are extracted according to the contact state category information in the pre-contact recognition result.
[0075] It should be noted that the terrain geometric feature parameters include the local slope value, local undulation value, and local elevation variance value of each location relative to the foot. The contact state category label is used to characterize the terrain contact state category to which each location belongs, including stable support category, local slippage category, and unreachable category.
[0076] Based on the terrain geometric feature parameters and corresponding contact state category labels of each location, evaluate the initial accessibility score of each location within the preset range;
[0077] It should be specifically explained that the local slope value, local undulation value, and local elevation variance value of each location are weighted and summed according to a preset weighting coefficient. Then, the weighted summation result is corrected according to the contact state category label corresponding to each location to generate an initial accessibility score for each location. The higher the initial accessibility score, the more suitable the location is for passage.
[0078] In one feasible implementation, the initial drivability score is obtained by weighted summation of the local slope, local undulation, and local elevation variance values at each location, followed by correction using a contact state category label. Taking a location within a preset range in front of the foot as an example, with a local slope of 15 degrees, a local undulation of 0.03 meters, and a local elevation variance of 0.002 square meters, and corresponding preset weighting coefficients of 0.5, 0.3, and 0.2 respectively, the weighted summation result for this location is 15 × 0.5 + 0.03 × 0.3 + 0.002 × 0.2 = 7.509. The contact state category label for this location is stable support, with a correction coefficient of 1.0. Therefore, the initial drivability score for this location is 7.50. 9 × 1.0 = 7.509. If the local slope value of another location is 28 degrees, the local undulation value is 0.12 meters, and the local elevation variance value is 0.015 square meters, the weighted sum is 28 × 0.5 + 0.12 × 0.3 + 0.015 × 0.2 = 14.039. The contact state category label corresponding to this location is local slippage, and its correction coefficient is 0.6. Therefore, the initial drivability score is 14.039 × 0.6 = 8.423. The smaller the initial drivability score, the better the drivability conditions at that location. The above weighting coefficients and correction coefficients were pre-calibrated by those skilled in the art based on the actual characteristics of the scenic area's terrain and the movement capabilities of the quadrupedal bionic organism.
[0079] The initial accessibility score is compared with the preset accessibility grading threshold, and each location is assigned to the corresponding accessibility grading category to generate an accessibility grading identifier.
[0080] It should be specifically noted that the preset accessibility classification thresholds include a first threshold and a second threshold, wherein the first threshold is greater than the second threshold. When the initial accessibility score is greater than or equal to the first threshold, the location is classified into the first accessibility level category; when the initial accessibility score is less than the first threshold but greater than or equal to the second threshold, the location is classified into the second accessibility level category; when the initial accessibility score is less than the second threshold, the location is classified into the third accessibility level category. Accessibility level identifiers for each location are generated based on the above comparison results.
[0081] In one feasible implementation, the preset accessibility classification thresholds include a first threshold and a second threshold, where the first threshold is greater than the second threshold. Taking the terraced terrain of a scenic area as an example, the first threshold is set to 12.0, and the second threshold is set to 6.0. When the initial accessibility score of a certain location is less than or equal to the second threshold of 6.0, for example, the initial accessibility score of a flat asphalt road location is 3.5, it indicates that the terrain at that location is flat and unobstructed. This location is then classified into the first accessibility level category, corresponding to the optimal accessibility level. When the initial accessibility score of a certain location is greater than the second threshold of 6.0 and less than or equal to the first threshold of 12.0, for example, the initial accessibility score of a gentle slope is 8.5, it indicates that the location has a certain slope and undulation, and the location is classified into the second accessibility level category, corresponding to the medium accessibility level. When the initial accessibility score of a certain location is greater than the first threshold of 12.0, for example, the initial accessibility score of a step edge or steep slope is 15.0, it indicates that the terrain of the location is severely undulating, and the location is classified into the third accessibility level category, corresponding to the unaccessible level. The first threshold and the second threshold can be pre-calibrated by those skilled in the art based on the movement ability of the quadrupedal bionic body and the terrain characteristics of the scenic area. Different terrain types of scenic areas correspond to different threshold combinations.
[0082] Based on the accessibility level identifier of each location, generate the basic access cost corresponding to each location;
[0083] The basic passage value is corrected based on the contact status category label to obtain the corrected passage value.
[0084] It should be specifically noted that the basic accessibility value corresponds one-to-one with the accessibility level category. The first accessibility level category corresponds to the first basic accessibility value, the second accessibility level category corresponds to the second basic accessibility value, and the third accessibility level category corresponds to the third basic accessibility value. The first basic accessibility value is less than the second basic accessibility value, and the second basic accessibility value is less than the third basic accessibility value. The basic accessibility value is corrected according to the contact state category label corresponding to each position. When the contact state category label is a stable support category, the basic accessibility value remains unchanged. When the contact state category label is a local slip category, the basic accessibility value is increased by a first correction amount. When the contact state category label is an inaccessible category, the basic accessibility value is increased by a second correction amount, and the second correction amount is greater than the first correction amount, thus generating the corrected accessibility value for each position.
[0085] Based on the corrected accessibility cost of each location, update the cost of the corresponding location in the current local accessibility cost map.
[0086] The updated cost values at each location are written into the corresponding grid positions of the current local traversability cost map in spatial coordinate order to generate the updated local traversability cost map.
[0087] It should be specifically noted that the current local accessibility cost map is a grid map centered on the current position of the quadrupedal bionic body. Each grid position stores the corresponding access cost value. Based on the corrected access cost value of each position, the cost value of the corresponding position in the current local accessibility cost map is updated. The corrected access cost value of each position is written into the grid position corresponding to the spatial coordinates of each position in the current local accessibility cost map, overwriting the original cost value of that grid position, and generating an updated local accessibility cost map.
[0088] Obtain the current fusion state estimate from the real-time fusion state estimate results, and extract the cost value corresponding to each grid position within a preset range in front of the foot from the updated local drivability cost map;
[0089] It should be specifically noted that the current fused state estimate includes the current position estimate, attitude estimate, velocity estimate, and angular velocity estimate of the quadrupedal bionic body in the world coordinate system.
[0090] Based on the cost value of each grid position, count the number of grid positions in the preset range in front of the sole whose cost value exceeds the preset passage threshold;
[0091] Based on the ratio of the number of grid positions to the total number of grid positions, the target gait pattern is matched in a preset gait pattern set;
[0092] It should be specifically explained that the ratio is compared with a preset gait switching threshold. Based on the comparison result, the target gait mode is determined from a preset gait mode set. The preset gait mode set includes at least crawling gait mode, diagonal gait mode, and jumping gait mode. When the ratio is less than the first gait switching threshold, the diagonal gait mode is selected as the target gait mode; when the ratio is greater than or equal to the first gait switching threshold and less than the second gait switching threshold, the crawling gait mode is selected as the target gait mode; when the ratio is greater than or equal to the second gait switching threshold, the jumping gait mode is selected as the target gait mode.
[0093] Based on the current fusion state estimate, the foot trajectory parameters corresponding to the target gait pattern are corrected to generate the target foot swing trajectory.
[0094] It should be specifically explained that the foot trajectory parameters include the foot position sequence and time registration sequence of each foot in the swing phase and the support phase. Based on the position estimate and attitude estimate in the current fusion state estimate, the foot position sequence in the foot trajectory parameters is corrected to eliminate the influence of body attitude changes on the foot trajectory and generate the target foot swing trajectory.
[0095] The gait transition difference between the current foot swing trajectory and the target foot swing trajectory is calculated to generate a transition period foot swing trajectory sequence, which controls the foot movement. After the transition period ends, the target gait mode is switched to generate motion control commands.
[0096] Specifically, the foot swing trajectory of the current gait mode being executed at the current moment is interpolated with the target foot swing trajectory according to a preset time registration relationship to generate a transition period foot swing trajectory sequence. During the transition period, the movement of each foot of the quadrupedal bionic body is controlled according to the transition period foot swing trajectory sequence, so that the body smoothly transitions from the current gait mode to the target gait mode. After the transition period ends, the body switches to the target gait mode. Based on the foot trajectory parameters corresponding to the target gait mode and the estimated value of the fusion state at the current moment, the joint angle sequence of each foot in the swing phase and the support phase is generated. Motion control commands are generated based on the joint angle sequence and output to the joint actuators of each joint of the quadrupedal bionic body.
[0097] S4: Controls the quadrupedal bionic body to perform sales tasks according to motion control commands, and introduces dynamic obstacle avoidance constraints to monitor and update product inventory in real time.
[0098] In this embodiment of the invention, the quadrupedal bionic body is controlled to move toward the target store according to a planned path based on motion control commands.
[0099] It needs to be specifically explained that the motion control command is parsed into a foot-planned trajectory and a body movement speed command. The foot-planned trajectory includes the position sequence and time registration information of each foot in the swing phase and the support phase. The body movement speed command includes the body's expected forward speed, expected turning angular velocity, and expected lateral speed in the world coordinate system. Based on the foot-planned trajectory and the body movement speed command, the quadrupedal bionic body is controlled to move towards the target sales point along the planned path. The planned path is pre-generated by the scenic area's global path planning module based on the starting position and the position of the target sales point.
[0100] The system acquires real-time terrain information in front of the feet during movement, and combines it with dynamic obstacle avoidance constraints to adjust the movement state of the quadrupedal bionic body in real time until it reaches the target sales point.
[0101] It should be specifically explained that the quadrupedal bionic body's perception system acquires real-time terrain information in front of its feet. The perception system includes a pre-contact perception unit, a visual sensor, and a lidar. When an obstacle is detected in the terrain in front of the feet, a local obstacle avoidance turning yaw angle is generated based on the obstacle's position relative to the body and the speed command in the motion control command. Specifically, the relative azimuth angle of the obstacle in the body's coordinate system is determined, and the turning angle of the body deviating from the current direction of travel is calculated based on the relative azimuth angle. This turning angle is then superimposed on the speed command in the motion control command as a local obstacle avoidance turning yaw angle, controlling the quadrupedal bionic body to turn around the obstacle. After bypassing the obstacle, path tracking control enables the body to return to the planned path and continue moving towards the target sales point.
[0102] The dynamic obstacle avoidance constraints include minimum safe distance constraints and maximum approach speed constraints between the quadrupedal bionic body and each obstacle. When the real-time distance between the quadrupedal bionic body and an obstacle is detected to be less than a preset safe distance threshold, an obstacle avoidance response is triggered. The body maintains a safe distance from the obstacle by reducing its speed and adjusting its direction of travel. The dynamic obstacle avoidance constraints are updated in each step cycle based on the obstacle distribution information obtained in real time by the sensing system until the quadrupedal bionic body reaches the target sales point.
[0103] Upon reaching the target sales point, the quadrupedal bionic body is controlled to perform a parking action to sell the goods. After the sale is completed, a sales record is generated, and the current inventory information of the goods is updated based on the sales record.
[0104] It should be specifically explained that the parking action includes gradually reducing the traveling speed to zero and adjusting each supporting leg of the quadrupedal bionic body to a stable supporting configuration, so that the body remains stationary. After the body is stably parked, according to the sales task type in the motion control command, the corresponding delivery control signal is called. The sales task types include two types: mobile roving sales and fixed-point sales. The sales record includes the type of goods sold, the quantity sold, the time of sale, and the location of the corresponding sales point. According to the sales record, the current inventory information is updated. Specifically, the quantity of goods sold this time is deducted from the inventory count to generate an updated inventory record, which is then stored in the local storage unit and the remote server.
[0105] like Figure 2 The diagram shown is a functional block diagram of a mobile vending system for scenic areas based on a quadrupedal bionic body, provided by an embodiment of the present invention.
[0106] The mobile vending system 100 for scenic areas based on a quadrupedal bionic body described in this invention can be installed in an electronic device. Depending on the functions implemented, the mobile vending system 100 for scenic areas based on a quadrupedal bionic body may include a pre-contact sensing module 101, a factor graph optimization module 102, a gait decision control module 103, and a vending execution module 104. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and are stored in the memory of the electronic device.
[0107] In this embodiment, the functions of each module / unit are as follows:
[0108] The pre-contact sensing module 101 is used to scan the terrain in front of the foot through the pre-contact sensing unit on the sole of the quadrupedal bionic robot, obtain terrain geometric feature data within a preset range, and generate pre-contact recognition results based on the terrain geometric feature data and the three-dimensional force data of the quadrupedal bionic robot.
[0109] The factor graph optimization module 102 is used to construct a hierarchical factor graph optimization model by using the multi-source perception data of the quadrupedal bionic organism as factor nodes and the pre-contact recognition results as future state prediction factor nodes, and to perform joint optimization and solution on the factor graph optimization model to obtain real-time fusion state estimation results.
[0110] The gait decision control module 103 is used to assess the traversability of the terrain within a preset range in front of the feet of the quadrupedal bionic body based on the pre-contact recognition results, dynamically update the local traversability cost map based on the assessment results, and switch the gait mode and generate motion control commands in combination with the real-time fusion state estimation results.
[0111] The sales execution module 104 is used to control the quadrupedal bionic body to perform sales tasks according to motion control commands, and introduces dynamic obstacle avoidance constraints to monitor and update the inventory of goods in real time.
[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of modules is merely a logical functional division, and there may be other division methods in actual implementation.
[0113] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0114] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0115] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0116] The embodiments of this application can acquire and process relevant data based on an artificial intelligence technology. Artificial intelligence is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A mobile vending method for scenic areas based on a quadrupedal bionic body, characterized in that: The method includes: S1: The terrain in front of the foot is scanned by the pre-contact sensing unit on the sole of the quadruped bionic robot to obtain the terrain geometric feature data within a preset range, and the pre-contact recognition result is generated based on the terrain geometric feature data and the three-dimensional force data of the quadruped bionic robot. S2: Using the multi-source sensing data of the quadrupedal bionic organism as factor nodes and the pre-contact recognition results as future state prediction factor nodes, a hierarchical factor graph optimization model is constructed, and the factor graph optimization model is jointly optimized and solved to obtain the real-time fusion state estimation result. S3: Based on the pre-contact recognition results, the terrain within a preset range in front of the feet of the quadrupedal bionic body is assessed for drivability. The local drivability cost map is dynamically updated based on the assessment results. Combined with the real-time fusion state estimation results, the gait mode is switched and motion control commands are generated. S4: Controls the quadrupedal bionic body to perform sales tasks according to motion control commands, and introduces dynamic obstacle avoidance constraints to monitor and update product inventory in real time.
2. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 1, characterized in that, The pre-contact sensing unit on the sole of the quadrupedal bionic robot scans the terrain in front of the foot to obtain terrain geometric feature data within a preset range. Based on the terrain geometric feature data and the three-dimensional force data of the quadrupedal bionic robot, a pre-contact recognition result is generated, including: The quadrupedal bionic body emits detection signals to the terrain surface within a preset range in front of the foot through the pre-contact sensing unit on the sole of the foot, and receives the echo signals reflected from the terrain surface. Based on the signal flight time between the detection signal and the echo signal, the distance between the pre-contact sensing unit and each reflection point on the terrain surface is evaluated, and terrain geometric feature data is generated. Three-dimensional force signals between the foot and the ground are collected by three-dimensional force sensors on the sole of the quadrupedal bionic body. The statistical feature values of the three-dimensional force signals in the time domain are extracted to obtain three-dimensional force data. Based on the terrain geometric feature data and three-dimensional force data, the pre-contact state category is determined by a preset contact state discrimination rule, and a pre-contact recognition result is generated.
3. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 1, characterized in that, The method of constructing a hierarchical factor graph optimization model by using multi-source sensory data of a quadrupedal bionic organism as factor nodes and pre-contact recognition results as future state prediction factor nodes includes: The multi-source sensing data of the quadrupedal bionic organism are associated with each factor node in the bottom layer of the preset factor graph, and observation constraint relationships are constructed at each factor node according to the data type. The terrain geometric features and contact state category information from the pre-contact identification results are configured together as future state prediction factor nodes in the top layer of the factor graph; At the future state predictor node, construct the predictive constraint relationship between the expected foot contact state of the quadrupedal bionic organism at future time and the terrain geometry. Based on the observation constraints and prediction constraints, a hierarchical relationship is established between the bottom-level factor nodes and the top-level factor nodes. The bottom-level and top-level factor graphs are combined to generate a hierarchical factor graph optimization model.
4. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 3, characterized in that, The joint optimization solution of the factor graph optimization model yields real-time fusion state estimation results, including: In the hierarchical factor graph optimization model, the current motion state variables at the bottom layer of the factor graph and the expected foot contact state variables at the top layer of the factor graph at the future time are combined into a set of variables to be optimized. The observation residuals of the observation constraint relationship and the observation residuals of the prediction constraint relationship are weighted according to the weight coefficients of each level of the factor graph to generate a joint optimization cost function. The joint optimization cost function is solved iteratively, and the current fusion state estimation result and the future state prediction result are output. The current fusion state estimation result and the future state prediction result are temporally correlated, and the future state prediction result is fed back to the bottom layer of the factor graph at the next time as a prior constraint to generate the real-time fusion state estimation result.
5. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 4, characterized in that, The iterative solution of the joint optimization cost function, outputting the current fused state estimation result and the future state prediction result, includes: The initial values of the motion state variables at the current moment and the initial values of the expected contact state variables of the foot at future moments in the set of variables to be optimized are used to form the variable vector of the current iteration step; Calculate the observation residual and prediction residual in the joint optimization cost function, the Jacobian matrix at the variable vector of the current iteration step, and calculate the residual vector of each residual at the variable vector of the current iteration step; Based on the weight matrix composed of the Jacobian matrix, residual vector, and weight coefficients of each level of the factor graph, a variable increment solution equation is constructed, and the variable increment vector of the current iteration step is obtained by solving it. Update the variable vector of the current iteration step according to the variable increment vector of the current iteration step, and use the updated variable vector as the variable vector of the current iteration step of the next iteration. Repeat the iteration operation until the change in the function value of the joint optimization cost function between the previous iteration step and the next iteration step meets the preset convergence condition, and then terminate the iteration. The motion state variable at the current moment in the updated variable vector at the end of the iteration is used as the fusion state estimation result at the current moment, and the expected contact state variable of the foot at the future moment is used as the state prediction result at the future moment.
6. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 1, characterized in that, The assessment of the drivability of the terrain within a preset range in front of the feet of the quadrupedal bionic body based on the pre-contact recognition results includes: The terrain geometric feature parameters of each position within a preset range in front of the foot are extracted from the pre-contact recognition results, and the contact state category label corresponding to each position is extracted based on the contact state category information in the pre-contact recognition results. Based on the terrain geometric feature parameters and corresponding contact state category labels of each location, evaluate the initial accessibility score of each location within the preset range; The initial accessibility score is compared with the preset accessibility grading threshold, and each location is assigned to the corresponding accessibility grading category to generate an accessibility grading identifier.
7. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 6, characterized in that, The step of dynamically updating the local mobility cost map based on the evaluation results includes: Based on the accessibility level identifier of each location, generate the basic access cost corresponding to each location; The basic passage value is adjusted based on the contact status category label to obtain the adjusted passage value. Based on the corrected accessibility cost of each location, update the cost of the corresponding location in the current local accessibility cost map. The updated cost values at each location are written into the corresponding grid positions of the current local traversability cost map in spatial coordinate order to generate the updated local traversability cost map.
8. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 7, characterized in that, The process of combining real-time fusion state estimation results, switching gait modes, and generating motion control commands includes: Obtain the current fusion state estimate from the real-time fusion state estimate results, and extract the cost value corresponding to each grid position within a preset range in front of the foot from the updated local drivability cost map; Based on the cost value of each grid position, count the number of grid positions within a preset range in front of the sole whose cost value exceeds a preset passage threshold; Based on the ratio of the number of grid positions to the total number of grid positions, the target gait pattern is matched in a preset gait pattern set; Based on the current fusion state estimate, the foot trajectory parameters corresponding to the target gait pattern are corrected to generate the target foot swing trajectory. The gait transition difference between the current foot swing trajectory and the target foot swing trajectory is calculated to generate a transition period foot swing trajectory sequence, which controls the foot movement. After the transition period ends, the target gait mode is switched to generate motion control commands.
9. The mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 1, characterized in that, The process of controlling a quadrupedal bionic body to perform sales tasks according to motion control commands, and introducing dynamic obstacle avoidance constraints, and real-time monitoring and updating of product inventory includes: The quadrupedal bionic body is controlled to move toward the target store according to the planned path, based on motion control commands. Real-time acquisition of terrain information in front of the feet during movement, combined with dynamic obstacle avoidance constraints, real-time control of the movement state of the quadrupedal bionic body until the target sales point is reached. Upon reaching the target sales point, the quadrupedal bionic body is controlled to perform a parking action to sell the goods. After the sale is completed, a sales record is generated, and the current inventory information is updated based on the sales record.
10. A mobile vending system for scenic areas based on a quadrupedal bionic body, characterized in that: The system for implementing the mobile vending method for scenic areas based on a quadrupedal bionic body as described in claim 1 includes: The pre-contact sensing module is used to scan the terrain in front of the foot through the pre-contact sensing unit on the sole of the quadrupedal bionic robot, obtain terrain geometric feature data within a preset range, and generate pre-contact recognition results based on the terrain geometric feature data and the three-dimensional force data of the quadrupedal bionic robot. The factor graph optimization module is used to construct a hierarchical factor graph optimization model by using the multi-source perception data of the quadrupedal bionic organism as factor nodes and the pre-contact recognition results as future state prediction factor nodes. The module then performs joint optimization on the factor graph optimization model to obtain real-time fusion state estimation results. The gait decision control module is used to assess the traversability of the terrain within a preset range in front of the feet of the quadrupedal bionic body based on the pre-contact recognition results, dynamically update the local traversability cost map based on the assessment results, and switch gait modes and generate motion control commands by combining the real-time fusion state estimation results. The sales execution module is used to control the quadrupedal bionic body to perform sales tasks according to motion control commands, and introduces dynamic obstacle avoidance constraints to monitor and update the inventory of goods in real time.
