Counterweight structure, robot and method for controlling robot
Disclosed are a counterweight structure, a robot and a method for controlling the robot. The counterweight structure includes an electromagnetic device, a counterweight block and a reset piece. The reset piece is clamped between the electromagnetic device and the counterweight block. The electromagnetic device is magnetic after being powered on, to attract the counterweight block to move towards the electromagnetic device and compress the reset piece.
1 . A robot, comprising:
a robot body provided with an installation cavity, wherein a control component is provided in the installation cavity; and
a counterweight structure, wherein the counterweight structure comprises an electromagnetic device, a counterweight block and a reset piece, the reset piece is clamped between the electromagnetic device and the counterweight block, the electromagnetic device is magnetic after being powered on, to attract the counterweight block to move towards the electromagnetic device and compress the reset piece, the counterweight structure is provided in the installation cavity, the electromagnetic device of the counterweight structure is electrically connected to the control component, and the control component is configured to control the electromagnetic device to be powered on or off;
the robot body comprises a main body and two driving wheels, the main body is provided with the installation cavity, the two driving wheels are respectively provided at two opposite sides of the main body; and
each of the two driving wheels comprises:
a rotating assembly, wherein the rotating assembly is provided with an accommodation groove, and a notch of the accommodation groove is sleeved at an outer sidewall of the main body, to allow the accommodation groove to communicate with the installation cavity;
a support seat connected to the main body, wherein the support seat is provided in the installation cavity or the accommodation groove, and the support seat is rotationally connected to the rotating assembly through a bearing; and
a driving piece provided in the installation cavity or the accommodation groove, wherein the driving piece is provided at the support seat and is electrically connected to the control component, and an output end of the driving piece is connected to the rotating assembly.
2 . The robot of claim 1 , wherein a cavity wall of the installation cavity is provided with a limiting groove, and a part of the counterweight block of the counterweight structure is movably limited in the limiting groove.
3 . The robot of claim 1 , wherein the rotating assembly comprises:
a housing provided with the accommodation groove; and
a transmission piece provided in the accommodation groove and located between the housing and the support seat, wherein the transmission piece is connected to the bearing, and the transmission piece is detachably connected to the housing.
4 . The robot of claim 1 , wherein the main body comprises:
a main housing provided with the installation cavity and a sound outlet communicating with the installation cavity, wherein the sound outlet is provided at an upper part of the main housing; and
a loudspeaker module provided above the counterweight structure, wherein the loudspeaker module comprises a loudspeaker installation base and a loudspeaker body, the loudspeaker installation base is provided at a sidewall of the installation cavity, a sound cavity is formed by an enclosure of the loudspeaker installation base and a cavity wall of the installation cavity, the loudspeaker body is provided at the loudspeaker installation base and is provided in the sound cavity, and the loudspeaker body is provided at a position corresponding to the sound outlet.
5 . A method for controlling the robot of claim 1 , comprising following steps:
obtaining an operation state of the robot; and
controlling the electromagnetic device of the counterweight structure to be powered on or off to adjust a center of gravity of the robot according to the operation state of the robot.
6 . The robot of claim 1 , wherein the electromagnetic device comprises:
an inner core provided at a position corresponding to the counterweight block, wherein the reset piece is clamped between the inner core and the counterweight block; and
a coil winding around an outer periphery of the inner core, wherein after the coil is powered on, the inner core is magnetized to attract the counterweight block to move towards the inner core.
7 . The robot of claim 6 , wherein the inner core is provided with a mating hole, the counterweight block is provided with a sliding rod, the sliding rod is movably provided in the mating hole, and the reset piece is sleeved on the sliding rod.
8 . The robot of claim 1 , wherein:
the counterweight structure comprises two electromagnetic devices and two reset pieces;
the two electromagnetic devices are respectively provided at two opposite sides of the counterweight block, and each of the two reset pieces is clamped between the counterweight block and one of the two electromagnetic devices; and/or
the reset piece is a spring.