Control method and control device for vehicle, controller and vehicle
By detecting the inclination angle and distance of the box, the length of the outriggers is automatically adjusted to achieve the stability and safety of the box during loading and unloading, solving the problem of difficulty in ensuring the stability and safety of the box in the existing technology, and improving the efficiency of box unloading. automation and efficiency.
Patent Information
- Application Number
- CN202210443115.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-25
AI Technical Summary
It is difficult to ensure the stability and safety of the existing box-body removable vehicles during the loading and unloading process. Especially when loading and unloading high-precision equipment, multiple people are required to cooperate and accidents are easily caused by communication problems.
Design a vehicle control method and device that automatically adjusts the extension length of the outriggers by detecting the inclination and distance of the box to ensure that the box reaches a preset parallel state when detached, and realizes closed-loop adjustment through solenoid valve control to ensure that the box Stay level during unloading, reducing reliance on personnel.
It improves the safety of the entire vehicle when the box is detached, automatically determines and adjusts the box status, and realizes automatic unloading of the box, reducing reliance on personnel and improving overall efficiency.
Smart Images

Figure CN114802127B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle control, and in particular to a control method and control device for a vehicle, a controller and a vehicle. Background Art
[0002] Vehicles with loadable and unloadable boxes are divided into three categories: the arm hook type, the leg telescopic and leveling type, and the crane hoisting type. The three common types of vehicles with loadable and unloadable boxes currently have problems with the communication between the chassis and the upper body, as well as the stability and safety of the box during loading and unloading. When the box is equipped with high-precision equipment, it is necessary to keep the box as horizontal as possible during loading and unloading. At this time, a structure with legs is required. At this stage, when the box with legs is detached, the relative position and status of the box and the chassis require the cooperation of the driver and 2-3 observers. The operation is cumbersome and can easily lead to accidents due to communication problems. Therefore, it is urgent to propose a technical solution to solve the above-mentioned technical problems in the existing technology. Summary of the Invention
[0003] The purpose of the embodiments of the present invention is to provide a control method and control device for a vehicle, a controller and a vehicle, so as to solve the above-mentioned technical problems in the prior art.
[0004] In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a control method for a vehicle, the vehicle includes a body, a box and a plurality of legs, the box is arranged above the body and is detachably connected to the body, the plurality of legs can be extended and retracted in the height direction of the box, the plurality of legs include a left front leg, a right front leg, a left rear leg and a right rear leg, the left front leg, the right front leg, the left rear leg and the right rear leg are fixedly installed on the left front, right front, left rear and right rear of the box respectively, the control method includes: determining whether a leg extension signal is received; obtaining the length of the box, the width of the box, the position of the lower surface of the box in the box A first angle formed with the horizontal plane in the length direction and a second angle formed with the horizontal plane in the width direction of the box by the lower surface of the box; determining a target extension length relationship of the multiple legs according to the length, width, the first angle and the second angle, wherein the target extension length relationship is a preset relationship that needs to be satisfied between the extension lengths of the multiple legs when the lower surface of the box reaches a state parallel to the horizontal plane; performing initial leveling on the multiple legs according to the target extension length relationship; and after the initial leveling, performing closed-loop control on the extension lengths of the multiple legs after the initial leveling is completed until the preset separation condition of the box is met.
[0005] In an embodiment of the present invention, determining a target extension length relationship of a plurality of legs based on the length, width, first angle, and second angle includes: determining a height relationship of the front end, rear end, left end, and right end of the lower surface of the box relative to a horizontal plane based on the first angle and the second angle; when the height relationship is that the front end is higher than the rear end and the left end is higher than the right end, the target extension length relationship includes: L2=L1+W|tanB|; L3=L1+L|tanA|; and L4=L1+W|tanB|+L|tanA|; when the height relationship is that the front end is higher than the rear end and the left end is lower than the right end, the target extension length relationship includes: L1=L2+W|tanB|; L3=L2+W|tanB|+L|tanA|; and L4=L2+L|tanB| nA|; When the height relationship is that the front end is lower than the rear end and the left end is higher than the right end, the target extension length relationship includes: L1=L3+L|tanA|; L2=L3+L|tanA|+W|tanB|; and L4=L3+W|tanB|; When the height relationship is that the front end is lower than the rear end and the left end is lower than the right end, the target extension length relationship includes: L1=L4+W|tanB|+L|tanA|; L2=L4+L|tanA|; and L3=L4+W|tanB|; wherein, L1 is the extension length of the left front leg, L2 is the extension length of the right front leg, L3 is the extension length of the left rear leg, L4 is the extension length of the right rear leg, L is length, W is width, A is the first angle, and B is the second angle.
[0006] In an embodiment of the present invention, initial leveling of multiple legs is performed according to a target extension length relationship, including: determining, according to the target extension length relationship, extension length differences corresponding to a reference leg among the multiple legs and the remaining legs among the multiple legs except the reference leg, wherein the reference leg is the leg with the smallest extension length in the target extension length relationship, and the extension length difference is the difference between the extension lengths of the remaining legs in the target extension length relationship and the extension length of the reference leg; controlling the multiple legs to extend until all the legs touch the ground; and after all the legs touch the ground, controlling the remaining legs to continue extending until the extension lengths of the remaining legs after touching the ground are equal to the corresponding extension length differences.
[0007] In an embodiment of the present invention, the remaining legs are controlled to continue to extend until the extended lengths of the remaining legs after touching the ground are all equal to the corresponding extended length differences, including: obtaining a first initial distance between a plurality of preset points on the upper surface of the vehicle body and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body when the plurality of legs all touch the ground, wherein the plurality of preset points are set corresponding to the remaining legs, and the plurality of preset points are respectively set adjacent to the corresponding legs; and controlling the remaining legs to continue to extend and obtaining a first real-time distance between the plurality of preset points and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body, until the difference between the first real-time distance and the first initial distance is equal to the corresponding extended length difference of the remaining legs.
[0008] In an embodiment of the present invention, the preset disengagement conditions include: the extended length of the multiple legs after completing the initial leveling is greater than the preset height value; and the maximum deviation between the extended lengths of the multiple legs after completing the initial leveling is less than the preset deviation value.
[0009] In the embodiment of the present invention, the preset deviation value ranges from 2 mm to 10 mm.
[0010] In an embodiment of the present invention, the vehicle further includes a connecting angle piece, which is arranged on the vehicle body and protrudes from the upper surface of the vehicle body. The connecting angle piece is configured to connect the box body and the vehicle body, and the preset height value is the height of the connecting angle piece protruding from the upper surface of the vehicle body.
[0011] In an embodiment of the present invention, the vehicle further comprises a plurality of leg extension solenoid valves, each corresponding to one of the plurality of legs, and performing closed-loop control on the extension lengths of the plurality of legs after completing initial leveling until a preset separation condition of the box is satisfied, comprising: initializing the values of control signals of the plurality of leg extension solenoid valves; outputting the control signals to the corresponding plurality of leg extension solenoid valves respectively to control the extension speeds of the plurality of legs; and obtaining the extension lengths of the plurality of legs after completing initial leveling in real time, and performing the following steps: determining a maximum deviation between the extension lengths of the plurality of legs after completing initial leveling; if the maximum deviation is less than a preset deviation value, determining whether the extension lengths of the plurality of legs after completing initial leveling are all greater than a preset height value; if the extension lengths of the plurality of legs after completing initial leveling are all greater than the preset height value, terminating the closed-loop control; if the maximum deviation is greater than or equal to the preset deviation value, sorting the extension lengths of the plurality of legs after completing initial leveling; determining control signal adjustment values of the plurality of leg extension solenoid valves according to the sorting result; and adjusting the control signal values of the plurality of leg extension solenoid valves respectively according to the control signal adjustment values.
[0012] In an embodiment of the present invention, the value of the control signal is a current value or a voltage value; initializing the value of the control signal of the multiple leg extension solenoid valves includes: initializing the value of the control signal to a preset current value or a preset voltage value.
[0013] In the embodiment of the present invention, the preset current value ranges from 200 mA to 800 mA, and the preset voltage value ranges from 6 V to 24 V.
[0014] In an embodiment of the present invention, real-time acquisition of the extended lengths of the plurality of legs after completion of the initial leveling includes: acquiring a second initial distance between a plurality of preset points on the upper surface of the vehicle body and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body when the initial leveling is completed, wherein the plurality of preset points are arranged corresponding to the plurality of legs, and the plurality of preset points are respectively arranged adjacent to the corresponding legs; acquiring a second real-time distance between the plurality of preset points and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body after completion of the initial leveling; and determining the difference between the second real-time distance and the second initial distance as the extended length of the plurality of legs after completion of the initial leveling.
[0015] In an embodiment of the present invention, control signal adjustment values of multiple leg extension solenoid valves are determined based on the sorting results, including: selecting any one leg from the multiple legs as a reference leg; determining the difference between the sorting sequence number of the extension length of the reference leg after completing the initial leveling and the sorting sequence numbers of the extension lengths of the multiple legs after completing the initial leveling; and determining the control signal adjustment values of the multiple leg extension solenoid valves based on the sorting type and the difference; wherein the type is sorting from large to small or sorting from small to large.
[0016] In an embodiment of the present invention, control signal adjustment values of multiple leg extension solenoid valves are determined respectively according to the sorting type and the difference, including: obtaining the control signal fine-tuning value; determining the product of the difference and the control signal fine-tuning value; when the sorting type is from large to small, determining the product as the control signal adjustment value; and when the sorting type is from small to large, determining the opposite of the product as the control signal adjustment value.
[0017] In an embodiment of the present invention, when the value of the control signal is a current value, the range of the control signal fine-tuning value is 0 mA to 20 mA; when the value of the control signal is a voltage value, the range of the control signal fine-tuning value is 0.1 V to 0.5 V.
[0018] In an embodiment of the present invention, the control method for a vehicle further includes: determining whether a leg retraction signal is received; and when the leg retraction signal is received, controlling multiple legs to retract at the same speed until the lower surface of the box touches the ground; wherein the leg retraction signal is triggered in response to a user confirming that the box has been detached.
[0019] A second aspect of the present invention provides a controller configured to execute the control method for a vehicle according to the aforementioned embodiment.
[0020] A third aspect of the present invention provides a control device for a vehicle, the vehicle comprising a vehicle body, a box body and a plurality of legs, the box body being arranged above the vehicle body and detachably connected to the vehicle body, the plurality of legs being capable of extending and retracting in the height direction of the box body, the plurality of legs comprising a left front leg, a right front leg, a left rear leg and a right rear leg, the left front leg, the right front leg, the left rear leg and the right rear leg being fixedly mounted on the left front, right front, left rear and right rear of the box body, respectively, the control device comprising: an inclination detection device configured to detect a first angle formed by the lower surface of the box body with a horizontal plane in a length direction of the box body and a second angle formed by the lower surface of the box body with a horizontal plane in a width direction of the box body; and a controller of the aforementioned embodiment.
[0021] In an embodiment of the present invention, the control apparatus for a vehicle further includes: a distance detection device configured to detect the distance between a preset point on the upper surface of the vehicle body and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body.
[0022] In an embodiment of the present invention, the tilt detection device includes a tilt sensor, and the distance detection device includes a radar.
[0023] A fourth aspect of the present invention provides a vehicle, comprising: a vehicle body; a box body, arranged above the vehicle body and detachably connected to the vehicle body; a plurality of legs, fixedly mounted on the box body, the plurality of legs being capable of extending and retracting in the height direction of the box body, the plurality of legs comprising a left front leg, a right front leg, a left rear leg and a right rear leg, the left front leg, the right front leg, the left rear leg and the right rear leg being fixedly mounted on the left front, right front, left rear and right rear of the box body respectively; and the control device for the vehicle of the aforementioned embodiment.
[0024] The embodiment of the present invention uses the above-mentioned technical solution to improve the safety of the entire vehicle when the box is detached, automatically judge the safety of the process of getting off the vehicle and detaching the box, so that the box can be kept in a horizontal state as much as possible during the box unloading process, automatically adjust to a state that meets the box detachment conditions and automatically realize the box unloading, reduce dependence on personnel, and improve overall efficiency.
[0025] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following detailed description, they are used to explain the embodiments of the present invention, but do not constitute a limitation of the embodiments of the present invention. In the accompanying drawings:
[0027] Figure 1 is a flow chart of a control method 100 for a vehicle according to an embodiment of the present invention;
[0028] Figure 2A Shown is a schematic diagram of the overall structure of a vehicle according to an embodiment of the present invention;
[0029] Figures 2B to 2D Shown is a schematic diagram of a partial structure of a vehicle according to an embodiment of the present invention;
[0030] Figure 3 2 is a schematic structural diagram of a control device 200 for a vehicle according to an embodiment of the present invention;
[0031] Figure 4 3 is a schematic structural diagram of a vehicle 300 according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following describes the specific implementation of the embodiment of the present invention in detail with reference to the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the embodiment of the present invention and is not used to limit the embodiment of the present invention.
[0033] It should be noted that if the implementation methods of this application involve directional indications (such as up, down, left, right, front, back, etc.), such directional indications are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0034] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of this application, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features specified as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0035] like Figure 1As shown, in an embodiment of the present invention, a control method 100 for a vehicle is provided. The vehicle includes a vehicle body, a box body, and a plurality of legs. The box body is disposed above the vehicle body and is detachably connected to the vehicle body. The plurality of legs are capable of extending and retracting in the height direction of the box body. The plurality of legs include a left front leg, a right front leg, a left rear leg, and a right rear leg. The left front leg, the right front leg, the left rear leg, and the right rear leg are fixedly mounted on the left front, right front, left rear, and right rear of the box body, respectively. The control method 100 for the vehicle includes the following steps:
[0036] Step S110: Determine whether an outrigger extension signal has been received. Specifically, the outrigger extension signal is triggered, for example, in response to an operator pressing an outrigger extension button or turning on an outrigger extension switch. The outrigger extension signal is, for example, a signal instructing the outriggers to extend to meet a preset separation condition for the box. The outrigger extension signal is, for example, an electrical signal.
[0037] Step S120: Obtain the length of the box, the width of the box, the first angle formed by the lower surface of the box in the length direction of the box with the horizontal plane, and the second angle formed by the lower surface of the box in the width direction of the box with the horizontal plane. Specifically, the first angle is, for example, equal to the angle formed by any long side, i.e., the left side or the right side, on the lower surface of the box and the horizontal plane. Those skilled in the art will appreciate that multiple straight line segments parallel to the long sides can be formed on the lower surface of the box, and the angles formed by these straight line segments with the horizontal plane are also the first angle. Similarly, the second angle is, for example, equal to the angle formed by any short side, i.e., the front side or the rear side, on the lower surface of the box and the horizontal plane. Those skilled in the art will appreciate that multiple straight line segments parallel to the short sides can be formed on the lower surface of the box, and the angles formed by these straight line segments with the horizontal plane are also the second angle. The first and second angles can be obtained, for example, by using an inclination detection device, such as a tilt sensor, which is, for example, mounted on the bottom surface of the box.
[0038] Step S130: Determine the target extension length relationship of the multiple legs based on the length of the box, the width of the box, the first angle, and the second angle. The target extension length relationship is a preset relationship that needs to be satisfied between the extension lengths of the multiple legs when the lower surface of the box reaches a state parallel to the horizontal plane. It is also worth mentioning that in the embodiment of the present invention, if the starting time point of the "extension length" is not limited, such as the "extension length of the multiple legs reaching a state parallel to the horizontal plane" here, then the "extension length" refers to how much the corresponding leg is extended compared to the fully retracted state; if the starting time point of the "extension length" is limited, such as the "extension length after touching the ground" and the "extension length after initial leveling" mentioned below, the starting time points are respectively limited to the time of touching the ground and the initial leveling state, then it refers to how much the corresponding leg is extended compared to the starting time point.
[0039] Step S140: Initially leveling the multiple legs according to the target extension length relationship.
[0040] Step S150: After initial leveling, the extended lengths of the multiple legs are closed-loop controlled until the preset separation conditions of the box are met. The "extended length after initial leveling" here refers to the extension of the corresponding legs compared to the initial leveling state.
[0041] Specifically, the target extension length relationship of the plurality of legs is determined according to the length of the box, the width of the box, the first angle, and the second angle. That is, step S130 includes, for example:
[0042] (a1) Determine the height relationships of the front end, rear end, left end, and right end of the lower surface of the box relative to the horizontal plane based on the first angle and the second angle.
[0043] (a2) When the height relationship is that the front end is higher than the rear end and the left end is higher than the right end, the target extension length relationships include: L2 = L1 + W|tanB|; L3 = L1 + L|tanA|; and L4 = L1 + W|tanB| + L|tanA|.
[0044] (a3) When the height relationship is that the front end is higher than the rear end and the left end is lower than the right end, the target extension length relationships include: L1 = L2 + W|tanB|; L3 = L2 + W|tanB| + L|tanA|; and L4 = L2 + L|tanA|.
[0045] (a4) When the height relationship is that the front end is lower than the rear end and the left end is higher than the right end, the target extension length relationship includes: L1 = L3 + L|tanA|; L2 = L3 + L|tanA| + W|tanB|; and L4 = L3 + W|tanB|.
[0046] (a5) When the height relationship is that the front end is lower than the rear end and the left end is lower than the right end, the target extension length relationship includes: L1 = L4 + W|tanB| + L|tanA|; L2 = L4 + L|tanA|; and L3 = L4 + W|tanB|.
[0047] Wherein, L1 is the extended length of the left front leg, L2 is the extended length of the right front leg, L3 is the extended length of the left rear leg, L4 is the extended length of the right rear leg, L is the length of the box, W is the width of the box, A is the first angle, and B is the second angle. Since this is a target extension length relationship, which is a preset relationship that must be satisfied between the extended lengths of the multiple legs when the lower surface of the box is parallel to the horizontal plane, the "extended length of the left front leg," "extended length of the right front leg," "extended length of the left rear leg," and "extended length of the right rear leg" here refer to how much the corresponding legs need to be extended compared to their fully retracted state to reach a state parallel to the horizontal plane.
[0048] It is worth noting here that, in the embodiment of the present invention, since the distance between the legs and the box is very small compared to the length and width of the box, the distance between the left front leg and the left rear leg and the distance between the right front leg and the right rear leg are considered to be equal to the length of the box. Similarly, the distance between the left front leg and the right front leg and the distance between the left rear leg and the right rear leg are considered to be equal to the width of the box. The target extension length relationship determined in (a2) to (a5) is calculated based on the above premise.
[0049] Specifically, the multiple legs are initially leveled according to the target extension length relationship, that is, step S140 includes, for example:
[0050] (b1) Determining, based on the target extension length relationship, extension length differences between a reference leg among the plurality of legs and the remaining legs among the plurality of legs excluding the reference leg. The reference leg is the leg with the smallest extension length in the target extension length relationship. The extension length differences are the differences between the extension lengths of the remaining legs in the target extension length relationship and the extension length of the reference leg. For example, when the height relationship is that the front end is higher than the rear end and the left end is higher than the right end, the target extension length relationship includes: L1=L4+W|tanB|+L|tanA|; L2=L4+L|tanA|; and L3=L4+W|tanB|. It can be determined that the extension length L4 of the right rear leg in the corresponding target extension length relationship in this case is the minimum extension length. Therefore, in this case, the right rear leg is the reference leg, and the remaining legs except the right rear leg include the left front leg, the right front leg and the left rear leg. Among them, the extension length difference corresponding to the left front leg is L1-L4, that is, W|tanB|+L|tanA|, the extension length difference corresponding to the right front leg is L2-L4, that is, L|tanA|, and the extension length difference corresponding to the left rear leg is L3-L4, that is, W|tanB|. The method for determining the difference in the extended lengths of the reference leg and the remaining legs is similar when the height relationship is that the front end is higher than the rear end and the left end is lower than the right end, when the front end is lower than the rear end and the left end is higher than the right end, and when the front end is lower than the rear end and the left end is lower than the right end. No further details will be given here.
[0051] (b2) Controlling the extension of multiple legs until all legs touch the ground. That is, for any one leg, the leg will be controlled to extend until it touches the ground and then stop extending the leg; for all legs, the legs will be controlled to stop extending after they just touch the ground. In specific implementation, for example, multiple legs can be synchronously controlled to start extending at the same speed until all legs just touch the ground and then stop extending the legs. And
[0052] (b3) After all of the legs have touched the ground, the remaining legs are controlled to continue extending until the extended lengths of the remaining legs after touching the ground are all equal to the corresponding extension length differences. Specifically, the extended lengths of the legs during the corresponding time period can be determined, for example, by the value of the control signal output to the corresponding leg extension solenoid valve, the duration of the control signal, and the corresponding relationship between the control signal value and the extension speed. The extended lengths of the legs during the corresponding time period can also be obtained, for example, by detecting the change in the distance between a preset point on the upper surface of the vehicle body adjacent to the legs in a direction perpendicular to the upper surface of the vehicle body and the lower surface of the box body using a distance detection device such as an ultrasonic radar. Specifically, for example, the change in the distance between the preset point corresponding to the leg in a direction perpendicular to the upper surface of the vehicle body and the lower surface of the box body during the corresponding time period can be directly used as the extended length of the legs during the corresponding time period. The "extended length after touching the ground" herein refers to how much the corresponding leg has extended compared to when it touched the ground.
[0053] More specifically, the remaining legs are controlled to continue extending until the extended lengths of the remaining legs after touching the ground are all equal to the corresponding extended length differences. That is, step (b3) includes, for example:
[0054] (b31) Obtaining the first initial distance between a plurality of preset points on the upper surface of the vehicle body and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body when the plurality of legs are in contact with the ground. The plurality of preset points are, for example, set corresponding to the remaining legs, and the plurality of preset points are, for example, set adjacent to the corresponding legs. For example, four preset points can be set on the upper surface of the vehicle body, and the four preset points correspond to the left front leg, the right front leg, the left rear leg and the right rear leg, respectively, and are set adjacent to each other, so that the extension length of the corresponding leg in the corresponding time period can be characterized by the change in the distance between the four preset points and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body. Specifically, for example, the change in the distance of the preset point corresponding to the leg can be directly used as the extension length of the leg in the corresponding time period. And
[0055] (b32) Control the remaining legs to continue extending and obtain the first real-time distance between multiple preset points and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body, until the difference between the first real-time distance and the first initial distance is equal to the extension length difference of the corresponding remaining legs.
[0056] Specifically, the preset disengagement conditions include, for example: the extended lengths of the multiple legs after completing the initial leveling are all greater than the preset height value, and the maximum deviation between the extended lengths of the multiple legs after completing the initial leveling is less than the preset deviation value.
[0057] More specifically, the preset deviation value ranges from 2 mm to 10 mm, for example. Specifically, determining that the maximum deviation between the extended lengths of the multiple legs after initial leveling is less than the preset deviation value as one of the preset conditions for the box to disengage ensures that one of the necessary conditions for the box to disengage is met: the lower surface of the box is as parallel to the horizontal plane as possible.
[0058] Furthermore, the vehicle further comprises a connecting angle piece, for example, which is provided on the vehicle body and protrudes from the upper surface of the vehicle body, and is configured to connect the box body and the vehicle body.
[0059] More specifically, the preset height value can be, for example, the height at which the corner connection piece protrudes from the upper surface of the vehicle body. Specifically, determining that the extended length of each of the multiple legs after initial leveling is greater than the preset height value as one of the preset conditions for box disengagement ensures that one of the necessary conditions for box disengagement is met: the lower surface of the box is higher than the corner connection piece.
[0060] Furthermore, the vehicle may further include, for example, multiple outrigger extension solenoid valves, multiple outrigger retraction solenoid valves, and multiple hydraulic cylinders, each corresponding to one of the multiple outriggers. Specifically, each outrigger is provided with a corresponding outrigger extension solenoid valve, a corresponding outrigger retraction solenoid valve, and a hydraulic cylinder to respectively control the extension and retraction of the corresponding outrigger. Controlling the value, i.e., the magnitude, of the control signal output to the outrigger extension solenoid valve can control the extension speed of the corresponding hydraulic cylinder, thereby controlling the extension speed of the corresponding outrigger. Controlling the value, i.e., the magnitude, of the control signal output to the outrigger retraction solenoid valve can control the retraction speed of the corresponding hydraulic cylinder, thereby controlling the retraction speed of the corresponding outrigger.
[0061] Specifically, closed-loop control is performed on the extension lengths of the multiple legs after the initial leveling is completed until the preset separation condition of the box is met, that is, step S150 includes, for example:
[0062] (c1) Initializing the values of the control signals of the plurality of leg extension solenoid valves.
[0063] (c2) outputting control signals to the corresponding multiple leg extension solenoid valves to control the extension speed of the multiple legs.
[0064] (c3) Obtain the extended lengths of multiple legs in real time after initial leveling is completed, and perform the following steps:
[0065] (c41) Determine the maximum deviation between the extended lengths of the multiple legs after initial leveling. Specifically, first determine whether the current state satisfies one of the preset disengagement conditions: the maximum deviation between the extended lengths of the multiple legs after initial leveling is less than a preset deviation value.
[0066] (c42) If the maximum deviation is less than the preset deviation value, determine whether the extended lengths of the multiple legs after completing the initial leveling are all greater than the preset height value. That is, if it is determined that the current state satisfies one of the preset disengagement conditions, then determine whether the current state satisfies another preset disengagement condition: the extended lengths of the multiple legs after completing the initial leveling are all greater than the preset height value.
[0067] (c43) If the extended lengths of the multiple legs after initial leveling are greater than the preset height value, the closed-loop control is terminated. This indicates that the two preset disengagement conditions have been met, and the closed-loop control process for the extended lengths of the legs after initial leveling can be terminated. The subsequent box disengagement operation can then be performed.
[0068] (c44) If the maximum deviation is greater than or equal to the preset deviation value, the extended lengths of the multiple legs after completing the initial leveling are sorted. This indicates that the current state does not simultaneously meet the two preset disengagement conditions, and preparations for the next closed-loop control cycle are required.
[0069] (c45) Determine the control signal adjustment values of the multiple leg extension solenoid valves based on the sorting results.
[0070] as well as
[0071] (c46) Adjust the values of the control signals of the plurality of leg extension solenoid valves respectively according to the control signal adjustment values.
[0072] Specifically, the value of the control signal is, for example, a current value or a voltage value.
[0073] Initializing the values of the control signals of the multiple leg extension solenoid valves, that is, step (c1) for example includes: initializing the values of the control signals to a preset current value or a preset voltage value.
[0074] The preset current value ranges from 200 mA to 800 mA, for example, and the preset voltage value ranges from 6 V to 24 V, for example.
[0075] Specifically, obtaining in real time the extended lengths of the multiple legs after the initial leveling is completed, that is, step (c3), for example, includes:
[0076] (c31) Obtaining a second initial distance between a plurality of preset points on the upper surface of the vehicle body and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body when the initial leveling is completed, wherein the plurality of preset points are arranged corresponding to the plurality of legs, and the plurality of preset points are respectively arranged adjacent to the corresponding legs.
[0077] (c32) obtaining a second real-time distance between the plurality of preset points and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body after the initial leveling is completed.
[0078] (c33) Determine the difference between the second real-time distance and the second initial distance as the extended length of the plurality of legs after completing the initial leveling.
[0079] Specifically, the control signal adjustment values of the plurality of leg extension solenoid valves are determined according to the sorting results, that is, step (c45) includes, for example:
[0080] (c451) Select any one leg from multiple legs as a reference leg.
[0081] (c452) respectively determining the difference between the sequence number of the extended length of the reference leg after the initial leveling is completed and the sequence number of the extended length of the plurality of legs after the initial leveling is completed.
[0082] (c453) Determine the control signal adjustment values of multiple leg extension solenoid valves according to the sorting type and difference.
[0083] The type is sorted from largest to smallest or from smallest to largest.
[0084] Specifically, the control signal adjustment values of the plurality of leg extension solenoid valves are determined respectively according to the sorting type and the difference, that is, step (c453) includes, for example:
[0085] (c4531) Get the control signal fine-tuning value.
[0086] (c4532) Determine the product of the difference value and the control signal trim value.
[0087] (c4533) In the case of sort type from largest to smallest, the product is determined as the control signal adjustment value. And
[0088] (c4534) When the sort type is small to large, the opposite of the product is determined as the control signal adjustment value.
[0089] Specifically, when the value of the control signal is a current value, the range of the control signal fine-tuning value is 0 mA to 20 mA; when the value of the control signal is a voltage value, the range of the control signal fine-tuning value is 0.1 V to 0.5 V.
[0090] Furthermore, the control method for a vehicle may further include:
[0091] Step S160: Determine whether an outrigger retraction signal has been received. Specifically, the outrigger retraction signal is triggered, for example, in response to an operator pressing an outrigger retraction button or turning on an outrigger retraction switch. The outrigger retraction signal, for example, instructs the outriggers to retract to facilitate container unloading. The outrigger retraction signal is, for example, an electrical signal.
[0092] Step S170: Upon receiving the outrigger retraction signal, the multiple outriggers are controlled to retract at the same speed until the bottom surface of the box contacts the ground. Specifically, for example, the control signals output to the outrigger retraction solenoid valves controlling the retraction of the multiple outriggers have the same preset value. When the control signal value is a current value, the corresponding preset value ranges from 200 mA to 800 mA, for example. When the control signal value is a voltage value, the corresponding preset value ranges from 6 V to 24 V, for example. Contact of any point on the bottom surface of the box by the box determines that the bottom surface has contacted the ground.
[0093] The outrigger retraction signal is, for example, triggered in response to a user confirming that the box has been detached. Specifically, the outrigger retraction signal is, for example, triggered in response to an operator confirming that the box has been detached by pressing an outrigger retraction button or turning on an outrigger retraction switch. The outrigger retraction signal is, for example, an electrical signal.
[0094] It is also worth mentioning that when the box has not been separated from the vehicle body or when the outriggers are operating, the box has not been separated indicator light in the vehicle cab will light up red. If the vehicle is driven at this time, the box has not been separated buzzer in the cab will sound to remind the operator that the box has not been separated and the vehicle cannot be driven. When the box has been separated from the vehicle body and the outriggers have completed the operation, the box has not been separated indicator light in the cab will go out and the vehicle can be driven normally.
[0095] like Figure 2A 、 Figure 2B 、 Figure 2C and Figure 2D The diagram shows the overall or partial structure of a vehicle according to an embodiment of the present invention. The length of the box is shown as L, the width is shown as W, the first angle is shown as Angle A, and the second angle is shown as Angle B. The height of the corner fitting protruding from the upper surface of the vehicle body is shown as H, which is determined by the corner fitting structure.
[0096] In an embodiment of the present invention, a controller is provided, which is configured to execute the control method 100 for a vehicle according to any one of the aforementioned embodiments.
[0097] The specific functions and details of the control method 100 for a vehicle can be referred to the relevant description of the aforementioned embodiment and will not be repeated here.
[0098] Specifically, the controller may be, for example, an industrial computer, an embedded system, a microprocessor, a programmable logic device, or other control device. More specifically, the controller may be, for example, a vehicle controller.
[0099] like Figure 3As shown, in an embodiment of the present invention, a control device 200 for a vehicle is provided. The vehicle includes a vehicle body, a box body, and a plurality of legs. The box body is disposed above the vehicle body and is detachably connected to the vehicle body. The plurality of legs are extendable and retractable in the height direction of the box body. The plurality of legs include a left front leg, a right front leg, a left rear leg, and a right rear leg. The left front leg, right front leg, left rear leg, and right rear leg are fixedly mounted on the left front, right front, left rear, and right rear of the box body, respectively. The control device 200 for the vehicle includes a controller 210 and an inclination detection device 230.
[0100] The controller 210 is, for example, a controller according to any of the aforementioned embodiments. The specific functions and details of the controller 210 can be referred to the relevant descriptions of the aforementioned embodiments and will not be repeated here. The controller 210 is, for example, a vehicle controller of a vehicle.
[0101] The inclination detection device 230 is configured to detect, for example, a first angle formed by the lower surface of the box with the horizontal plane in the length direction of the box and a second angle formed by the lower surface of the box with the horizontal plane in the width direction of the box.
[0102] Furthermore, the vehicle control device 200 further includes a distance detection device 250. The distance detection device 250 is configured to detect the distance between a preset point on the upper surface of the vehicle body and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body.
[0103] Specifically, the tilt detection device 230 includes, for example, a tilt sensor. The tilt sensor 230 is installed on the bottom surface of the box.
[0104] The distance detection device 250 includes, for example, a radar, and the radar may be, for example, an ultrasonic radar. Of course, the embodiment of the present invention is not limited thereto, and the distance detection device 250 may also be, for example, other distance detection devices that can achieve the purpose of the present invention. The number of distance detection devices 250 may be, for example, multiple, and the multiple distance detection devices 250 are, for example, respectively arranged at corresponding preset point positions to detect the distance between the corresponding preset points in a direction perpendicular to the upper surface of the vehicle body and the lower surface of the box. The number of distance detection devices 250 is, for example, 4. Of course, the embodiment of the present invention is not limited thereto, and for example, a greater number of distance detection devices 250 or a smaller number of distance detection devices 250 may also be provided.
[0105] like Figure 4 As shown, in an embodiment of the present invention, a vehicle 300 is provided, including: a control device 310, a vehicle body 330, a box 350 and a plurality of legs 370.
[0106] The control device 310 is, for example, the control device 200 for a vehicle according to any of the aforementioned embodiments. Specific functions and details of the control device 310 can be found in the relevant descriptions of the aforementioned embodiments and will not be repeated here.
[0107] The box body 350 is, for example, disposed above the vehicle body 330 and is detachably connected to the vehicle body 330 .
[0108] For example, multiple legs 370 are fixedly installed on the box body 350, and the multiple legs 370 can be extended and retracted in the height direction of the box body 350. The multiple legs 370 include a left front leg, a right front leg, a left rear leg and a right rear leg. The left front leg, the right front leg, the left rear leg and the right rear leg are respectively fixedly installed on the left front, right front, left rear and right rear of the box body 350.
[0109] In summary, the embodiments of the present invention can achieve some or all of the following technical effects through the aforementioned technical solutions:
[0110] (1) Improve the safety of the vehicle when the box is separated from the lower body.
[0111] (2) Automatically determine the safety of the process of getting off the vehicle and separating from the box.
[0112] (3) It can ensure that the box remains as horizontal as possible during loading and unloading.
[0113] (4) Automatically adjust to the state that meets the conditions for box separation and automatically unload the box, reducing dependence on personnel and the number of personnel, which can improve overall efficiency.
[0114] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0118] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0119] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0120] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0121] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0122] The above are merely embodiments of the present invention and are not intended to limit the present invention. It will be apparent to those skilled in the art that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.
Claims
1. A control method for a vehicle, It is characterized in that The vehicle comprises a vehicle body, a box body and a plurality of legs, wherein the box body is arranged above the vehicle body and is detachably connected to the vehicle body, wherein the plurality of legs can be extended and retracted in the height direction of the box body, wherein the plurality of legs comprises a left front leg, a right front leg, a left rear leg and a right rear leg, wherein the left front leg, the right front leg, the left rear leg and the right rear leg are respectively fixedly mounted on the left front, the right front, the left rear and the right rear of the box body, and wherein the control method comprises: Confirm that the outrigger extension signal is received; Acquire the length of the box, the width of the box, a first angle formed by the lower surface of the box and the horizontal plane in the length direction of the box, and a second angle formed by the lower surface of the box and the horizontal plane in the width direction of the box; Determine a target extension length relationship of the plurality of legs according to the length, the width, the first angle and the second angle, wherein the target extension length relationship is a preset relationship that needs to be satisfied between the extension lengths of the plurality of legs when the lower surface of the box body reaches a state parallel to a horizontal plane; Initially leveling the plurality of legs according to the target extension length relationship; and After the initial leveling, a closed-loop control is performed on the extension lengths of the plurality of legs after the initial leveling is completed until a preset separation condition of the box is met; The initial leveling of the plurality of legs according to the target extension length relationship comprises: Determine, according to the target extension length relationship, extension length differences corresponding to a reference leg among the multiple legs and the remaining legs among the multiple legs except the reference leg, wherein the reference leg is a leg with a minimum extension length in the target extension length relationship, and the extension length difference is a difference between the extension lengths of the remaining legs in the target extension length relationship and the extension length of the reference leg; Controlling the plurality of legs to extend until the plurality of legs all touch the ground; and After the plurality of legs touch the ground, the remaining legs are controlled to continue to extend until the extended lengths of the remaining legs after touching the ground are all equal to the corresponding extended length differences.
2. The control method according to claim 1, It is characterized in that The step of determining a target extension length relationship of the plurality of legs according to the length, the width, the first angle, and the second angle comprises: Determine the height relationship of the front end, the rear end, the left end and the right end of the lower surface of the box relative to the horizontal plane according to the first angle and the second angle; In the case where the height relationship is that the front end is higher than the rear end and the left end is higher than the right end, the target extension length relationship includes: L2=L1+W|tanB|; L3 = L1 + L|tanA|; and L4=L1+W|tanB|+L|tanA|; In the case where the height relationship is that the front end is higher than the rear end and the left end is lower than the right end, the target extension length relationship includes: L1=L2+W|tanB|; L3 = L2 + W|tanB| + L|tanA|; and L4=L2+L|tanA|; In the case where the height relationship is that the front end is lower than the rear end and the left end is higher than the right end, the target extension length relationship includes: L1=L3+L|tanA|; L2 = L3 + L|tanA| + W|tanB|; and L4=L3+W|tanB|; In the case where the height relationship is that the front end is lower than the rear end and the left end is lower than the right end, the target extension length relationship includes: L1=L4+W|tanB|+L|tanA|; L2 = L4 + L|tanA|; and L3=L4+W|tanB|; Among them, L1 is the extended length of the left front leg, L2 is the extended length of the right front leg, L3 is the extended length of the left rear leg, L4 is the extended length of the right rear leg, L is the length, W is the width, A is the first angle, and B is the second angle.
3. The control method according to claim 1, It is characterized in that The controlling the remaining legs to continue to extend until the extended lengths of the remaining legs after touching the ground are all equal to the corresponding extended length differences, comprises: Obtaining a first initial distance between a plurality of preset points on the upper surface of the vehicle body and the lower surface of the box body in a direction perpendicular to the upper surface of the vehicle body when all of the plurality of legs are in contact with the ground, wherein the plurality of preset points are arranged corresponding to the remaining legs, and the plurality of preset points are arranged adjacent to the corresponding legs, respectively; and Control the remaining legs to continue to extend and obtain the first real-time distance between the multiple preset points and the lower surface of the box body in a direction perpendicular to the upper surface of the vehicle body, until the difference between the first real-time distance and the first initial distance is equal to the extension length difference of the corresponding remaining legs.
4. The control method according to claim 1, It is characterized in that The preset disengagement conditions include: The extended length of the plurality of legs after completing the initial leveling is greater than a preset height value; and The maximum deviation between the extended lengths of the plurality of legs after completing the initial leveling is less than a preset deviation value.
5. The control method according to claim 4, It is characterized in that The preset deviation value ranges from 2 mm to 10 mm.
6. The control method according to claim 4, It is characterized in that The vehicle also includes a connecting angle piece, which is arranged on the vehicle body and protrudes from the upper surface of the vehicle body. The connecting angle piece is configured to connect the box and the vehicle body, and the preset height value is the height of the connecting angle piece protruding from the upper surface of the vehicle body.
7. The control method according to claim 4, It is characterized in that The vehicle further includes a plurality of leg extension solenoid valves, the plurality of leg extension solenoid valves corresponding to the plurality of legs one by one, and the extension lengths of the plurality of legs after the initial leveling are closed-loop controlled until the preset separation condition of the box is met, including: Initializing the values of control signals of the plurality of leg extension solenoid valves; Outputting the control signals to the corresponding leg extension solenoid valves respectively to control the extension speed of the legs; and Acquire in real time the extended lengths of the plurality of legs after completing the initial leveling, and perform the following steps: determining a maximum deviation between the extended lengths of the plurality of legs after completing the initial leveling; In a case where the maximum deviation is less than the preset deviation value, determining whether the extended lengths of the plurality of legs after completing the initial leveling are all greater than the preset height value; When the extended lengths of the plurality of legs after completing the initial leveling are all greater than the preset height value, ending the closed-loop control; In a case where the maximum deviation is greater than or equal to the preset deviation value, sorting the extended lengths of the plurality of legs after completing the initial leveling; Determining control signal adjustment values of the plurality of leg extension solenoid valves according to the sorting result; and The values of the control signals of the plurality of leg extension solenoid valves are adjusted respectively according to the control signal adjustment value.
8. The control method according to claim 7, It is characterized in that The value of the control signal is a current value or a voltage value; Initializing the values of the control signals of the plurality of leg extension solenoid valves includes: The value of the control signal is initialized to a preset current value or a preset voltage value.
9. The control method according to claim 8, It is characterized in that The preset current value ranges from 200 mA to 800 mA, and the preset voltage value ranges from 6 V to 24 V.
10. The control method according to claim 7, It is characterized in that The real-time acquisition of the extended lengths of the plurality of legs after the initial leveling is completed includes: Acquire a second initial distance between a plurality of preset points on the upper surface of the vehicle body and the lower surface of the box body in a direction perpendicular to the upper surface of the vehicle body after the initial leveling is completed, wherein the plurality of preset points are arranged corresponding to the plurality of legs, and the plurality of preset points are arranged adjacent to the corresponding legs respectively; Acquiring a second real-time distance between the plurality of preset points and the lower surface of the box in a direction perpendicular to the upper surface of the vehicle body after the initial leveling is completed; and The difference between the second real-time distance and the second initial distance is determined as the extended length of the plurality of legs after the initial leveling is completed.
11. The control method according to claim 7, It is characterized in that Determining the control signal adjustment values of the plurality of leg extension solenoid valves according to the sorting result includes: Select any one leg from the plurality of legs as a reference leg; respectively determining the difference between the sequence number of the extended length of the reference leg after completing the initial leveling and the sequence numbers of the extended length of the plurality of legs after completing the initial leveling; and Determine control signal adjustment values of the plurality of leg extension solenoid valves respectively according to the sorting type and the difference; The types are sorted from large to small or from small to large.
12. The control method according to claim 11, It is characterized in that The step of respectively determining the control signal adjustment values of the plurality of leg extension solenoid valves according to the sorting type and the difference comprises: Get the fine-tuning value of the control signal; determining a product of the difference and the control signal fine-tuning value; In the case where the types are sorted from large to small, determining the product as the control signal adjustment value; and In the case where the type is sorting from small to large, the inverse of the product is determined as the control signal adjustment value.
13. The control method according to claim 12, It is characterized in that When the value of the control signal is a current value, the range of the control signal fine-tuning value is 0 mA to 20 mA; when the value of the control signal is a voltage value, the range of the control signal fine-tuning value is 0.1 V to 0.5 V.
14. The control method according to claim 1, It is characterized in that Also includes: determining whether an outrigger retraction signal is received; When receiving the leg retraction signal, controlling the plurality of legs to retract at the same speed until the lower surface of the box body touches the ground; The leg retraction signal is triggered in response to the user confirming that the box has been detached.
15. A controller, It is characterized in that The method is configured to execute the control method for a vehicle according to any one of claims 1 to 14.
16. A control device for a vehicle, It is characterized in that The vehicle comprises a body, a box and a plurality of legs, wherein the box is arranged above the body and is detachably connected to the body, the plurality of legs can be extended and retracted in the height direction of the box, the plurality of legs comprises a left front leg, a right front leg, a left rear leg and a right rear leg, the left front leg, the right front leg, the left rear leg and the right rear leg are respectively fixedly mounted on the left front, the right front, the left rear and the right rear of the box, and the control device comprises: An inclination detection device is configured to detect a first angle formed by the lower surface of the box body and a horizontal plane in the length direction of the box body and a second angle formed by the lower surface of the box body and the horizontal plane in the width direction of the box body; and A controller according to claim 15.
17. The control device according to claim 16, It is characterized in that Also includes: The distance detection device is configured to detect the distance between a preset point on the upper surface of the vehicle body and the lower surface of the box body in a direction perpendicular to the upper surface of the vehicle body.
18. The control device according to claim 17, It is characterized in that The tilt detection device includes a tilt sensor, and the distance detection device includes a radar.
19. A vehicle, It is characterized in that include: Car body; A box body, arranged above the vehicle body and detachably connected to the vehicle body; A plurality of legs, fixedly mounted on the box, the plurality of legs being retractable in the height direction of the box, the plurality of legs comprising a left front leg, a right front leg, a left rear leg and a right rear leg, the left front leg, the right front leg, the left rear leg and the right rear leg being fixedly mounted on the left front, the right front, the left rear and the right rear of the box respectively; and A control device for a vehicle according to any one of claims 16 to 18.
