[go: up one dir, main page]

CN114995203A - Robot control method and device, computer readable storage medium and controller - Google Patents

Robot control method and device, computer readable storage medium and controller Download PDF

Info

Publication number
CN114995203A
CN114995203A CN202210816067.7A CN202210816067A CN114995203A CN 114995203 A CN114995203 A CN 114995203A CN 202210816067 A CN202210816067 A CN 202210816067A CN 114995203 A CN114995203 A CN 114995203A
Authority
CN
China
Prior art keywords
robot
operation mode
mode
enter
control
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.)
Granted
Application number
CN202210816067.7A
Other languages
Chinese (zh)
Other versions
CN114995203B (en
Inventor
颜鲁齐
殷伟豪
张锋
刘子静
滕悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202210816067.7A priority Critical patent/CN114995203B/en
Publication of CN114995203A publication Critical patent/CN114995203A/en
Application granted granted Critical
Publication of CN114995203B publication Critical patent/CN114995203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Manipulator (AREA)

Abstract

本申请提供了一种机器人的控制方法、装置、计算机可读存储介质及控制器,该方法包括:在机器人处于外部自动模式,且当示教器与机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,第一运行模式为示教器欲控制机器人进入的运行模式,第二运行模式为控制器欲控制机器人进入的运行模式,至少根据机器人的状态,确定机器人进入第一运行模式或者第二运行模式。从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。

Figure 202210816067

The present application provides a control method, device, computer-readable storage medium, and controller for a robot. The method includes: when the robot is in an external automatic mode, and when a teaching pendant establishes a communication connection with the robot, determining a first Operation mode and second operation mode, wherein the first operation mode is the operation mode that the teach pendant wants to control the robot to enter, and the second operation mode is the operation mode that the controller wants to control the robot to enter. At least according to the state of the robot, it is determined that the robot enters The first operating mode or the second operating mode. Therefore, when the robot is in the external automatic mode, the robot can still run according to the instruction of the teach pendant, and the teach pendant can still participate in the control of the robot, thus solving the problem that the existing solution can only be used after switching to the external automatic mode. The problem of controlling the operating mode of the robot by adjusting the position of the switch electrically connected to the robot to select the controller.

Figure 202210816067

Description

机器人的控制方法、装置、计算机可读存储介质及控制器Robot control method, device, computer-readable storage medium, and controller

技术领域technical field

本申请涉及机器人控制领域,具体而言,涉及一种机器人的控制方法、装置、计算机可读存储介质及控制器。The present application relates to the field of robot control, and in particular, to a robot control method, device, computer-readable storage medium, and controller.

背景技术Background technique

机器人外部自动模式是指机器人可以不通过示教器实现对机器人的控制,如:启动、暂停等。Robot external automatic mode means that the robot can control the robot without using the teach pendant, such as: start, pause, etc.

用户需要使用外部自动模式时,需求切换至外部自动模式,但是现有技术中切换至外部自动模式之后,示教器就无法对机器人进行控制了,只能对机器人进行监视,用户想要再让机器人工作只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式。When the user needs to use the external automatic mode, he needs to switch to the external automatic mode. However, after switching to the external automatic mode in the prior art, the teach pendant cannot control the robot and can only monitor the robot. The robot can work only by adjusting the position of the switch electrically connected to the robot to select the operation mode of the controller to control the robot.

发明内容SUMMARY OF THE INVENTION

本申请的主要目的在于提供一种机器人的控制方法、装置、计算机可读存储介质及控制器,以解决现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。The main purpose of the present application is to provide a robot control method, device, computer-readable storage medium and controller, so as to solve the problem that the existing solution can only adjust the position of the switch electrically connected to the robot after switching to the external automatic mode. The problem of choosing the operating mode of the controller to control the robot.

根据本发明实施例的一个方面,提供了一种机器人的控制方法,应用在所述机器人的控制器中,所述控制方法包括:在机器人处于外部自动模式,且当示教器与所述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,所述第一运行模式为示教器欲控制所述机器人进入的运行模式,所述第二运行模式为所述控制器欲控制所述机器人进入的运行模式,所述外部自动模式是指所述机器人不通过所述示教器实现对所述机器人的控制的运行模式;至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,其中,所述机器人的状态为以下之一:停止状态和运动状态。According to an aspect of the embodiments of the present invention, a method for controlling a robot is provided, which is applied in a controller of the robot, the control method comprising: when the robot is in an external automatic mode, and when a teach pendant is connected to the robot In the case of establishing a communication connection, determine a first operation mode and a second operation mode, wherein the first operation mode is the operation mode that the teach pendant wants to control the robot to enter, and the second operation mode is the control The external automatic mode refers to the operating mode in which the robot does not control the robot through the teach pendant; at least according to the state of the robot, determine the The robot enters the first operation mode or the second operation mode, wherein the state of the robot is one of the following: a stop state and a motion state.

可选地,至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式包括:在所述机器人的状态为所述停止状态的情况下,控制所述机器人进入所述第二运行模式;在所述机器人的状态为所述运动状态的情况下,根据所述第一运行模式和所述第二运行模式是否相同,确定所述机器人进入所述第一运行模式或者所述第二运行模式。Optionally, at least according to the state of the robot, determining that the robot enters the first operation mode or the second operation mode includes: when the state of the robot is the stop state, controlling the robot The robot enters the second operation mode; when the state of the robot is the motion state, it is determined that the robot enters the first operation mode according to whether the first operation mode and the second operation mode are the same the operating mode or the second operating mode.

可选地,在所述机器人的状态为所述运动状态的情况下,根据所述第一运行模式和所述第二运行模式是否相同,确定所述机器人进入所述第一运行模式或者所述第二运行模式包括:在所述第一运行模式和所述第二运行模式相同的情况下,控制所述机器人进入所述第二运行模式;在所述第一运行模式和所述第二运行模式不相同的情况下,在所述机器人的显示屏上显示选择标识,所述选择标识用于选择所述第一运行模式或者所述第二运行模式;响应于作用在所述选择标识上的操作,确定被选择的运行模式,并控制所述机器人进入所述被选择的运行模式。Optionally, when the state of the robot is the motion state, according to whether the first operation mode and the second operation mode are the same, it is determined that the robot enters the first operation mode or the The second operation mode includes: when the first operation mode and the second operation mode are the same, controlling the robot to enter the second operation mode; in the first operation mode and the second operation mode When the modes are different, a selection mark is displayed on the display screen of the robot, and the selection mark is used to select the first operation mode or the second operation mode; operation, determine the selected operating mode, and control the robot to enter the selected operating mode.

可选地,所述选择标识包括第一标识和第二标识,所述第一标识用于表征所述第一运行模式,所述第二标识用于表征所述第二运行模式,响应于作用在所述选择标识上的操作,确定被选择的运行模式,并控制所述机器人进入所述被选择的运行模式包括:响应于作用在所述第一标识上的操作,确定所述被选择的运行模式为所述第一运行模式,控制所述机器人进入所述第一运行模式;响应于作用在所述第二标识上的操作,确定所述被选择的运行模式为所述第二运行模式,控制所述机器人进入所述第二运行模式。Optionally, the selection identification includes a first identification and a second identification, the first identification is used to characterize the first operation mode, and the second identification is used to characterize the second operation mode, in response to the action The operation on the selection marker, determining the selected operation mode, and controlling the robot to enter the selected operation mode includes: in response to the operation acting on the first marker, determining the selected operation mode The operation mode is the first operation mode, and the robot is controlled to enter the first operation mode; in response to the operation acting on the second marker, it is determined that the selected operation mode is the second operation mode , control the robot to enter the second operation mode.

可选地,在控制所述机器人进入所述第二运行模式之后,所述方法还包括:生成第一提示信息,且将所述第一提示信息显示在所述显示屏上,所述第一提示信息用于提示所述第一运行模式和所述第二运行模式不同,其中,基于所述第一提示信息调整所述示教器的模式选择开关的位置以使得所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式。Optionally, after controlling the robot to enter the second operation mode, the method further includes: generating first prompt information, and displaying the first prompt information on the display screen, the first prompt information The prompt information is used to prompt that the first operation mode and the second operation mode are different, wherein the position of the mode selection switch of the teach pendant is adjusted based on the first prompt information so that the teach pendant is to be controlled The operation mode entered by the robot is updated to the second operation mode.

可选地,控制所述机器人进入所述第一运行模式包括:将所述控制器欲控制所述机器人进入的运行模式更新为所述第一运行模式;控制所述机器人进入所述第一运行模式。Optionally, controlling the robot to enter the first operation mode includes: updating the operation mode that the controller intends to control the robot to enter to the first operation mode; controlling the robot to enter the first operation model.

可选地,所述方法还包括:在所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式之后,生成第二提示信息,且将所述第二提示信息显示在所述显示屏上,所述第二提示信息用于表征所述示教器欲控制所述机器人进入的运行模式已更新为所述第二运行模式。Optionally, the method further includes: after the operating mode that the teach pendant intends to control the robot to enter is updated to the second operating mode, generating second prompt information, and displaying the second prompt information On the display screen, the second prompt information is used to indicate that the operation mode that the teach pendant intends to control the robot to enter has been updated to the second operation mode.

可选地,所述第一运行模式为手动低速模式、手动高速模式和自动模式中的之一;所述第二运行模式为外部自动模式、手动低速模式、手动高速模式和自动模式中的之一。Optionally, the first operating mode is one of a manual low-speed mode, a manual high-speed mode, and an automatic mode; the second operating mode is one of an external automatic mode, a manual low-speed mode, a manual high-speed mode, and an automatic mode one.

根据本发明实施例的另一方面,还提供了一种机器人的控制装置,该装置包括获取单元和处理单元;获取单元用于在机器人处于外部自动模式,且当示教器与所述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,所述第一运行模式为示教器欲控制所述机器人进入的运行模式,所述第二运行模式为控制器欲控制所述机器人进入的运行模式,所述外部自动模式是指所述机器人不通过所述示教器实现对所述机器人的控制的运行模式;处理单元用于至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,其中,所述机器人的状态为以下之一:停止状态和运动状态。According to another aspect of the embodiments of the present invention, there is also provided a control device for a robot, the device includes an acquisition unit and a processing unit; the acquisition unit is used when the robot is in an external automatic mode, and when the teach pendant is established with the robot In the case of communication connection, determine a first operation mode and a second operation mode, wherein the first operation mode is the operation mode that the teach pendant wants to control the robot to enter, and the second operation mode is the controller that wants to control The operation mode that the robot enters, and the external automatic mode refers to the operation mode in which the robot does not control the robot through the teach pendant; the processing unit is used to determine the operation mode at least according to the state of the robot. The robot enters the first operation mode or the second operation mode, wherein the state of the robot is one of the following: a stop state and a motion state.

根据本发明实施例的另一方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,所述程序执行任意一种所述的机器人的控制方法。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, and the computer-readable storage medium includes a stored program, wherein the program executes any one of the robot control methods.

根据本发明实施例的另一方面,还提供了一种控制器,该控制器包括一个或多个处理器,存储器以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行,所述一个或多个程序包括用于执行任意一种所述的机器人的控制方法。According to another aspect of the embodiments of the present invention, there is also provided a controller comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the in said memory and configured to be executed by said one or more processors, said one or more programs comprising a control method for executing any one of said robots.

在本发明实施例中,通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。In the embodiment of the present invention, it is determined that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, so as to realize that when the robot is in the external automatic mode, the robot can still Make the robot run according to the instruction of the teach pendant, and then the teach pendant can still participate in the control of the robot, thus solving the problem that the existing solution can only select the controller control by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode. Problems with the operation mode of the robot.

附图说明Description of drawings

构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The accompanying drawings that form a part of the present application are used to provide further understanding of the present application, and the schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute improper limitations on the present application. In the attached image:

图1示出了根据本申请实施例的机器人的控制方法的流程图;1 shows a flowchart of a method for controlling a robot according to an embodiment of the present application;

图2示出了根据本申请实施例的机器人的控制装置的示意图;FIG. 2 shows a schematic diagram of a control device of a robot according to an embodiment of the present application;

图3示出了根据本申请实施例的机器人的控制方案的流程图。FIG. 3 shows a flowchart of a control scheme of a robot according to an embodiment of the present application.

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances for the embodiments of the application described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

应该理解的是,当元件(诸如层、膜、区域、或衬底)描述为在另一元件“上”时,该元件可直接在该另一元件上,或者也可存在中间元件。而且,在说明书以及权利要求书中,当描述有元件“连接”至另一元件时,该元件可“直接连接”至该另一元件,或者通过第三元件“连接”至该另一元件。It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element can be "directly connected" to the other element or "connected" to the other element through a third element.

正如背景技术中所说的,现有技术中切换至外部自动模式之后,示教器就无法对机器人进行控制了,只能对机器人进行监视,用户想要再让机器人工作只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式,为了解决现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题,本申请的一种典型的实施方式中,提供了一种机器人的控制方法、装置、计算机可读存储介质及控制器。As mentioned in the background art, after switching to the external automatic mode in the prior art, the teach pendant cannot control the robot, but can only monitor the robot. If the user wants to make the robot work, he can only adjust and communicate with the robot. The position of the electrically connected switch is used to select the operation mode of the controller to control the robot. In order to solve the problem that the controller can only control the operation mode of the robot by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode. Problem, in a typical embodiment of the present application, a control method, device, computer-readable storage medium, and controller of a robot are provided.

根据本申请的实施例,提供了一种机器人的控制方法。According to an embodiment of the present application, a method for controlling a robot is provided.

图1是根据本申请实施例的机器人的控制方法的流程图。如图1所示,该方法应用在所述机器人的控制器中,该方法包括以下步骤:FIG. 1 is a flowchart of a control method of a robot according to an embodiment of the present application. As shown in Figure 1, the method is applied in the controller of the robot, and the method includes the following steps:

步骤S101,在机器人处于外部自动模式,且当示教器与上述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,上述第一运行模式为示教器欲控制上述机器人进入的运行模式,上述第二运行模式为上述控制器欲控制上述机器人进入的运行模式,上述外部自动模式是指上述机器人不通过上述示教器实现对上述机器人的控制的运行模式;Step S101, when the robot is in an external automatic mode, and when the teach pendant establishes a communication connection with the robot, determine a first operation mode and a second operation mode, wherein the first operation mode is that the teach pendant wants to control the above The operation mode that the robot enters, the second operation mode is the operation mode that the controller wants to control the robot to enter, and the external automatic mode refers to the operation mode that the robot does not control the robot through the teach pendant;

步骤S102,至少根据上述机器人的状态,确定上述机器人进入上述第一运行模式或者上述第二运行模式,其中,上述机器人的状态为以下之一:停止状态和运动状态。Step S102, at least according to the state of the robot, it is determined that the robot enters the first operation mode or the second operation mode, wherein the state of the robot is one of the following: a stop state and a motion state.

上述步骤中,通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。In the above steps, it is determined that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, so as to realize that the robot is in the external automatic mode. The instruction of the teach pendant runs, and the teach pendant can still participate in controlling the robot, thus solving the problem that the existing solution can only control the operation of the robot by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode. mode problem.

需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowcharts of the accompanying drawings may be executed in a computer system, such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowcharts, in some cases, Steps shown or described may be performed in an order different from that herein.

在本申请的一种实施例中,至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式包括:在所述机器人的状态为所述停止状态的情况下,控制所述机器人进入所述第二运行模式;在所述机器人的状态为所述运动状态的情况下,根据所述第一运行模式和所述第二运行模式是否相同,确定所述机器人进入所述第一运行模式或者所述第二运行模式。In an embodiment of the present application, determining that the robot enters the first operation mode or the second operation mode according to at least the state of the robot includes: when the state of the robot is the stop state In this case, control the robot to enter the second operation mode; in the case that the state of the robot is the motion state, determine the The robot enters the first operating mode or the second operating mode.

具体地,例如机器人状态为停止状态的情况下,按照控制器的指示来控制机器人,即控制器按照控制器所指示的第二运行模式来驱动机器人运行。使得机器人为停止状态时,无需人工操作即可控制机器人。Specifically, for example, when the state of the robot is in the stopped state, the robot is controlled according to the instruction of the controller, that is, the controller drives the robot to run according to the second operation mode instructed by the controller. When the robot is in a stopped state, the robot can be controlled without manual operation.

在本申请的一种实施例中,在所述机器人的状态为所述运动状态的情况下,根据所述第一运行模式和所述第二运行模式是否相同,确定所述机器人进入所述第一运行模式或者所述第二运行模式包括:在所述第一运行模式和所述第二运行模式相同的情况下,控制所述机器人进入所述第二运行模式;在所述第一运行模式和所述第二运行模式不相同的情况下,在所述机器人的显示屏上显示选择标识,所述选择标识用于选择所述第一运行模式或者所述第二运行模式;响应于作用在所述选择标识上的操作,确定被选择的运行模式,并控制所述机器人进入所述被选择的运行模式。In an embodiment of the present application, when the state of the robot is the motion state, it is determined that the robot enters the first operation mode according to whether the first operation mode and the second operation mode are the same. An operation mode or the second operation mode includes: when the first operation mode and the second operation mode are the same, controlling the robot to enter the second operation mode; in the first operation mode In the case of being different from the second operation mode, a selection mark is displayed on the display screen of the robot, and the selection mark is used to select the first operation mode or the second operation mode; The operation on the selection flag determines the selected operation mode, and controls the robot to enter the selected operation mode.

具体地,例如,在所述机器人的状态为所述运动状态,且第一运行模式和第二运行模式均为手动低速模式的情况下,控制机器人进入手动低速模式;又例如,在所述机器人的状态为所述运动状态,且第一运行模式为手动低速模式,第二运行模式为手动高速模式的情况下,所述机器人的显示屏上显示两个选项框(即选择标识,本申请不限于选项框和选择标识两种实施例),分别为第一选项框和第二选项框,第一选项框对应手动低速模式,第二选项框对应手动高速模式,若选择第一选项框,则控制机器人进入手动低速模式,若选择第二选项框,则控制机器人进入手动高速模式。Specifically, for example, when the state of the robot is the motion state, and the first operation mode and the second operation mode are both the manual low-speed mode, the robot is controlled to enter the manual low-speed mode; for another example, when the robot is in the manual low-speed mode When the state of the robot is the motion state, and the first operation mode is the manual low-speed mode, and the second operation mode is the manual high-speed mode, two option boxes are displayed on the display screen of the robot (that is, the selection mark, this application does not (limited to two embodiments of option box and selection mark), respectively the first option box and the second option box, the first option box corresponds to the manual low-speed mode, the second option box corresponds to the manual high-speed mode, if the first option box is selected, then Control the robot to enter the manual low-speed mode. If the second option box is selected, control the robot to enter the manual high-speed mode.

在本申请的一种实施例中,所述选择标识包括第一标识和第二标识,所述第一标识用于表征所述第一运行模式,所述第二标识用于表征所述第二运行模式,响应于作用在所述选择标识上的操作,确定被选择的运行模式,并控制所述机器人进入所述被选择的运行模式包括:响应于作用在所述第一标识上的操作,确定所述被选择的运行模式为所述第一运行模式,控制所述机器人进入所述第一运行模式;响应于作用在所述第二标识上的操作,确定所述被选择的运行模式为所述第二运行模式,控制所述机器人进入所述第二运行模式。通过作用在所述选择标识上的操作,从而确定被选择的运行模式。In an embodiment of the present application, the selection identifier includes a first identifier and a second identifier, the first identifier is used to represent the first operating mode, and the second identifier is used to represent the second In the operation mode, determining the selected operation mode in response to the operation acting on the selection marker, and controlling the robot to enter the selected operation mode includes: in response to the operation acting on the first marker, determining that the selected operation mode is the first operation mode, and controlling the robot to enter the first operation mode; in response to an operation acting on the second marker, determining that the selected operation mode is In the second operation mode, the robot is controlled to enter the second operation mode. The selected operation mode is determined by the operation acting on the selection flag.

在本申请的一种实施例中,在控制所述机器人进入所述第二运行模式之后,所述方法还包括:生成第一提示信息,且将所述第一提示信息显示在所述显示屏上,所述第一提示信息用于提示所述第一运行模式和所述第二运行模式不同,其中,基于所述第一提示信息调整所述示教器的模式选择开关的位置以使得所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式。In an embodiment of the present application, after controlling the robot to enter the second operation mode, the method further includes: generating first prompt information, and displaying the first prompt information on the display screen Above, the first prompt information is used to prompt that the first operation mode and the second operation mode are different, wherein the position of the mode selection switch of the teach pendant is adjusted based on the first prompt information so that all The operation mode that the teach pendant intends to control the robot to enter is updated to the second operation mode.

具体地,例如,在所述机器人的状态为所述运动状态,且第一运行模式为手动低速模式,第二运行模式为手动高速模式的情况下,所述机器人的显示屏上显示两个选项框,分别为第一选项框和第二选项框,第一选项框对应手动低速模式,第二选项框对应手动高速模式,选择第二选项框后,在所述显示屏上显示出提示信息,从而使得工作人员知悉此时所述示教器欲控制所述机器人进入的运行模式和所述控制器欲控制所述机器人进入的运行模式不同。Specifically, for example, when the state of the robot is the motion state, and the first operation mode is the manual low-speed mode, and the second operation mode is the manual high-speed mode, two options are displayed on the display screen of the robot box, respectively the first option box and the second option box, the first option box corresponds to the manual low-speed mode, the second option box corresponds to the manual high-speed mode, after selecting the second option box, a prompt message is displayed on the display screen, Therefore, the worker knows that the operation mode that the teach pendant wants to control the robot to enter is different from the operation mode that the controller wants to control the robot to enter.

在本申请的一种实施例中,控制所述机器人进入所述第一运行模式包括:将所述控制器欲控制所述机器人进入的运行模式更新为所述第一运行模式;控制所述机器人进入所述第一运行模式。In an embodiment of the present application, controlling the robot to enter the first operation mode includes: updating the operation mode that the controller intends to control the robot to enter to the first operation mode; controlling the robot Enter the first operating mode.

在本申请的一种实施例中,所述方法还包括:在所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式之后,生成第二提示信息,且将所述第二提示信息显示在所述显示屏上,所述第二提示信息用于表征所述示教器欲控制所述机器人进入的运行模式已更新为所述第二运行模式。便于其他工作人员知悉已将所述示教器欲控制所述机器人进入的运行模式和所述控制器欲控制所述机器人进入的运行模式保持一致。In an embodiment of the present application, the method further includes: after the operation mode that the teach pendant intends to control the robot to enter is updated to the second operation mode, generating second prompt information, and updating the operation mode to the second operation mode. The second prompt information is displayed on the display screen, and the second prompt information is used to indicate that the operation mode that the teach pendant intends to control the robot to enter has been updated to the second operation mode. It is convenient for other workers to know that the operation mode that the teach pendant wants to control the robot to enter and the operation mode that the controller wants to control the robot to enter have been kept consistent.

在本申请的一种实施例中,所述第一运行模式为手动低速模式、手动高速模式和自动模式中的之一;所述第二运行模式为外部自动模式、手动低速模式、手动高速模式和自动模式中的之一。In an embodiment of the present application, the first operating mode is one of a manual low-speed mode, a manual high-speed mode, and an automatic mode; the second operating mode is an external automatic mode, a manual low-speed mode, and a manual high-speed mode and one of the automatic modes.

本申请实施例还提供了一种机器人的控制装置,需要说明的是,本申请实施例的机器人的控制装置可以用于执行本申请实施例所提供的用于机器人的控制方法。以下对本申请实施例提供的机器人的控制装置进行介绍。The embodiment of the present application also provides a control device for a robot. It should be noted that the control device for a robot in the embodiment of the present application can be used to execute the control method for the robot provided by the embodiment of the present application. The following describes the control device of the robot provided by the embodiment of the present application.

图2是根据本申请实施例的机器人的控制装置的示意图。如图2所示,该装置包括获取单元10和处理单元20;FIG. 2 is a schematic diagram of a control device of a robot according to an embodiment of the present application. As shown in FIG. 2 , the device includes an acquisition unit 10 and a processing unit 20;

获取单元10用于在机器人处于外部自动模式,且当示教器与上述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,上述第一运行模式为示教器欲控制上述机器人进入的运行模式,上述第二运行模式为控制器欲控制上述机器人进入的运行模式,上述外部自动模式是指上述机器人不通过上述示教器实现对上述机器人的控制的运行模式;The acquisition unit 10 is used to determine the first operation mode and the second operation mode when the robot is in the external automatic mode and when the teach pendant establishes a communication connection with the above-mentioned robot, wherein the above-mentioned first operation mode is that the teach pendant wants to operate. The operation mode that the above-mentioned robot is controlled to enter, the above-mentioned second operation mode is the operation mode that the controller wants to control the above-mentioned robot to enter, and the above-mentioned external automatic mode refers to the above-mentioned robot without using the above-mentioned teaching pendant to realize the operation mode of controlling the above-mentioned robot;

处理单元20用于至少根据上述机器人的状态,确定上述机器人进入上述第一运行模式或者上述第二运行模式,其中,上述机器人的状态为以下之一:停止状态和运动状态。The processing unit 20 is configured to determine that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, wherein the state of the robot is one of the following: a stop state and a motion state.

上述装置中,通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。In the above device, it is determined that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, so as to realize that the robot is in the external automatic mode, and the robot can be made to follow the The instruction of the teach pendant runs, and the teach pendant can still participate in controlling the robot, thus solving the problem that the existing solution can only control the operation of the robot by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode. mode problem.

在本申请的一种实施例中,处理单元包括第一处理模块和第二处理模块,第一处理模块用于在所述机器人的状态为所述停止状态的情况下,控制所述机器人进入所述第二运行模式;第二处理模块用于在所述机器人的状态为所述运动状态的情况下,根据所述第一运行模式和所述第二运行模式是否相同,确定所述机器人进入所述第一运行模式或者所述第二运行模式。In an embodiment of the present application, the processing unit includes a first processing module and a second processing module, and the first processing module is configured to control the robot to enter the rest state when the state of the robot is the stop state. the second operation mode; the second processing module is configured to determine that the robot enters the desired state according to whether the first operation mode and the second operation mode are the same when the state of the robot is the motion state. the first operating mode or the second operating mode.

具体地,例如机器人状态为停止状态的情况下,按照控制器的指示来控制机器人,即控制器按照控制器所指示的第二运行模式来驱动机器人运行。使得机器人为停止状态时,无需人工操作即可控制机器人。Specifically, for example, when the state of the robot is in the stopped state, the robot is controlled according to the instruction of the controller, that is, the controller drives the robot to run according to the second operation mode instructed by the controller. When the robot is in a stopped state, the robot can be controlled without manual operation.

在本申请的一种实施例中,第二处理模块包括第一处理子模块、显示子模块和第二处理子模块,第一处理子模块用于在所述第一运行模式和所述第二运行模式相同的情况下,控制所述机器人进入所述第二运行模式;显示子模块用于在所述第一运行模式和所述第二运行模式不相同的情况下,在所述机器人的显示屏上显示选择标识,所述选择标识用于选择所述第一运行模式或者所述第二运行模式;第二处理子模块用于响应于作用在所述选择标识上的操作,确定被选择的运行模式,并控制所述机器人进入所述被选择的运行模式。In an embodiment of the present application, the second processing module includes a first processing sub-module, a display sub-module, and a second processing sub-module, and the first processing sub-module is used in the first operating mode and the second processing sub-module In the case of the same operation mode, the robot is controlled to enter the second operation mode; the display sub-module is used for displaying the robot when the first operation mode and the second operation mode are different. A selection mark is displayed on the screen, and the selection mark is used to select the first operation mode or the second operation mode; the second processing sub-module is used for determining the selected operation mode in response to the operation acting on the selection mark operation mode, and control the robot to enter the selected operation mode.

具体地,例如,在所述机器人的状态为所述运动状态,且第一运行模式和第二运行模式均为手动低速模式的情况下,控制机器人进入手动低速模式;又例如,在所述机器人的状态为所述运动状态,且第一运行模式为手动低速模式,第二运行模式为手动高速模式的情况下,所述机器人的显示屏上显示两个选项框(即选择标识,本申请不限于选项框和选择标识两种实施例),分别为第一选项框和第二选项框,第一选项框对应手动低速模式,第二选项框对应手动高速模式,若选择第一选项框,则控制机器人进入手动低速模式,若选择第二选项框,则控制机器人进入手动高速模式,选择标识还能够显示在示教器的显示屏上供工作人员操作。Specifically, for example, when the state of the robot is the motion state, and the first operation mode and the second operation mode are both the manual low-speed mode, the robot is controlled to enter the manual low-speed mode; for another example, when the robot is in the manual low-speed mode When the state of the robot is the motion state, and the first operation mode is the manual low-speed mode, and the second operation mode is the manual high-speed mode, two option boxes are displayed on the display screen of the robot (that is, the selection mark, this application does not (limited to two embodiments of option box and selection mark), respectively the first option box and the second option box, the first option box corresponds to the manual low-speed mode, the second option box corresponds to the manual high-speed mode, if the first option box is selected, then Control the robot to enter the manual low-speed mode. If the second option box is selected, the robot is controlled to enter the manual high-speed mode. The selection mark can also be displayed on the display screen of the teach pendant for the staff to operate.

在本申请的一种实施例中,所述选择标识包括第一标识和第二标识,所述第一标识用于表征所述第一运行模式,所述第二标识用于表征所述第二运行模式,第二处理子模块包括第一确定子模块和第二确定子模块;第一确定子模块用于响应于作用在所述第一标识上的操作,确定所述被选择的运行模式为所述第一运行模式,控制所述机器人进入所述第一运行模式;第二确定子模块用于响应于作用在所述第二标识上的操作,确定所述被选择的运行模式为所述第二运行模式,控制所述机器人进入所述第二运行模式。通过作用在所述选择标识上的操作,从而确定被选择的运行模式。In an embodiment of the present application, the selection identifier includes a first identifier and a second identifier, the first identifier is used to represent the first operating mode, and the second identifier is used to represent the second operation mode, the second processing sub-module includes a first determination sub-module and a second determination sub-module; the first determination sub-module is used to determine the selected operation mode in response to an operation acting on the first identifier In the first operation mode, the robot is controlled to enter the first operation mode; the second determination sub-module is configured to determine that the selected operation mode is the operation mode in response to the operation acting on the second mark A second operation mode, controlling the robot to enter the second operation mode. The selected operation mode is determined by the operation acting on the selection flag.

在本申请的一种实施例中,第二处理子模块包括第一生成子模块,在控制所述机器人进入所述第二运行模式之后,第一生成子模块用于生成第一提示信息,且将所述第一提示信息显示在所述显示屏上,所述第一提示信息用于提示所述第一运行模式和所述第二运行模式不同,其中,基于所述第一提示信息调整所述示教器的模式选择开关的位置以使得所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式。In an embodiment of the present application, the second processing submodule includes a first generation submodule, and after the robot is controlled to enter the second operation mode, the first generation submodule is configured to generate first prompt information, and The first prompt information is displayed on the display screen, and the first prompt information is used to prompt that the first operation mode and the second operation mode are different, wherein the adjustment of the first operation mode is based on the first prompt information. The position of the mode selection switch of the teach pendant is updated so that the operation mode that the teach pendant intends to control the robot to enter is updated to the second operation mode.

具体地,例如,在所述机器人的状态为所述运动状态,且第一运行模式为手动低速模式,第二运行模式为手动高速模式的情况下,所述机器人的显示屏上显示两个选项框,分别为第一选项框和第二选项框,第一选项框对应手动低速模式,第二选项框对应手动高速模式,选择第二选项框后,在所述显示屏上显示出提示信息,从而使得工作人员知悉此时所述示教器欲控制所述机器人进入的运行模式和所述控制器欲控制所述机器人进入的运行模式不同。Specifically, for example, when the state of the robot is the motion state, and the first operation mode is the manual low-speed mode, and the second operation mode is the manual high-speed mode, two options are displayed on the display screen of the robot box, respectively the first option box and the second option box, the first option box corresponds to the manual low-speed mode, the second option box corresponds to the manual high-speed mode, after selecting the second option box, a prompt message is displayed on the display screen, Therefore, the worker knows that the operation mode that the teach pendant wants to control the robot to enter is different from the operation mode that the controller wants to control the robot to enter.

在本申请的一种实施例中,第一处理子模块包括切换子模块和第三处理子模块,切换子模块用于将所述控制器欲控制所述机器人进入的运行模式更新为所述第一运行模式;第三处理子模块用于控制所述机器人进入所述第一运行模式。In an embodiment of the present application, the first processing sub-module includes a switching sub-module and a third processing sub-module, and the switching sub-module is used to update the operating mode that the controller intends to control the robot to enter to the third processing sub-module. an operation mode; the third processing sub-module is used to control the robot to enter the first operation mode.

在本申请的一种实施例中,第二处理子模块包括第二生成子模块,第二生成子模块用于在所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式之后,生成第二提示信息,且将所述第二提示信息显示在所述显示屏上,所述第二提示信息用于表征所述示教器欲控制所述机器人进入的运行模式已更新为所述第二运行模式。便于其他工作人员知悉已将所述示教器欲控制所述机器人进入的运行模式和所述控制器欲控制所述机器人进入的运行模式保持一致。In an embodiment of the present application, the second processing sub-module includes a second generating sub-module, and the second generating sub-module is configured to update the operating mode that the teach pendant wants to control the robot to enter to the second generating sub-module. After the operation mode, second prompt information is generated and displayed on the display screen. The second prompt information is used to indicate that the operation mode that the teach pendant wants to control the robot to enter has been completed. Update to the second operating mode. It is convenient for other workers to know that the operation mode that the teach pendant wants to control the robot to enter and the operation mode that the controller wants to control the robot to enter have been kept consistent.

在本申请的一种实施例中,所述第一运行模式为手动低速模式、手动高速模式和自动模式中的之一;所述第二运行模式为外部自动模式、手动低速模式、手动高速模式和自动模式中的之一。In an embodiment of the present application, the first operating mode is one of a manual low-speed mode, a manual high-speed mode, and an automatic mode; the second operating mode is an external automatic mode, a manual low-speed mode, and a manual high-speed mode and one of the automatic modes.

所述机器人的控制装置包括处理器和存储器,上述获取单元和处理单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The control device of the robot includes a processor and a memory. The acquisition unit and the processing unit are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来解决现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。The processor includes a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem that the existing solution can only select the operation mode of the controller to control the robot by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory (flash RAM), the memory including at least one memory chip.

本发明实施例提供了一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时实现所述机器人的控制方法。An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the control method of the robot is implemented.

本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述机器人的控制方法。An embodiment of the present invention provides a processor for running a program, wherein the control method of the robot is executed when the program is run.

本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现至少以下步骤:在机器人处于外部自动模式,且当示教器与所述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,所述第一运行模式为示教器欲控制所述机器人进入的运行模式,所述第二运行模式为所述控制器欲控制所述机器人进入的运行模式,所述外部自动模式是指所述机器人不通过所述示教器实现对所述机器人的控制的运行模式;至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,其中,所述机器人的状态为以下之一:停止状态和运动状态。本文中的设备可以是服务器、PC、PAD、手机等。An embodiment of the present invention provides a device. The device includes a processor, a memory, and a program stored in the memory and running on the processor. When the processor executes the program, at least the following steps are implemented: when the robot is in an external automatic mode, and when the robot is in an external automatic mode, When the teach pendant establishes a communication connection with the robot, determine a first operation mode and a second operation mode, wherein the first operation mode is the operation mode that the teach pendant wants to control the robot to enter, and the first operation mode is the operation mode that the teach pendant wants to control the robot to enter. The second operation mode is the operation mode that the controller wants to control the robot to enter, and the external automatic mode refers to the operation mode in which the robot does not control the robot through the teach pendant; at least according to the The state of the robot determines that the robot enters the first operation mode or the second operation mode, wherein the state of the robot is one of the following: a stop state and a motion state. The devices in this article can be servers, PCs, PADs, mobile phones, and so on.

本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有至少如下方法步骤的程序:在机器人处于外部自动模式,且当示教器与所述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,所述第一运行模式为示教器欲控制所述机器人进入的运行模式,所述第二运行模式为所述控制器欲控制所述机器人进入的运行模式,所述外部自动模式是指所述机器人不通过所述示教器实现对所述机器人的控制的运行模式;至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,其中,所述机器人的状态为以下之一:停止状态和运动状态。The application also provides a computer program product, when executed on a data processing device, adapted to execute a program initialized with at least the following method steps: when the robot is in an external automatic mode, and when the teach pendant establishes communication with the robot In the case of connection, determine a first operation mode and a second operation mode, wherein the first operation mode is the operation mode that the teach pendant wants to control the robot to enter, and the second operation mode is the operation mode that the controller wants to enter. an operation mode in which the robot is controlled to enter, and the external automatic mode refers to an operation mode in which the robot does not control the robot through the teach pendant; at least according to the state of the robot, it is determined that the robot enters In the first operation mode or the second operation mode, the state of the robot is one of the following: a stop state and a motion state.

本申请实施例还提供了一种控制器,该控制器包括一个或多个处理器,存储器以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置为由所述一个或多个处理器执行,所述一个或多个程序包括用于执行任意一种所述的机器人的控制方法。通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。An embodiment of the present application further provides a controller, the controller includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are Configured to be executed by the one or more processors, the one or more programs include a control method for executing any one of the described robots. By determining that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, it is realized that the robot can be made to follow the instruction of the teach pendant even when the robot is in the external automatic mode. Instruct the operation, and then the teach pendant can still participate in controlling the robot, thus solving the problem that the existing solution can only select the operation mode of the controller to control the robot by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode.

为了本领域技术人员能够更加清楚地了解本申请的技术方案,以下将结合具体的实施例来说明本申请的技术方案和技术效果。In order for those skilled in the art to understand the technical solutions of the present application more clearly, the technical solutions and technical effects of the present application will be described below with reference to specific embodiments.

实施例1Example 1

本申请实施例还提供了一种机器人的控制方案,图3根据本申请实施例的机器人的控制方案的流程图,如图3所示,包括以下步骤:The embodiment of the present application also provides a control scheme of a robot. FIG. 3 is a flowchart of the control scheme of the robot according to the embodiment of the present application, as shown in FIG. 3 , including the following steps:

步骤1:在机器人处于外部自动模式,且当示教器与上述机器人建立通信连接的情况下,确定第一运行模式、第二运行模式,其中,上述第一运行模式为示教器欲控制上述机器人进入的运行模式,上述第二运行模式为上述控制器欲控制上述机器人进入的运行模式,上述外部自动模式是指上述机器人不通过上述示教器实现对上述机器人的控制的运行模式;Step 1: When the robot is in the external automatic mode, and when the teach pendant establishes a communication connection with the above-mentioned robot, determine the first operation mode and the second operation mode, wherein the above-mentioned first operation mode is that the teach pendant wants to control the above-mentioned operation mode. The operation mode that the robot enters, the second operation mode is the operation mode that the controller wants to control the robot to enter, and the external automatic mode refers to the operation mode that the robot does not control the robot through the teach pendant;

步骤2:在所述机器人的状态为所述停止状态的情况下,控制所述机器人进入所述第二运行模式;在所述机器人的状态为所述运动状态的情况下,根据所述第一运行模式和所述第二运行模式是否相同,确定所述机器人进入所述第一运行模式或者所述第二运行模式;Step 2: when the state of the robot is the stop state, control the robot to enter the second operation mode; when the state of the robot is the motion state, according to the first Whether the operation mode and the second operation mode are the same, it is determined that the robot enters the first operation mode or the second operation mode;

步骤3:在所述第一运行模式和所述第二运行模式相同的情况下,控制所述机器人进入所述第二运行模式;在所述第一运行模式和所述第二运行模式不相同的情况下,在示教器的显示屏上显示选择标识(即以控制器状态为准还是以示教器状态为准,控制器状态为控制器欲控制上述机器人进入的运行模式,示教器状态同理,在此不再加以赘述),所述选择标识用于选择所述第一运行模式或者所述第二运行模式;响应于作用在所述选择标识上的操作,确定被选择的运行模式,并控制所述机器人进入所述被选择的运行模式;Step 3: if the first operation mode and the second operation mode are the same, control the robot to enter the second operation mode; if the first operation mode and the second operation mode are different In the case of , display the selection mark on the display screen of the teach pendant (that is, the state of the controller or the state of the teach pendant, the state of the controller is the operating mode that the controller wants to control the above robot The state is the same, and will not be repeated here), the selection flag is used to select the first operating mode or the second operating mode; in response to the operation acting on the selection flag, determine the selected operating mode mode, and control the robot to enter the selected operation mode;

步骤4:以控制器状态为准的情况下,控制机器人进入第二运行模式,并且在示教器的显示屏上显示第一提示信息,所述第一提示信息用于提示所述第一运行模式和所述第二运行模式不同,其中,基于所述第一提示信息调整所述示教器的模式选择开关的位置以使得所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式;Step 4: Controlling the robot to enter the second operation mode based on the state of the controller, and displaying first prompt information on the display screen of the teach pendant, where the first prompt information is used to prompt the first operation The mode is different from the second operation mode, wherein the position of the mode selection switch of the teach pendant is adjusted based on the first prompt information, so that the operation mode that the teach pendant wants to control the robot to enter is updated to the desired mode. the second operating mode;

步骤5:在所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式之后,生成第二提示信息,且将所述第二提示信息显示在示教器的显示屏上,所述第二提示信息用于表征所述示教器欲控制所述机器人进入的运行模式已更新为所述第二运行模式。Step 5: After the operation mode that the teach pendant wants to control the robot to enter is updated to the second operation mode, a second prompt message is generated, and the second prompt message is displayed on the display screen of the teach pendant Above, the second prompt information is used to indicate that the operation mode that the teach pendant intends to control the robot to enter has been updated to the second operation mode.

通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,或者进入所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。By determining that the robot enters the first operation mode or the second operation mode, or enters the second operation mode according to at least the state of the robot, it is realized that when the robot is in the external automatic mode, It can also make the robot run according to the instruction of the teach pendant, and then the teach pendant can still participate in the control of the robot, thus solving the problem that the existing solution can only select the control by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode. The controller controls the operation mode of the robot.

实施例2Example 2

本申请实施例还提供了一种机器人的控制系统,包括机器人和示教器,机器人包括控制器,示教器电连接至控制器的接口上,以实现示教器和控制器的通信;Embodiments of the present application also provide a control system for a robot, including a robot and a teach pendant, the robot includes a controller, and the teach pendant is electrically connected to an interface of the controller to implement communication between the teach pendant and the controller;

示教器上设有旋钮开关,旋钮开关具有第一位置、第二位置和第三位置,当旋钮开关位于第一位置时表示所述示教器欲控制上述机器人进入的运行模式为手动低速模式,当旋钮开关位于第二位置时表示所述示教器欲控制上述机器人进入的运行模式为手动高速模式,当旋钮开关位于第三位置时表示所述示教器欲控制上述机器人进入的运行模式为自动模式;There is a knob switch on the teach pendant, and the knob switch has a first position, a second position and a third position. When the knob switch is in the first position, it means that the operation mode that the teach pendant wants to control the robot to enter is manual low speed mode , when the knob switch is at the second position, it means that the operation mode that the teach pendant wants to control the robot to enter is the manual high-speed mode, and when the knob switch is at the third position, it means that the teach pendant wants to control the robot to enter the operation mode for automatic mode;

示教器具有第一显示屏,机器人具有第二显示屏,例如,机器人的第二显示屏和示教器的第一显示屏上均显示两个选项框(即选择标识,本申请不限于选项框和选择标识两种实施例),分别为第一选项框和第二选项框,第一选项框对应手动低速模式,第二选项框对应手动高速模式,若选择第一选项框,则控制机器人进入手动低速模式,若选择第二选项框,则控制机器人进入手动高速模式,手动低速模式为所述示教器欲控制上述机器人进入的运行模式,手动高速模式为控制器欲控制上述机器人进入的运行模式,且在选择第二选项框之后,第一显示屏和第二显示屏上均显示第一提示信息,所述第一提示信息用于提示控制器欲控制上述机器人进入的运行模式和示教器欲控制上述机器人进入的运行模式不同,其中,基于所述第一提示信息调整所述示教器的旋钮开关所处的位置以使得所述示教器欲控制所述机器人进入的运行模式更新为所述第二运行模式(即将旋钮开关从第二位置调整到第一位置)。The teach pendant has a first display screen, and the robot has a second display screen. For example, two option boxes (that is, selection signs, this application is not limited to options) are displayed on both the second display screen of the robot and the first display screen of the teach pendant. The first option box corresponds to the manual low-speed mode, and the second option box corresponds to the manual high-speed mode. If the first option box is selected, the robot will be controlled. Enter the manual low-speed mode, if the second option box is selected, the robot will be controlled to enter the manual high-speed mode. operation mode, and after selecting the second option box, first prompt information is displayed on both the first display screen and the second display screen, and the first prompt information is used to prompt the controller to control the operation mode and display of the robot to enter. The operation modes that the teach pendant wants to control the robot to enter are different, wherein the position of the knob switch of the teach pendant is adjusted based on the first prompt information so that the teach pendant wants to control the operation mode that the robot enters. Update to the second operating mode (ie, adjust the rotary switch from the second position to the first position).

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative, for example, the division of the units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

从以上的描述中,可以看出,本申请上述的实施例实现了如下技术效果:From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:

1)、本申请的机器人的控制方法,通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。1) The control method of the robot of the present application, by determining that the robot enters the first operation mode or the second operation mode at least according to the state of the robot, thereby realizing the situation that the robot is in the external automatic mode In this way, the robot can run according to the instruction of the teach pendant, and the teach pendant can still participate in the control of the robot, thus solving the problem that the existing solution can only adjust the position of the switch electrically connected to the robot after switching to the external automatic mode. The problem of choosing the operating mode of the controller to control the robot.

2)、本申请的机器人的控制装置,通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。2) The control device of the robot of the present application determines that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, thereby realizing the situation that the robot is in the external automatic mode In this way, the robot can run according to the instruction of the teach pendant, and the teach pendant can still participate in the control of the robot, thus solving the problem that the existing solution can only adjust the position of the switch electrically connected to the robot after switching to the external automatic mode. The problem of choosing the operating mode of the controller to control the robot.

3)、本申请的控制器,通过至少根据所述机器人的状态,确定所述机器人进入所述第一运行模式或者所述第二运行模式,从而实现了在机器人处于外部自动模式的情况下,还能使机器人按照示教器的指示运行,进而示教器依旧能够参与控制机器人,从而解决了现有方案在切换至外部自动模式后只能通过调节与机器人电连接的开关的位置以选择控制器控制机器人的运行模式的问题。3) The controller of the present application determines that the robot enters the first operation mode or the second operation mode according to at least the state of the robot, thereby realizing that when the robot is in the external automatic mode, It can also make the robot run according to the instruction of the teach pendant, and then the teach pendant can still participate in the control of the robot, thus solving the problem that the existing solution can only select the control by adjusting the position of the switch electrically connected to the robot after switching to the external automatic mode. The controller controls the operation mode of the robot.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (11)

1. A control method for a robot, applied to a controller of the robot, the control method comprising:
when a robot is in an external automatic mode, and when a demonstrator establishes communication connection with the robot, determining a first operation mode and a second operation mode, wherein the first operation mode is an operation mode in which the demonstrator intends to control the robot to enter, the second operation mode is an operation mode in which the controller intends to control the robot to enter, and the external automatic mode is an operation mode in which the robot does not realize control over the robot through the demonstrator;
determining that the robot enters the first operation mode or the second operation mode at least according to the state of the robot, wherein the state of the robot is one of the following: a stopped state and a moving state.
2. The method of claim 1, wherein determining that the robot enters the first mode of operation or the second mode of operation based at least on the state of the robot comprises:
controlling the robot to enter the second operation mode when the state of the robot is the stop state;
and under the condition that the state of the robot is the motion state, determining that the robot enters the first operation mode or the second operation mode according to whether the first operation mode and the second operation mode are the same.
3. The method of claim 2, wherein determining that the robot enters the first operation mode or the second operation mode according to whether the first operation mode and the second operation mode are the same in the case that the state of the robot is the motion state comprises:
under the condition that the first operation mode and the second operation mode are the same, controlling the robot to enter the second operation mode;
under the condition that the first operation mode is different from the second operation mode, displaying a selection identifier on a display screen of the robot, wherein the selection identifier is used for selecting the first operation mode or the second operation mode;
in response to an operation acting on the selection indicator, determining a selected operation mode, and controlling the robot to enter the selected operation mode.
4. The method of claim 3, wherein the selection indicator comprises a first indicator for characterizing the first operating mode and a second indicator for characterizing the second operating mode,
in response to an operation acting on the selection indicator, determining a selected operation mode and controlling the robot to enter the selected operation mode, including:
in response to an operation acting on the first identifier, determining that the selected operation mode is the first operation mode, and controlling the robot to enter the first operation mode;
and in response to an operation acting on the second identifier, determining the selected operation mode as the second operation mode, and controlling the robot to enter the second operation mode.
5. The method of claim 4, wherein after controlling the robot into the second mode of operation, the method further comprises:
generating first prompt information, and displaying the first prompt information on the display screen, wherein the first prompt information is used for prompting that the first operation mode is different from the second operation mode, and the position of a mode selection switch of the teach pendant is adjusted based on the first prompt information so that the operation mode of the teach pendant, which the robot is to be controlled to enter, is updated to the second operation mode.
6. The method of claim 4, wherein controlling the robot into the first mode of operation comprises:
updating the operation mode which the controller wants to control the robot to enter into the first operation mode;
controlling the robot to enter the first operation mode.
7. The method of claim 5, further comprising:
and after the operation mode which the teach pendant wants to control the robot to enter is updated to the second operation mode, generating second prompt information, and displaying the second prompt information on the display screen, wherein the second prompt information is used for representing that the operation mode which the teach pendant wants to control the robot to enter is updated to the second operation mode.
8. The method of any one of claims 1 to 7, wherein the first mode of operation is one of a manual low speed mode, a manual high speed mode, and an automatic mode; the second operation mode is one of an external automatic mode, a manual low speed mode, a manual high speed mode, and an automatic mode.
9. A control device for a robot, comprising:
the robot control system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for determining a first operation mode and a second operation mode when the robot is in an external automatic mode and a demonstrator establishes communication connection with the robot, the first operation mode is an operation mode that the demonstrator intends to control the robot to enter, the second operation mode is an operation mode that a controller intends to control the robot to enter, and the external automatic mode is an operation mode that the robot does not realize control over the robot through the demonstrator;
a processing unit, configured to determine, according to at least a state of the robot, that the robot enters the first operation mode or the second operation mode, where the state of the robot is one of: a stopped state and a moving state.
10. A computer-readable storage medium characterized by comprising a stored program, wherein the program executes the control method of the robot according to any one of claims 1 to 8.
11. A controller, comprising: one or more processors, memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the control method of the robot of any of claims 1-8.
CN202210816067.7A 2022-07-12 2022-07-12 Robot control method, device, computer readable storage medium and controller Active CN114995203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210816067.7A CN114995203B (en) 2022-07-12 2022-07-12 Robot control method, device, computer readable storage medium and controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210816067.7A CN114995203B (en) 2022-07-12 2022-07-12 Robot control method, device, computer readable storage medium and controller

Publications (2)

Publication Number Publication Date
CN114995203A true CN114995203A (en) 2022-09-02
CN114995203B CN114995203B (en) 2025-06-20

Family

ID=83019611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210816067.7A Active CN114995203B (en) 2022-07-12 2022-07-12 Robot control method, device, computer readable storage medium and controller

Country Status (1)

Country Link
CN (1) CN114995203B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6285920B1 (en) * 2000-02-18 2001-09-04 Fanuc Robotics North America Method of robot teaching with motion constraints
CN111624893A (en) * 2020-06-10 2020-09-04 杭州凯尔达机器人科技股份有限公司 Demonstrator, demonstrator signal transmission method and system
CN111923046A (en) * 2020-08-10 2020-11-13 东莞市李群自动化技术有限公司 Method for teaching upper computer to lower computer, storage medium and teaching device
TWI748501B (en) * 2020-06-05 2021-12-01 達明機器人股份有限公司 Safety system and method for teaching a robot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6285920B1 (en) * 2000-02-18 2001-09-04 Fanuc Robotics North America Method of robot teaching with motion constraints
TWI748501B (en) * 2020-06-05 2021-12-01 達明機器人股份有限公司 Safety system and method for teaching a robot
CN111624893A (en) * 2020-06-10 2020-09-04 杭州凯尔达机器人科技股份有限公司 Demonstrator, demonstrator signal transmission method and system
CN111923046A (en) * 2020-08-10 2020-11-13 东莞市李群自动化技术有限公司 Method for teaching upper computer to lower computer, storage medium and teaching device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
洪鹰;匡加伦;肖聚亮;王云鹏;赵炜;王健;张阳阳;孙誉博;: "基于手持导航器的协作机器人引导控制技术研究", 天津大学学报(自然科学与工程技术版), no. 11, 3 September 2020 (2020-09-03) *

Also Published As

Publication number Publication date
CN114995203B (en) 2025-06-20

Similar Documents

Publication Publication Date Title
TWI728956B (en) Docking system, head wearable device, methods for docking, and computer program
US10198083B2 (en) Hand gesture recognition method, device, system, and computer storage medium
JP7623998B2 (en) Augmented reality for internet connection setup
WO2018192478A1 (en) Cloud management platform, virtual machine management method, system thereof
JP7672271B2 (en) Determining Latency for Human Interface Devices
CN101373448B (en) Computer system with remote management
CN104050013B (en) virtual desktop processing method, device and virtual desktop server
WO2019061798A1 (en) Display control method and system, and virtual reality device
CN110837295A (en) A handheld control device and its tracking and positioning method, device and system
CN103064750B (en) Method and system for interrupt recovery of browser control
CN114995203A (en) Robot control method and device, computer readable storage medium and controller
Lewis et al. Usability of the remote console for virtual reality telerehabilitation: formative evaluation
WO2020087967A1 (en) Electronic building block and control method therefor, control device and storage medium
CN107992253B (en) Method and device for regulating and controlling display state of combined three-dimensional graph and computer equipment
JP2022532696A (en) Interaction methods, devices, systems, electronic devices and storage media
CN112965709B (en) Building block generation method, device, equipment and storage medium
JP2025501739A (en) Module processing method, device and storage medium for use in foreground/background separation system
CN116737104A (en) Volume adjustment method and related devices
TW522311B (en) Auxiliary processor manages firmware personalities while borrowing host system resources
TWI904045B (en) Operating method for electronic apparatus for providing information and electronic apparatus supporting thereof
US12223219B2 (en) Screen combination method and apparatus
CN105867744B (en) control terminal interface multilayer display method and system
CN110740095A (en) Multimedia streaming and routing device and operation method thereof
WO2024188326A1 (en) Split-screen display method and apparatus, and display, terminal device and storage medium
JP2019090848A (en) Projector, control method thereof, program, and projection system

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
GR01 Patent grant
GR01 Patent grant