Swing-up motion method and apparatus of robot, robot, and storage medium
A swing-up motion method of a robot includes: receiving a swing-up motion instruction; controlling, in response to the swing-up motion instruction, first leg parts of a robot to be in a suspended state, performing a leg retraction movement of the first leg parts, and at the end of the suspended state, placing first mechanical wheels on knee joints of the first leg parts on the ground; and controlling second leg parts of the robot to be suspended and keeping stable in a balanced state by using the first mechanical wheels as force-bearing balance points.
1 . A swing-up motion method of a robot, the method being performed by a computer device, the robot comprising legs and a main body part connected to the legs, each of the legs comprising a bendable knee joint, and the knee joint comprising a mechanical wheel; the legs comprising first leg parts and second leg parts, each of first leg parts and the second leg parts comprising one or more of the legs, and the second leg parts and the first leg parts being arranged in order in a swing-up direction of the robot; and
the method comprising:
receiving a swing-up motion instruction;
controlling, in response to the swing-up motion instruction, the first leg parts of the robot to be in a suspended state and out of contact with an operating plane, performing a leg retraction movement of the first leg parts, and at an end of the suspended state, placing one or more first mechanical wheels on one or more first knee joints of the first leg parts on the operating plane; and
controlling the second leg parts of the robot to be suspended and keeping stable in a balanced state, by using the one or more first mechanical wheels as force-bearing balance points.
2 . The method according to claim 1 , wherein the controlling, in response to the swing-up motion instruction, the first leg parts of the robot to be in a suspended state comprises:
controlling torque of the first knee joints in response to the swing-up motion instruction to bend the one or more first knee joints in a direction in which vertical heights between the one or more first mechanical wheels and a horizontal plane increase, until the first leg parts of the robot are in the suspended state.
3 . The method according to claim 2 , wherein each leg of the first leg parts comprise a first upper leg part and a first lower leg part, the first upper leg part and the first lower leg part are connected by one of the bendable one or more first knee joints, and the first upper leg part is connected to the main body part; and
the performing a leg retraction movement of the first leg parts comprises:
controlling the torque of the one or more first knee joints to decrease included angles between the first upper leg parts and the first lower leg parts, to implement the leg retraction movement of the first leg parts.
4 . The method according to claim 3 , wherein the first upper leg parts are each provided with a first magnetic component, the first lower leg parts are each provided with a second magnetic component, and a magnetic matching relationship exists between the first magnetic component and the second magnetic component; and
the controlling the torque of the one or more first knee joints to decrease included angles between the first upper leg parts and the first lower leg parts, to implement the leg retraction movement of the first leg parts comprises:
controlling the torque of the one or more first knee joints to decrease the included angles between the first upper leg parts and the first lower leg parts; and
when the included angles reach a preset included angle threshold, implementing the leg retraction movement of the first leg parts via attraction between the first magnetic components provided on the first upper leg parts and the second magnetic components provided on the first lower leg parts.
5 . The method according to claim 1 , wherein each leg of the first leg parts comprise a first upper leg part and a first lower leg part, the first upper leg part and the first lower leg part are connected by one of the bendable one or more first knee joints, and the first upper leg part is connected to the main body part; and
the method further comprises:
determining a motion allowed region for each leg of the first leg parts, the motion allowed region referring to a region where the leg of the first leg parts is located on the operating plane during a swing-up motion of the robot; and
using the motion allowed region as an operating plane support range for the first mechanical wheel during the leg retraction movement of the first upper leg part and the first lower leg part.
6 . The method according to claim 5 , wherein the robot comprises first leg joints, the first leg joints being configured to control torque of the first upper leg parts; and
the using the motion allowed region as an operating plane support range for the first mechanical wheel during the first upper leg part and the first lower leg part performing the leg retraction movement comprises:
during the leg retraction movement of the first upper leg part and the first lower leg part, controlling torque of the first leg joint to adjust an included angle between the first upper leg part and a horizontal plane, to enable the first mechanical wheel to fall within the motion allowed region; and using a contact point between the first mechanical wheel and the motion allowed region as the force-bearing balance point in response to that the first mechanical wheel falls within the motion allowed region.
7 . The method according to claim 1 , wherein each leg of the first leg parts comprise a first upper leg part and a first lower leg part, the first upper leg part and the first lower leg part are connected by one of the bendable one or more first knee joints, and the first upper leg part is connected to the main body part, each of the one or more first knee joints comprises a groove plate, and the groove plate is correspondingly provided with at least one wheel groove; and
the first lower leg part comprises an insertion rod, the insertion rod is controlled by a linear actuator to adjust a motion transmission state between the first lower leg part and the first knee joint, the linear actuator indicates a motor that converts electrical energy into linear motion mechanical energy, and the insertion rod is a mechanical component controlled by the linear actuator.
8 . The method according to claim 7 , wherein the method further comprises:
driving, in response to controlling the insertion rod to insert into the wheel groove, the first lower leg part to rotate along with rotation of the first knee joint by using the insertion rod; and
canceling the motion transmission state between the first knee joint and the first lower leg part in response to controlling the insertion rod to retract from the wheel groove.
9 . The method according to claim 1 , wherein each leg of the second leg parts comprise a second upper leg part and a second lower leg part, the second upper leg part and the second lower leg part are connected by one of one or more bendable second knee joints, and the second upper leg part is connected to the main body part; and
the controlling the second leg parts of the robot to be suspended by using the one or more first mechanical wheels as force-bearing balance points comprises:
controlling torque of the one or more first mechanical wheels and torque of the one or more second knee joints to control the second leg parts of the robot to be suspended, by using the second leg parts as force application points and the one or more first mechanical wheels as force- bearing points.
10 . The method according to claim 9 , wherein the method further comprises:
controlling rotation of the one or more first mechanical wheels to enable the robot to enter the balanced state, the balanced state indicating a state after the swing-up motion instruction is executed.
11 . The method according to claim 10 , wherein each leg of the first leg parts each comprise a first upper leg part and a first lower leg part, and the controlling rotation of the one or more first mechanical wheels to enable the robot to enter the balanced state comprises:
controlling the rotation of the one or more first mechanical wheels to adjust an included angle between the first upper leg part and the horizontal plane, when the included angle between the first upper leg part and the horizontal plane reach a preset adjustment condition, the robot entering the balanced state.
12 . A swing-up motion apparatus of a robot, the robot comprising legs and a main body part connected to the legs, each of the legs comprising a bendable knee joint, and the knee joint comprising a mechanical wheel; the legs comprising first leg parts and second leg parts, each of first leg parts and the second leg parts comprising one or more of the legs, and the first leg parts and the second leg parts being arranged in order in a swing-up direction of the robot; and
the apparatus comprising a memory and a processor coupled to the memory, the processor being configured to:
receive a swing-up motion instruction;
control, in response to the swing-up motion instruction, the first leg parts of the robot to be in a suspended state and out of contact with an operating plane, performing a leg retraction movement of the first leg parts, and at an end of the suspended state, placing one or more first mechanical wheels on one or more first knee joints of the first leg parts on the operating plane; and
control the second leg parts of the robot to be suspended and keep stable in a balanced state, by using the one or more first mechanical wheels as force-bearing balance points.
13 . The apparatus according to claim 12 , wherein the processor is further configured to control torque of the one or more first knee joints in response to the swing-up motion instruction to bend the one or more first knee joints in a direction in which vertical heights between first mechanical wheels and a horizontal plane increase, until the first leg parts of the robot are in the suspended state.
14 . The apparatus according to claim 13 , wherein each leg of the first leg parts comprise a first upper leg part and a first lower leg part, the first upper leg part and the first lower leg part are connected by one of the bendable one or more first knee joints, and the first upper leg part is connected to the main body part; and
the processor is further configured to control the torque of the one or more first knee joints to decrease included angles between the first upper leg parts and the first lower leg parts, to implement the leg retraction movement of the first leg parts.
15 . The apparatus according to claim 14 , wherein the first upper leg part is provided with a first magnetic component, the first lower leg part is provided with a second magnetic component, and a magnetic matching relationship exists between the first magnetic component and the second magnetic component; and
the processor is further configured to control the torque of the one or more first knee joints to decrease the included angles between the first upper leg parts and the first lower leg parts; and when the included angles reach a preset included angle threshold, implement the leg retraction movement of the first leg parts via attraction between the first magnetic components provided on the first upper leg parts and the second magnetic components provided on the first lower leg parts.
16 . The apparatus according to claim 12 , wherein each leg of the first leg parts comprise a first upper leg part and a first lower leg part, the first upper leg part and the first lower leg part are connected by one of the bendable one or more first knee joints, and the first upper leg part is connected to the main body part; and
the processor is further configured to determine a motion allowed region for each leg of the first leg parts, the motion allowed region referring to a region where the leg of the first leg parts is located on the operating plane during a swing-up motion of the robot; and using the motion allowed region as an operating plane support range for the first mechanical wheel during the leg retraction movement of the first upper leg part and the first lower leg part.
17 . The apparatus according to claim 16 , the robot comprises first leg joints, the first leg joints being configured to control torque of the first upper leg parts; and
the processor is further configured to, during the leg retraction movement of the first upper leg part and the first lower leg part, control torque of the first leg joint to adjust an included angle between the first upper leg part and a horizontal plane, to enable the first mechanical wheel to fall within the motion allowed region; and use a contact point between the first mechanical wheel and the motion allowed region as the force-bearing balance point in response to that the first mechanical wheel falls within the motion allowed region.
18 . The apparatus according to claim 12 , wherein each leg of the first leg parts comprise a first upper leg part and a first lower leg part, the first upper leg part and the first lower leg part are connected by one of the bendable one or more first knee joints, and the first upper leg part is connected to the main body part, each of the one or more first knee joints comprises a groove plate, and the groove plate is correspondingly provided with at least one wheel groove; and
the first lower leg part comprises an insertion rod, the insertion rod is controlled by a linear actuator to adjust a motion transmission state between the first lower leg part and the first knee joint, the linear actuator indicates a motor that converts electrical energy into linear motion mechanical energy, and the insertion rod is a mechanical component controlled by the linear actuator.
19 . The apparatus according to claim 18 , wherein the processor is further configured to:
drive, in response to controlling the insertion rod to insert into the wheel groove, the first lower leg part to rotate along with rotation of the first knee joint by using the insertion rod; and
cancel the motion transmission state between the first knee joint and the first lower leg part in response to controlling the insertion rod to retract from the wheel groove.
20 . A non-transitory computer-readable storage medium, having at least one instruction stored thereon, and the at least one instruction being loaded and executed by a processor of a robot to implement:
receiving a swing-up motion instruction, wherein the robot comprises legs and a main body part connected to the legs, each of the legs comprises a bendable knee joint, and the knee joint comprising a mechanical wheel; the legs comprise first leg parts and second leg parts, each of first leg parts and the second leg parts comprising one or more of the legs, and the second leg parts and the first leg parts being arranged in order in a swing-up direction of the robot;
controlling, in response to the swing-up motion instruction, the first leg parts of the robot to be in a suspended state and out of contact with an operating plane, performing a leg retraction movement of the first leg parts, and at an end of the suspended state, placing one or more first mechanical wheels on one or more first knee joints of the first leg parts on the operating plane; and
controlling the second leg parts of the robot to be suspended and keeping stable in a balanced state, by using the one or more first mechanical wheels as force-bearing balance points.