CN115562289A - Speed adjusting method, speed adjusting device, robot, storage medium and program product - Google Patents
Speed adjusting method, speed adjusting device, robot, storage medium and program product Download PDFInfo
- Publication number
- CN115562289A CN115562289A CN202211283341.5A CN202211283341A CN115562289A CN 115562289 A CN115562289 A CN 115562289A CN 202211283341 A CN202211283341 A CN 202211283341A CN 115562289 A CN115562289 A CN 115562289A
- Authority
- CN
- China
- Prior art keywords
- pressure
- robot
- rotation speed
- frequency threshold
- target rotation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0214—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0221—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0223—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving speed control of the vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manipulator (AREA)
Abstract
Description
技术领域technical field
本申请涉及机器人技术领域,特别是涉及一种速度调节方法、装置、机器人、存储介质和程序产品。The present application relates to the technical field of robots, in particular to a speed adjustment method, device, robot, storage medium and program product.
背景技术Background technique
随着智能家居技术的发展,出现了越来越多的家居机器人,如洗碗机器人、扫地机器人、清洁机器人等清洁机器人等,以为人们带来更为轻松的生活。With the development of smart home technology, more and more home robots, such as dishwasher robots, sweeping robots, cleaning robots and other cleaning robots, have emerged to bring people a more relaxed life.
传统技术中,清洁机器人(如吸尘器)需要在人力推拉的作用下移动,以进行清洁工作。然而,随着清洁机器人负载和自重的增加,用户控制清洁机器人移动需要施加更大的推拉力,特别是面对一些上坡、凹凸不平等大阻力特殊路面,用户更要花费更大的力气推动清洁机器人,这样不仅耗费用户精力,还增加了清洁耗时,降低了清洁效率。In traditional technologies, cleaning robots (such as vacuum cleaners) need to move under the action of human push and pull to perform cleaning work. However, with the increase of the load and self-weight of the cleaning robot, the user needs to apply more push and pull force to control the movement of the cleaning robot, especially when facing some special roads with uphill, uneven and large resistance, the user will spend more effort to push Cleaning the robot, which not only consumes the energy of the user, but also increases the cleaning time and reduces the cleaning efficiency.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种速度调节方法、装置、机器人、存储介质和程序产品。Based on this, it is necessary to provide a speed adjustment method, device, robot, storage medium and program product for the above technical problems.
第一方面,本申请提供了一种速度调节方法,包括:In a first aspect, the present application provides a speed adjustment method, including:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;Obtain the pressure data at the current moment according to the pressure sensor installed on the robot;
根据压力数据生成目标转动速度;Generating a target rotational velocity based on pressure data;
控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。Control the chassis hub on the robot to rotate at the target rotation speed to assist the robot to drive.
在其中一个实施例中,压力数据为压力脉冲信号,压力脉冲信号为压力传感器根据压力传感器内部弹簧的形变生成;压力传感器内部弹簧的形变所产生的形变量用于表征用户对压力传感器施加的压力大小。In one embodiment, the pressure data is a pressure pulse signal, and the pressure pulse signal is generated by the pressure sensor according to the deformation of the internal spring of the pressure sensor; the deformation amount generated by the deformation of the internal spring of the pressure sensor is used to represent the pressure exerted by the user on the pressure sensor size.
在其中一个实施例中,根据压力数据生成目标转动速度,包括:In one of the embodiments, generating the target rotation speed according to the pressure data includes:
根据压力脉冲信号,获取压力脉冲频率;Obtain the pressure pulse frequency according to the pressure pulse signal;
根据压力脉冲频率和预设频率阈值,确定目标转动速度。Determine the target rotation speed according to the pressure pulse frequency and the preset frequency threshold.
在其中一个实施例中,预设频率阈值包括低频率阈值和高频率阈值,根据压力脉冲频率和预设频率阈值,确定目标转动速度,包括:In one of the embodiments, the preset frequency threshold includes a low frequency threshold and a high frequency threshold, and the target rotation speed is determined according to the pressure pulse frequency and the preset frequency threshold, including:
若压力脉冲频率小于或等于低频率阈值,确定目标转动速度为0;If the pressure pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0;
若压力脉冲频率大于低频率阈值且小于高频率阈值,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度;If the pressure pulse frequency is greater than the low frequency threshold and less than the high frequency threshold, generate a target rotation speed according to the pressure pulse frequency, the high frequency threshold and the maximum rotation speed;
若压力脉冲频率大于或等于高频率阈值,确定目标转动速度为最大转动速度。If the pressure pulse frequency is greater than or equal to the high frequency threshold, determine that the target rotation speed is the maximum rotation speed.
在其中一个实施例中,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度,包括:In one of the embodiments, the target rotation speed is generated according to the pressure pulse frequency, the high frequency threshold and the maximum rotation speed, including:
根据压力脉冲频率与高频率阈值的比值和目标转动速度与最大转动速度的比值相同,得到目标转动速度。According to the ratio of the pressure pulse frequency to the high frequency threshold and the ratio of the target rotation speed to the maximum rotation speed, the target rotation speed is obtained.
在其中一个实施例中,若压力数据为压力值,则根据压力数据生成目标转动速度,包括:In one of the embodiments, if the pressure data is a pressure value, the target rotation speed is generated according to the pressure data, including:
根据压力值和预设的压力速度关系库,确定目标转动速度;压力速度关系库中包括多个压力值与转动速度之间的对应关系。The target rotation speed is determined according to the pressure value and a preset pressure-speed relationship library; the pressure-speed relationship library includes a plurality of corresponding relationships between pressure values and rotation speeds.
第二方面,本申请提供了一种速度调节装置,包括:In a second aspect, the present application provides a speed regulating device, including:
压力获取模块,用于根据机器人上安装的压力传感器,获取当前时刻的压力数据;The pressure acquisition module is used to obtain the pressure data at the current moment according to the pressure sensor installed on the robot;
速度确定模块,用于根据压力数据生成目标转动速度;a speed determination module, configured to generate a target rotational speed according to the pressure data;
助力控制模块,用于控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。The power assist control module is used to control the chassis wheel hub on the robot to rotate at a target rotation speed, so as to assist the robot to drive.
第三方面,本申请还提供了一种机器人,包括存储器和处理器,存储器存储有计算机程序,处理器执行计算机程序时实现以下步骤:In a third aspect, the present application also provides a robot, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;Obtain the pressure data at the current moment according to the pressure sensor installed on the robot;
根据压力数据生成目标转动速度;Generating a target rotational velocity based on pressure data;
控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。Control the chassis hub on the robot to rotate at the target rotation speed to assist the robot to drive.
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;Obtain the pressure data at the current moment according to the pressure sensor installed on the robot;
根据压力数据生成目标转动速度;Generating a target rotational velocity based on pressure data;
控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。Control the chassis hub on the robot to rotate at the target rotation speed to assist the robot to drive.
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;Obtain the pressure data at the current moment according to the pressure sensor installed on the robot;
根据压力数据生成目标转动速度;Generating a target rotational velocity based on pressure data;
控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。Control the chassis hub on the robot to rotate at the target rotation speed to assist the robot to drive.
上述速度调节方法、装置、机器人、存储介质和计算机程序产品中,机器人中的控制单元根据机器人上安装的压力传感器,获取当前时刻的压力数据,根据压力数据生成目标转动速度,继而控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。从而实现对于机器人行驶速度的调节,以助力机器人行驶,节省用户体力,提高机器人的行驶效率。In the above-mentioned speed adjustment method, device, robot, storage medium and computer program product, the control unit in the robot obtains the pressure data at the current moment according to the pressure sensor installed on the robot, generates the target rotation speed according to the pressure data, and then controls the rotation speed on the robot. The chassis hub rotates at a target rotational speed to assist the robot in driving. In this way, the adjustment of the driving speed of the robot is realized to assist the driving of the robot, save the physical strength of the user, and improve the driving efficiency of the robot.
附图说明Description of drawings
图1为一个实施例中速度调节方法的应用环境图;Fig. 1 is an application environment diagram of the speed regulation method in an embodiment;
图2为一个实施例中速度调节方法的流程示意图;Fig. 2 is a schematic flow chart of the speed regulation method in one embodiment;
图3为一个实施例中确定目标转动速度的流程示意图;Fig. 3 is a schematic flow chart of determining a target rotation speed in an embodiment;
图4为另一个实施例中确定目标转动速度的流程示意图;Fig. 4 is a schematic flow chart of determining the target rotation speed in another embodiment;
图5为一个实施例中速度调节装置的结构框图;Fig. 5 is a structural block diagram of a speed regulating device in an embodiment;
图6为一个实施例中机器人的内部结构图。Fig. 6 is a diagram of the internal structure of the robot in one embodiment.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
本申请实施例提供的速度调节方法,可以应用于机器人的控制单元。本实施例中所提供的速度调节方法即用于基于压力传感器所得到的压力数据调节机器人底盘轮毂的转动速度,以实现对于机器人行驶速度的调节。因此,本申请对于所应用的机器人的结构不做具体限制,包括实现上述速度调节过程中所涉及的压力传感器和底盘轮毂即可。The speed adjustment method provided in the embodiment of the present application can be applied to a control unit of a robot. The speed adjustment method provided in this embodiment is used to adjust the rotational speed of the hub of the chassis of the robot based on the pressure data obtained by the pressure sensor, so as to realize the adjustment of the driving speed of the robot. Therefore, the present application does not impose specific limitations on the structure of the applied robot, including the pressure sensor and the chassis hub involved in the above speed adjustment process.
示例性地,以上述速度调节方法应用于如图1所示的清洁机器人为例进行说明。如图2所示,上述速度调节方法包括:Exemplarily, the above speed adjustment method is applied to the cleaning robot as shown in FIG. 1 as an example for description. As shown in Figure 2, the above speed adjustment method includes:
S210、根据机器人上安装的压力传感器,获取当前时刻的压力数据。S210. Obtain pressure data at the current moment according to the pressure sensor installed on the robot.
其中,压力传感器用于获取压力数据,压力数据为压力传感器响应于用户所进行的施压操作而产生。可选地,该压力数据用于表征用户所施加的压力大小,可以直接是压力值,还可是其他形式的参数,如形变量。Wherein, the pressure sensor is used to acquire pressure data, and the pressure data is generated by the pressure sensor in response to a pressure application operation performed by the user. Optionally, the pressure data is used to characterize the magnitude of pressure exerted by the user, which may be directly a pressure value, or other forms of parameters, such as deformation.
不同类型的压力传感器对应不同的施压操作,同时对应不同形式的压力数据。可选地,弹簧式压力传感器所对应的施压操作即为按压该压力传感器,对应的压力数据可以是弹簧(或者压簧等其他弹性形变元件)的形变量(如压缩距离),还可以是基于该形变量所得到的压力值;旋转式压力传感器所对应的施压操作即为扭转该压力传感器的旋转部,对应的压力数据可以是旋转部所连接的扭簧的形变量(如收缩程度),还可以是基于该形变量所得到的压力值。Different types of pressure sensors correspond to different pressure-applying operations, and also correspond to different forms of pressure data. Optionally, the pressing operation corresponding to the spring-type pressure sensor is to press the pressure sensor, and the corresponding pressure data can be the deformation (such as the compression distance) of the spring (or other elastic deformation elements such as compression springs), or it can be The pressure value obtained based on the deformation amount; the corresponding pressing operation of the rotary pressure sensor is to twist the rotating part of the pressure sensor, and the corresponding pressure data can be the deformation amount (such as the degree of contraction) of the torsion spring connected to the rotating part ), it can also be the pressure value obtained based on the deformation.
可选地,上述压力传感器可位于机器人上的任何位置,便于用户触发即可。Optionally, the above-mentioned pressure sensor can be located at any position on the robot, which is convenient for the user to trigger.
可选地,机器人上安装的压力传感器响应于用户的施压操作,生成压力数据,并将该压力数据发送至机器人的控制单元,控制单元即可得到当前时刻的压力数据。Optionally, the pressure sensor installed on the robot generates pressure data in response to the user's pressing operation, and sends the pressure data to the control unit of the robot, and the control unit can obtain the pressure data at the current moment.
S220、根据压力数据生成目标转动速度。S220. Generate a target rotation speed according to the pressure data.
其中,该目标转动速度即为控制机器人的底盘轮毂所要达到的转动速度。机器人的底盘轮毂用于带动整个机器人移动。Wherein, the target rotation speed is the rotation speed to be achieved by controlling the chassis hub of the robot. The chassis hub of the robot is used to drive the whole robot to move.
可选地,控制单元可基于预设的压力数据与转动速度的对应关系,确定当前得到的压力数据所对应的转动速度,并作为上述目标转动速度。其中,压力数据所表征的压力越大,对应的转动速度也相应地越大。Optionally, the control unit may determine the rotation speed corresponding to the currently obtained pressure data based on the preset correspondence between the pressure data and the rotation speed, and use it as the above-mentioned target rotation speed. Wherein, the greater the pressure represented by the pressure data, the greater the corresponding rotation speed.
S230、控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。S230. Control the chassis hub on the robot to rotate at a target rotation speed, so as to assist the robot to drive.
具体地,在确定出上述目标转动速度后,控制单元则控制机器人上的底盘轮毂以目标转动速度转动,以为机器人助力,驱动行驶。Specifically, after determining the target rotation speed, the control unit controls the chassis hub on the robot to rotate at the target rotation speed, so as to assist the robot to drive.
以如图1中的清洁机器人为例,实现上述速度调节方法的具体过程如下:Taking the cleaning robot in Figure 1 as an example, the specific process of realizing the above speed adjustment method is as follows:
清洁机器人启动后进行上电自检,用户对清洁机器人上安装的压力传感器进行施压操作,压力传感器产生压力数据,并将该压力数据上报至控制单元。控制单元根据预先设定的压力数据与转动速度之间的对应关系确定接收到的压力数据所对应的目标转动速度,进而控底盘轮毂按照目标转动速度转动以助力清洁机器人行驶。对于平缓行驶区域,用户可向压力传感器施加较小的压力,以使底盘轮毂以较小的目标转动速度转动,带动清洁器人行驶,用户持续施压,推动清洁机器人持续行驶;对于一些特殊行驶区域,如上坡或者坑洼区域,用户在推动清洁机器人行驶的过程中,增大对压力传感器所施加的压力,以使底盘轮毂以较大的目标转动速度转动,助力清洁机器人行驶,以便用户在不耗费大量体力的情况下,助力清洁机器人顺利通过上述特殊行驶区域。After the cleaning robot is started, it performs a power-on self-test. The user applies pressure to the pressure sensor installed on the cleaning robot. The pressure sensor generates pressure data and reports the pressure data to the control unit. The control unit determines the target rotation speed corresponding to the received pressure data according to the preset correspondence between the pressure data and the rotation speed, and then controls the chassis hub to rotate at the target rotation speed to assist the cleaning robot to drive. For the smooth driving area, the user can apply a small pressure to the pressure sensor to make the chassis hub rotate at a small target rotation speed to drive the cleaning robot to drive. The user continues to apply pressure to push the cleaning robot to continue driving; for some special driving Areas, such as uphill or pothole areas, in the process of driving the cleaning robot, the user increases the pressure on the pressure sensor to make the chassis hub rotate at a larger target rotation speed, assisting the cleaning robot to drive, so that the user can Without consuming a lot of physical strength, it helps the cleaning robot to pass through the above-mentioned special driving areas smoothly.
本实施例中,机器人中的控制单元根据机器人上安装的压力传感器,获取当前时刻的压力数据,根据压力数据生成目标转动速度,继而控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。从而实现对于机器人行驶速度的调节,以助力机器人行驶,节省用户体力,提高机器人的行驶效率。In this embodiment, the control unit in the robot obtains the pressure data at the current moment according to the pressure sensor installed on the robot, generates the target rotation speed according to the pressure data, and then controls the chassis hub on the robot to rotate at the target rotation speed to assist the robot to drive . In this way, the adjustment of the driving speed of the robot is realized to assist the driving of the robot, save the physical strength of the user, and improve the driving efficiency of the robot.
实际应用中,压力数据可采用电信号的形式传输至控制单元。基于此,上述压力数据可以是压力脉冲信号。In practical applications, the pressure data can be transmitted to the control unit in the form of electrical signals. Based on this, the above pressure data may be a pressure pulse signal.
可选地,对于弹簧型压力传感器而言,用户对弹簧型压力传感器施加压力,内部弹簧受力产生形变,弹簧型压力传感器则将内部弹簧形变所产生的势能转换为电能,形成压力数据所对应的压力脉冲信号。Optionally, for the spring-type pressure sensor, the user applies pressure to the spring-type pressure sensor, and the internal spring deforms under the force, and the spring-type pressure sensor converts the potential energy generated by the deformation of the internal spring into electrical energy to form the pressure data corresponding to pressure pulse signal.
其中,压力传感器内部弹簧的形变所产生的形变量即用于表征用户对压力传感器施加的压力大小。在允许范围内,用户对压力传感器所施加的压力越大,压力传感器内部弹簧的形变量也相应地越大。而由弹簧形变转换得到的压力脉冲信号的压力脉冲频率与形变量正相关,即压力脉冲频率与用户所施加的压力正相关,随着用户所施加的压力的增大而增大,随着用户所施加的压力的减小而减小。Wherein, the deformation amount generated by the deformation of the internal spring of the pressure sensor is used to represent the pressure exerted by the user on the pressure sensor. Within the allowable range, the greater the pressure exerted by the user on the pressure sensor, the greater the deformation of the internal spring of the pressure sensor will be. The pressure pulse frequency of the pressure pulse signal obtained by the spring deformation conversion is positively correlated with the deformation, that is, the pressure pulse frequency is positively correlated with the pressure applied by the user, and increases with the increase of the pressure applied by the user. decreases with the reduction of the applied pressure.
在压力数据为压力脉冲信号的情况下,在一可选地实施例中,如图3所示,上述S220、根据压力数据生成目标转动速度,则包括:In the case where the pressure data is a pressure pulse signal, in an optional embodiment, as shown in FIG. 3 , the above S220, generating the target rotation speed according to the pressure data, then includes:
S310、根据压力脉冲信号,获取压力脉冲频率。S310. Obtain a pressure pulse frequency according to the pressure pulse signal.
可选地,机器人内部的控制单元包括MCU(Microcontroller Unit,微控制单元)和上位机。其中,MCU用于进行状态采集,从压力传感器得到压力数据,并将压力数据转换为压力脉冲信号,并获取该压力脉冲信号的脉冲频率,即得到上述压力脉冲频率。Optionally, the control unit inside the robot includes an MCU (Microcontroller Unit, micro control unit) and a host computer. Wherein, the MCU is used for state acquisition, obtains pressure data from the pressure sensor, converts the pressure data into a pressure pulse signal, and obtains the pulse frequency of the pressure pulse signal, that is, obtains the above pressure pulse frequency.
S320、根据压力脉冲频率和预设频率阈值,确定目标转动速度。S320. Determine the target rotation speed according to the pressure pulse frequency and the preset frequency threshold.
可选地,MCU周期性将得到的压力脉冲频率上报至上位机,如每隔100ms上报一次,由上位机作为决策中心,根据压力脉冲频率生成控制策略,以控制机器人的底盘轮毂。Optionally, the MCU periodically reports the obtained pressure pulse frequency to the host computer, for example, once every 100 ms, and the host computer acts as a decision-making center to generate a control strategy according to the pressure pulse frequency to control the chassis and hub of the robot.
可选地,上位机可根据压力脉冲频率和预设频率阈值,确定目标转动速度。如根据压力脉冲频率f和预设频率阈值f0的大小关系确定目标转动速度。其中,若压力脉冲频率f小于预设频率阈值f0,上位机控制底盘轮毂失能即不使能,对应目标转动速度为Vgoal=0,即不产生助力转速,机器人仅在用户的推力作用下行驶;若压力脉冲频率f大于或等于预设频率阈值f0,上位机控制底盘轮毂使能,对应目标转动速度Vgoal=V0(V0≠0)即产生助力转速,机器人可在用户的推力以及助力转速作用下行驶。Optionally, the host computer can determine the target rotation speed according to the pressure pulse frequency and the preset frequency threshold. For example, the target rotation speed is determined according to the relationship between the pressure pulse frequency f and the preset frequency threshold f 0 . Among them, if the pressure pulse frequency f is less than the preset frequency threshold f 0 , the upper computer controls the chassis hub to be disabled, that is, it is not enabled, and the corresponding target rotation speed is V goal = 0, that is, no power-assisted rotation speed is generated, and the robot only operates under the thrust of the user. If the pressure pulse frequency f is greater than or equal to the preset frequency threshold f 0 , the upper computer controls the chassis hub to enable, and the corresponding target rotation speed V goal = V 0 (V 0 ≠ 0) will generate an assist speed, and the robot can Driving under the action of the thrust and power-assisted speed.
本实施例中,在压力数据为压力脉冲信号的情况下,控制单元根据压力脉冲信号,获取压力脉冲频率,继而根据压力脉冲频率和预设频率阈值,确定目标转动速度。通过上述方法即可实现基于用户作用在压力传感器上的压力来调节底盘轮毂的转动速度,进而实现对于机器人行驶速度灵活且快速的调节,提高调节效率的同时,提高机器人的行驶效率。In this embodiment, when the pressure data is a pressure pulse signal, the control unit obtains the pressure pulse frequency according to the pressure pulse signal, and then determines the target rotation speed according to the pressure pulse frequency and a preset frequency threshold. Through the above method, the rotation speed of the chassis hub can be adjusted based on the pressure of the user acting on the pressure sensor, thereby realizing flexible and rapid adjustment of the robot's driving speed, improving the adjustment efficiency and improving the driving efficiency of the robot.
为了实现对于机器人行驶速度的多级调控,预设频率阈值f0可以包括多个,以形成不同的频率范围,不同频率范围对应不同的目标转动速度,进而实现多级调控。在其中一个可选地实施例中,预设频率阈值f0则包括低频率阈值fLow和高频率阈值fHigh,如图4所示,上述S320、根据压力脉冲频率和预设频率阈值,确定目标转动速度,则包括:In order to realize the multi-level control of the robot's driving speed, the preset frequency threshold f 0 may include several to form different frequency ranges, and different frequency ranges correspond to different target rotation speeds, thereby realizing multi-level control. In an optional embodiment, the preset frequency threshold f0 includes a low frequency threshold f Low and a high frequency threshold fHigh, as shown in FIG. The target rotation speed includes:
S410、若压力脉冲频率小于或等于低频率阈值,确定目标转动速度为0。S410. If the pressure pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0.
具体地,控制单元将得到的压力脉冲频率f与预先设定的低频率阈值fLow进行比较,并根据比较结果确定目标转动速度Vgoal。其中,若f≤fLow,Vgoal=0;若f>fLow,则根据压力脉冲频率f与高频率阈值FHigh确定目标转动速度Vgoal。Specifically, the control unit compares the obtained pressure pulse frequency f with a preset low frequency threshold f Low , and determines the target rotation speed V goal according to the comparison result. Wherein, if f≤f Low , V goal =0; if f>f Low , the target rotation speed V goal is determined according to the pressure pulse frequency f and the high frequency threshold F High .
以清洁机器人为例,上述过程适用于在平缓行驶区域中,用户轻轻推动清洁机器人,作用在压力传感器上的压力较小,转换得到的压力脉冲频率f小于低频率阈值fLow,目标转动速度Vgoal为0,即不触发助力速度,清洁机器人的底盘轮毂在用户推力作用下转动,以带动清洁机器人行驶的场景。Taking the cleaning robot as an example, the above process is applicable to the gentle driving area, the user gently pushes the cleaning robot, the pressure acting on the pressure sensor is small, the converted pressure pulse frequency f is less than the low frequency threshold f Low , and the target rotation speed V goal is 0, that is, the assist speed is not triggered, and the chassis hub of the cleaning robot rotates under the thrust of the user to drive the cleaning robot to drive.
S420、若压力脉冲频率大低频率阈值且小于高频率阈值,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度。S420. If the pressure pulse frequency is greater than the low frequency threshold and smaller than the high frequency threshold, generate a target rotation speed according to the pressure pulse frequency, the high frequency threshold, and the maximum rotation speed.
其中,最大转动速度Vmax即为机器人安全行驶所能达到的最大速度。Among them, the maximum rotation speed V max is the maximum speed that the robot can reach safely.
可选地,控制单元在确定压力脉冲频率f大于低频率阈值fLow的情况下,则进一步将压力脉冲频率f与高频率阈值fHigh进行比较,以确定目标转动速度Vgoal。其中,若fLow<f<fHigh,控制单元则根据压力脉冲频率f、高频率阈值fHigh和最大转动速度Vmax综合确定目标转动速度Vgoal.。Optionally, when the control unit determines that the pressure pulse frequency f is greater than the low frequency threshold f Low , the control unit further compares the pressure pulse frequency f with the high frequency threshold f High to determine the target rotational speed V goal . Wherein, if f Low <f<f High , the control unit comprehensively determines the target rotation speed V goal. according to the pressure pulse frequency f, the high frequency threshold f High and the maximum rotation speed V max .
在一可选地实施例中,控制单元可根据压力脉冲频率f与高频率阈值fHigh的比值和目标转动速度Vgoal.与最大转动速度Vmax的比值相同,得到Vmax目标转动速度Vgoal。即以f/fHigh=Vgoal/Vmax为设置原则,在fHigh和Vmax确定的情况下,为不同的f设置对应的Vgoal。其中,f越大Vgoal相应越大。In an optional embodiment, the control unit can obtain the V max target rotation speed V goal according to the ratio of the pressure pulse frequency f to the high frequency threshold f High and the ratio of the target rotation speed V goal to the maximum rotation speed V max . . That is, f/f High= V goal /V max is used as the setting principle, and when f High and V max are determined, corresponding V goal is set for different f. Wherein, the larger f is, the larger V goal is.
同样以清洁机器人为例,上述过程则适用于进入特殊行驶区域(如上坡或者坑洼区域)用户加大推力,增大了作用在压力传感器上的压力,使得转换得到的压力脉冲频率f大于低频率阈值fLow,控制单元则根据上述设置原则,基于当前的压力脉冲频率f确定对应的目标转动速度Vgoal,以触发助力速度,清洁机器人的底盘轮毂在用户推力作用下以及目标转动速度Vgoal的助力下转动,以带动清洁机器人行驶的场景。Also taking the cleaning robot as an example, the above process is applicable to the user entering a special driving area (such as an uphill or pothole area) to increase the thrust and increase the pressure on the pressure sensor, so that the converted pressure pulse frequency f is greater than the low The frequency threshold f Low , the control unit determines the corresponding target rotation speed V goal based on the current pressure pulse frequency f according to the above setting principles, so as to trigger the assist speed . Rotate with the assistance of the robot to drive the cleaning robot to drive the scene.
S430、若压力脉冲频率大于或等于高频率阈值,确定目标转动速度为最大转动速度。S430. If the pressure pulse frequency is greater than or equal to the high frequency threshold, determine the target rotation speed as the maximum rotation speed.
具体地,在用户压力脉冲频率f≥fHigh的情况下,控制单元则确定Vgoal=Vmax。Specifically, in the case of the user's pressure pulse frequency f≥f High , the control unit determines V goal =V max .
可选地,上述低频率阈值fLow=47kHz,高频率阈值fHigh=48kHz,Vmax=0.5m/s。Optionally, the above-mentioned low frequency threshold f Low =47 kHz, high frequency threshold f High =48 kHz, and V max =0.5 m/s.
同样以清洁机器人为例,上述过程则适用于用户作用在压力传感器上的压力逐渐增大,使得转换得到的压力脉冲频率f达到高频率阈值fHigh,控制单元则直接确定最大转动速度Vmax为目标转动速度Vgoal,清洁机器人的底盘轮毂在用户推力作用下以及最大转动速度Vmax的助力下转动,以带动清洁机器人行驶的场景。Also taking the cleaning robot as an example, the above process is applicable to the gradual increase of the pressure applied by the user on the pressure sensor, so that the converted pressure pulse frequency f reaches the high frequency threshold f High , and the control unit directly determines the maximum rotation speed V max as The target rotation speed V goal , the chassis hub of the cleaning robot rotates under the thrust of the user and the assistance of the maximum rotation speed V max to drive the cleaning robot to drive.
本实施例中,在预设频率阈值包括低频率阈值和高频率阈值的情况下,控制单元根据得到的压力脉冲频率与低频率阈值和高频率阈值的大小关系确定对应目标转动速度,具体在压力脉冲频率小于或等于低频率阈值的情况下,确定目标转动速度为0;在压力脉冲频率大于低频率阈值且小于高频率阈值,则根据压力脉冲频率、高频率阈值和最大转动速度得到目标转动速度;在压力脉冲频率大于或等于高频率阈值的情况下,确定目标转动速度为最大转动速度。以此实现对于机器人行驶速度的多级调控,满足用户的不同需求。In this embodiment, when the preset frequency threshold includes a low frequency threshold and a high frequency threshold, the control unit determines the corresponding target rotation speed according to the obtained relationship between the pressure pulse frequency and the low frequency threshold and the high frequency threshold, specifically in the pressure When the pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0; when the pressure pulse frequency is greater than the low frequency threshold and less than the high frequency threshold, the target rotation speed is obtained according to the pressure pulse frequency, high frequency threshold and maximum rotation speed ; When the pressure pulse frequency is greater than or equal to the high frequency threshold, determine the target rotation speed as the maximum rotation speed. In this way, the multi-level regulation of the robot's driving speed can be realized to meet the different needs of users.
如前所述,通过压力传感器所得到的压力数据是多种形式的参数,在一个可选地实施例中,在压力数据为压力值的情况下,上述S220、根据压力数据生成目标转动速度,则包括:As mentioned above, the pressure data obtained by the pressure sensor is a parameter in various forms. In an optional embodiment, when the pressure data is a pressure value, the above S220, generating the target rotation speed according to the pressure data, then include:
根据压力值和预设的压力速度关系库,确定目标转动速度。Determine the target rotation speed according to the pressure value and the preset pressure-speed relationship library.
其中,压力速度关系库中包括多个压力值与转动速度之间的对应关系。Wherein, the pressure-velocity relationship library includes a plurality of correspondences between pressure values and rotational speeds.
可选地,预设的压力速度关系库包括第一对应关系、第二对应关系以及第三对应关系。其中,第一对应关系包括小于第一压力阈值F1的压力值F对应第一转动速度V1;第二对应关系包括大于等于第一压力阈值F1且小于第二压力阈值F2的压力值F对应第二转动速度V2;第三对应关系包括大于第二压力阈值F2的压力值F对应第三转动速度V3。其中,F2>F1,V1<V2<V3。Optionally, the preset pressure-velocity relationship library includes a first correspondence relationship, a second correspondence relationship and a third correspondence relationship. Wherein, the first corresponding relationship includes that the pressure value F smaller than the first pressure threshold F1 corresponds to the first rotation speed V1; the second corresponding relationship includes that the pressure value F greater than or equal to the first pressure threshold F1 and smaller than the second pressure threshold F2 corresponds to the second The rotation speed V2; the third corresponding relationship includes that the pressure value F greater than the second pressure threshold F2 corresponds to the third rotation speed V3. Wherein, F2>F1, V1<V2<V3.
可选地,第一转动速度V1、第二转动速度V2以及第三转动速度V3可是速度常量。例如,V1=0,V2=0~Vmax,V3=Vmax。也可以是速度变量,并随着压力值F的增大以不同的加速度a增大。例如,在第一对应关系中,V1=a1*t;在第二对应关系中,V2=V1+a2*t;在第三对应关系中,V3=V2+a3*t;其中,V1≥0,V3≤Vmax,a1=a3<a2(其中,t表示时间)。Alternatively, the first rotational speed V1 , the second rotational speed V2 and the third rotational speed V3 may be constant speeds. For example, V1=0, V2= 0˜V max , V3=V max . It can also be a velocity variable and increases with a different acceleration a as the pressure value F increases. For example, in the first correspondence, V1=a1*t; in the second correspondence, V2=V1+a2*t; in the third correspondence, V3=V2+a3*t; wherein, V1≥0 , V3≤V max , a1=a3<a2 (wherein, t represents time).
可选地,本实施例中第一对应关系包括:F<F1时,V1=0;第二对应关系包括:F1≤F<F2时,V2=a*t;F>F2时,V3=Vmax。Optionally, the first correspondence in this embodiment includes: when F<F1, V1=0; the second correspondence includes: when F1≤F<F2, V2=a*t; when F>F2, V3=V max .
本实施例中,在压力数据为压力值的情况下,控制单元可根据压力值和预设的压力速度关系库,确定目标转动速度,而压力速度关系库中包括多个压力值与转动速度之间的对应关系,以涵盖多种调控方式,提高调控多样性满足用户不同的调控需求。In this embodiment, when the pressure data is a pressure value, the control unit can determine the target rotation speed according to the pressure value and the preset pressure-speed relationship library, and the pressure-speed relationship library includes multiple pressure values and rotation speeds. The corresponding relationship between them, to cover a variety of control methods, improve the diversity of control to meet the different control needs of users.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的速度调节方法的速度调节装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个速度调节装置实施例中的具体限定可以参见上文中对于速度调节方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a speed adjustment device for implementing the above-mentioned speed adjustment method. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in one or more embodiments of the speed adjustment device provided below can be referred to above for the limitation of the speed adjustment method, I won't repeat them here.
在一个实施例中,如图5所示,提供了一种速度调节装置,包括:压力获取模块501、速度确定模块502和助力控制模块503,其中:In one embodiment, as shown in FIG. 5 , a speed adjustment device is provided, including: a
压力获取模块501用于根据机器人上安装的压力传感器,获取当前时刻的压力数据;The
速度确定模块502用于根据压力数据生成目标转动速度;The
助力控制模块503用于控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。The power
在其中一个实施例中,压力数据为压力脉冲信号,压力脉冲信号为压力传感器根据压力传感器内部弹簧的形变生成;压力传感器内部弹簧的形变所产生的形变量用于表征用户对压力传感器施加的压力大小。In one embodiment, the pressure data is a pressure pulse signal, and the pressure pulse signal is generated by the pressure sensor according to the deformation of the internal spring of the pressure sensor; the deformation amount generated by the deformation of the internal spring of the pressure sensor is used to represent the pressure exerted by the user on the pressure sensor size.
在其中一个实施例中,速度确定模块502具体用于:In one of the embodiments, the
根据压力脉冲信号,获取压力脉冲频率;根据压力脉冲频率和预设频率阈值,确定目标转动速度。Obtain the pressure pulse frequency according to the pressure pulse signal; determine the target rotation speed according to the pressure pulse frequency and a preset frequency threshold.
在其中一个实施例中,预设频率阈值包括低频率阈值和高频率阈值,速度确定模块502具体用于:In one of the embodiments, the preset frequency threshold includes a low frequency threshold and a high frequency threshold, and the
若压力脉冲频率小于或等于低频率阈值,确定目标转动速度为0;若压力脉冲频率大于低频率阈值且小于高频率阈值,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度;若压力脉冲频率大于或等于高频率阈值,确定目标转动速度为最大转动速度。If the pressure pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0; if the pressure pulse frequency is greater than the low frequency threshold and less than the high frequency threshold, generate the target rotation speed according to the pressure pulse frequency, the high frequency threshold and the maximum rotation speed; if If the pressure pulse frequency is greater than or equal to the high frequency threshold, it is determined that the target rotation speed is the maximum rotation speed.
在其中一个实施例中,速度确定模块502具体用于:In one of the embodiments, the
根据压力脉冲频率与高频率阈值的比值和目标转动速度与最大转动速度的比值相同,得到目标转动速度。According to the ratio of the pressure pulse frequency to the high frequency threshold and the ratio of the target rotation speed to the maximum rotation speed, the target rotation speed is obtained.
在其中一个实施例中,若压力数据为压力值,速度确定模块502具体用于:In one of the embodiments, if the pressure data is a pressure value, the
根据压力值和预设的压力速度关系库,确定目标转动速度;压力速度关系库中包括多个压力值与转动速度之间的对应关系。The target rotation speed is determined according to the pressure value and a preset pressure-speed relationship library; the pressure-speed relationship library includes a plurality of corresponding relationships between pressure values and rotation speeds.
上述速度调节装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned speed regulating device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种机器人,该机器人可以是计算机设备,其内部结构图可以如图6所示。该机器人包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该机器人的处理器用于提供计算和控制能力。该机器人的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该机器人的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种速度调节方法。该机器人的显示屏可以是液晶显示屏或者电子墨水显示屏,该机器人的输入装置可以是显示屏上覆盖的触摸层,也可以是机器人外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a robot is provided. The robot may be a computer device, and its internal structure may be as shown in FIG. 6 . The robot includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the robot's processor is used to provide computing and control capabilities. The memory of the robot includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the robot is used for wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program implements a speed regulation method when executed by a processor. The display screen of the robot can be a liquid crystal display screen or an electronic ink display screen, and the input device of the robot can be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the robot shell, or It is an external keyboard, trackpad or mouse.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的机器人的限定,具体的机器人可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 6 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the robot on which the solution of this application is applied. More or fewer components are shown in the figures, or certain components are combined, or have different component arrangements.
在一个实施例中,提供了一种机器人,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a robot is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;根据压力数据生成目标转动速度;控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。According to the pressure sensor installed on the robot, the pressure data at the current moment is obtained; the target rotation speed is generated according to the pressure data; the chassis hub on the robot is controlled to rotate at the target rotation speed to assist the robot to drive.
在其中一个实施例中,压力数据为压力脉冲信号,压力脉冲信号为压力传感器根据压力传感器内部弹簧的形变生成;压力传感器内部弹簧的形变所产生的形变量用于表征用户对压力传感器施加的压力大小。In one embodiment, the pressure data is a pressure pulse signal, and the pressure pulse signal is generated by the pressure sensor according to the deformation of the internal spring of the pressure sensor; the deformation amount generated by the deformation of the internal spring of the pressure sensor is used to represent the pressure exerted by the user on the pressure sensor size.
在其中一个实施例中,处理器执行计算机程序时还实现以下步骤:In one of the embodiments, when the processor executes the computer program, the following steps are also implemented:
根据压力脉冲信号,获取压力脉冲频率;根据压力脉冲频率和预设频率阈值,确定目标转动速度。Obtain the pressure pulse frequency according to the pressure pulse signal; determine the target rotation speed according to the pressure pulse frequency and a preset frequency threshold.
在其中一个实施例中,预设频率阈值包括低频率阈值和高频率阈值,处理器执行计算机程序时还实现以下步骤:In one of the embodiments, the preset frequency threshold includes a low frequency threshold and a high frequency threshold, and the processor also implements the following steps when executing the computer program:
若压力脉冲频率小于或等于低频率阈值,确定目标转动速度为0;若压力脉冲频率大于低频率阈值且小于高频率阈值,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度;若压力脉冲频率大于或等于高频率阈值,确定目标转动速度为最大转动速度。If the pressure pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0; if the pressure pulse frequency is greater than the low frequency threshold and less than the high frequency threshold, generate the target rotation speed according to the pressure pulse frequency, the high frequency threshold and the maximum rotation speed; if If the pressure pulse frequency is greater than or equal to the high frequency threshold, it is determined that the target rotation speed is the maximum rotation speed.
在其中一个实施例中,处理器执行计算机程序时还实现以下步骤:In one of the embodiments, when the processor executes the computer program, the following steps are also implemented:
根据压力脉冲频率与高频率阈值的比值和目标转动速度与最大转动速度的比值相同,得到目标转动速度。According to the ratio of the pressure pulse frequency to the high frequency threshold and the ratio of the target rotation speed to the maximum rotation speed, the target rotation speed is obtained.
在其中一个实施例中,若压力数据为压力值,处理器执行计算机程序时还实现以下步骤:In one of the embodiments, if the pressure data is a pressure value, the processor also implements the following steps when executing the computer program:
根据压力值和预设的压力速度关系库,确定目标转动速度;压力速度关系库中包括多个压力值与转动速度之间的对应关系。The target rotation speed is determined according to the pressure value and a preset pressure-speed relationship library; the pressure-speed relationship library includes a plurality of corresponding relationships between pressure values and rotation speeds.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;根据压力数据生成目标转动速度;控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。According to the pressure sensor installed on the robot, the pressure data at the current moment is obtained; the target rotation speed is generated according to the pressure data; the chassis hub on the robot is controlled to rotate at the target rotation speed to assist the robot to drive.
在其中一个实施例中,压力数据为压力脉冲信号,压力脉冲信号为压力传感器根据压力传感器内部弹簧的形变生成;压力传感器内部弹簧的形变所产生的形变量用于表征用户对压力传感器施加的压力大小。In one embodiment, the pressure data is a pressure pulse signal, and the pressure pulse signal is generated by the pressure sensor according to the deformation of the internal spring of the pressure sensor; the deformation amount generated by the deformation of the internal spring of the pressure sensor is used to represent the pressure exerted by the user on the pressure sensor size.
在其中一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented:
根据压力脉冲信号,获取压力脉冲频率;根据压力脉冲频率和预设频率阈值,确定目标转动速度。Obtain the pressure pulse frequency according to the pressure pulse signal; determine the target rotation speed according to the pressure pulse frequency and a preset frequency threshold.
在其中一个实施例中,预设频率阈值包括低频率阈值和高频率阈值,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, the preset frequency threshold includes a low frequency threshold and a high frequency threshold, and the computer program also implements the following steps when executed by the processor:
若压力脉冲频率小于或等于低频率阈值,确定目标转动速度为0;若压力脉冲频率大于低频率阈值且小于高频率阈值,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度;若压力脉冲频率大于或等于高频率阈值,确定目标转动速度为最大转动速度。If the pressure pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0; if the pressure pulse frequency is greater than the low frequency threshold and less than the high frequency threshold, generate the target rotation speed according to the pressure pulse frequency, the high frequency threshold and the maximum rotation speed; if If the pressure pulse frequency is greater than or equal to the high frequency threshold, it is determined that the target rotation speed is the maximum rotation speed.
在其中一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented:
根据压力脉冲频率与高频率阈值的比值和目标转动速度与最大转动速度的比值相同,得到目标转动速度。According to the ratio of the pressure pulse frequency to the high frequency threshold and the ratio of the target rotation speed to the maximum rotation speed, the target rotation speed is obtained.
在其中一个实施例中,若压力数据为压力值,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, if the pressure data is a pressure value, the computer program also implements the following steps when executed by the processor:
根据压力值和预设的压力速度关系库,确定目标转动速度;压力速度关系库中包括多个压力值与转动速度之间的对应关系。The target rotation speed is determined according to the pressure value and a preset pressure-speed relationship library; the pressure-speed relationship library includes a plurality of corresponding relationships between pressure values and rotation speeds.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
根据机器人上安装的压力传感器,获取当前时刻的压力数据;根据压力数据生成目标转动速度;控制机器人上的底盘轮毂以目标转动速度转动,以助力机器人行驶。According to the pressure sensor installed on the robot, the pressure data at the current moment is obtained; the target rotation speed is generated according to the pressure data; the chassis hub on the robot is controlled to rotate at the target rotation speed to assist the robot to drive.
在其中一个实施例中,压力数据为压力脉冲信号,压力脉冲信号为压力传感器根据压力传感器内部弹簧的形变生成;压力传感器内部弹簧的形变所产生的形变量用于表征用户对压力传感器施加的压力大小。In one embodiment, the pressure data is a pressure pulse signal, and the pressure pulse signal is generated by the pressure sensor according to the deformation of the internal spring of the pressure sensor; the deformation amount generated by the deformation of the internal spring of the pressure sensor is used to represent the pressure exerted by the user on the pressure sensor size.
在其中一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented:
根据压力脉冲信号,获取压力脉冲频率;根据压力脉冲频率和预设频率阈值,确定目标转动速度。Obtain the pressure pulse frequency according to the pressure pulse signal; determine the target rotation speed according to the pressure pulse frequency and a preset frequency threshold.
在其中一个实施例中,预设频率阈值包括低频率阈值和高频率阈值,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, the preset frequency threshold includes a low frequency threshold and a high frequency threshold, and the computer program also implements the following steps when executed by the processor:
若压力脉冲频率小于或等于低频率阈值,确定目标转动速度为0;若压力脉冲频率大于低频率阈值且小于高频率阈值,根据压力脉冲频率、高频率阈值和最大转动速度生成目标转动速度;若压力脉冲频率大于或等于高频率阈值,确定目标转动速度为最大转动速度。If the pressure pulse frequency is less than or equal to the low frequency threshold, determine that the target rotation speed is 0; if the pressure pulse frequency is greater than the low frequency threshold and less than the high frequency threshold, generate the target rotation speed according to the pressure pulse frequency, the high frequency threshold and the maximum rotation speed; if If the pressure pulse frequency is greater than or equal to the high frequency threshold, it is determined that the target rotation speed is the maximum rotation speed.
在其中一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, when the computer program is executed by the processor, the following steps are also implemented:
根据压力脉冲频率与高频率阈值的比值和目标转动速度与最大转动速度的比值相同,得到目标转动速度。According to the ratio of the pressure pulse frequency to the high frequency threshold and the ratio of the target rotation speed to the maximum rotation speed, the target rotation speed is obtained.
在其中一个实施例中,若压力数据为压力值,计算机程序被处理器执行时还实现以下步骤:In one of the embodiments, if the pressure data is a pressure value, the computer program also implements the following steps when executed by the processor:
根据压力值和预设的压力速度关系库,确定目标转动速度;压力速度关系库中包括多个压力值与转动速度之间的对应关系。The target rotation speed is determined according to the pressure value and a preset pressure-speed relationship library; the pressure-speed relationship library includes a plurality of corresponding relationships between pressure values and rotation speeds.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration and not a limitation, the RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211283341.5A CN115562289A (en) | 2022-10-20 | 2022-10-20 | Speed adjusting method, speed adjusting device, robot, storage medium and program product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211283341.5A CN115562289A (en) | 2022-10-20 | 2022-10-20 | Speed adjusting method, speed adjusting device, robot, storage medium and program product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115562289A true CN115562289A (en) | 2023-01-03 |
Family
ID=84746898
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211283341.5A Pending CN115562289A (en) | 2022-10-20 | 2022-10-20 | Speed adjusting method, speed adjusting device, robot, storage medium and program product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115562289A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140053642A1 (en) * | 2011-04-08 | 2014-02-27 | Willibald Reitmeier | Method and device for measuring the rotational speed of a turbocompressor, and motor vehicle |
| CN107374917A (en) * | 2017-06-28 | 2017-11-24 | 长安大学 | Electronic body weight loss of weight mechanism and motion control method |
| CN109876390A (en) * | 2019-02-28 | 2019-06-14 | 北京踏行天际科技发展有限公司 | A kind of running machine control system, treadmill and treadmill control method |
| CN113442143A (en) * | 2021-08-10 | 2021-09-28 | 北京瑞医博科技有限公司 | Mechanical arm motion control method and device, controller and storage medium |
| CN114831569A (en) * | 2022-05-09 | 2022-08-02 | 添可智能科技有限公司 | Power-assisted control method and cleaning machine |
-
2022
- 2022-10-20 CN CN202211283341.5A patent/CN115562289A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140053642A1 (en) * | 2011-04-08 | 2014-02-27 | Willibald Reitmeier | Method and device for measuring the rotational speed of a turbocompressor, and motor vehicle |
| CN107374917A (en) * | 2017-06-28 | 2017-11-24 | 长安大学 | Electronic body weight loss of weight mechanism and motion control method |
| CN109876390A (en) * | 2019-02-28 | 2019-06-14 | 北京踏行天际科技发展有限公司 | A kind of running machine control system, treadmill and treadmill control method |
| CN113442143A (en) * | 2021-08-10 | 2021-09-28 | 北京瑞医博科技有限公司 | Mechanical arm motion control method and device, controller and storage medium |
| CN114831569A (en) * | 2022-05-09 | 2022-08-02 | 添可智能科技有限公司 | Power-assisted control method and cleaning machine |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240310920A1 (en) | Integrated haptic system | |
| US11341399B2 (en) | Reducing power consumption in a neural network processor by skipping processing operations | |
| US10914834B2 (en) | Low-power radar | |
| WO2020245563A1 (en) | Methods and apparatuses for providing a haptic output signal to a haptic actuator | |
| US9274602B2 (en) | Haptic actuator controller | |
| JP6749455B2 (en) | Motor driving method, terminal device, and computer-readable recording medium | |
| CN113227939B (en) | Using actuators as sensors for input | |
| US20200211337A1 (en) | Haptic signal conversion system | |
| CN104169843A (en) | Sparse sensing on interactive screens | |
| CN118541702A (en) | Analog or hybrid MAC neural network with reduced power consumption | |
| CN115562289A (en) | Speed adjusting method, speed adjusting device, robot, storage medium and program product | |
| US11216093B2 (en) | Systems, apparatus, and methods for detecting computing device inputs by a pointing body | |
| CN112085182A (en) | Data processing method, apparatus, computer equipment and storage medium | |
| CN116009754A (en) | Touch interaction method, device, circuit, computer equipment and storage medium | |
| CN106208297B (en) | Charging circuit, method for controlling charging of charging circuit and mobile terminal | |
| WO2023113906A1 (en) | Analog mac aware dnn improvement | |
| CN110458286A (en) | Data processing method, device, computer equipment and storage medium | |
| US20250232162A1 (en) | Method and apparatus for improved generative ai models | |
| US12154027B2 (en) | Increased precision neural processing element | |
| CN112656376A (en) | Method and equipment for diagnosing pulse by pulse diagnosing equipment | |
| US20200409663A1 (en) | Neural processing element with single instruction multiple data (simd) compute lanes | |
| CN116331213B (en) | Planetary gear noise control methods, devices, computer equipment, and storage media | |
| KR20250072412A (en) | System-on-chip and electronic devices including system-on-chip for low-power edge ai support | |
| US20210272427A1 (en) | Tactile sensation providing apparatus, tactile sensation providing system, control method, and non-transitory recording medium | |
| CN115120065A (en) | Swing control method and system, electronic device and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |