Control system, control method, and program
The control system accelerates force control processing by adjusting horizon lengths based on contact states, optimizing processing time and accuracy for controlled objects like robots through model predictive control, addressing the inefficiencies of existing force control methods.
Patent Information
- Application Number
- PCT/JP2024/004385
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-08
- Filing Date
- 2024-02-08
- Publication Date
- 2024-09-12
AI Technical Summary
Current force control processing for controlled objects, such as robots, is time-consuming and requires acceleration to improve efficiency.
A control system incorporating a model predictive control section, a determination section, and an adjustment section that adjusts the horizon lengths of the prediction horizon and control horizon based on the contact state of the object, using model predictive control to match external forces with target forces and optimize processing time.
This approach speeds up the processing related to force control by dynamically adjusting the horizon lengths, reducing calculation time and enhancing control accuracy, particularly in stable contact states where vibrations have converged.
Smart Images

Figure JP2024004385_12092024_PF_FP_ABST
Abstract
Description
Control system, control method, and program
[0001] The present disclosure generally relates to a control system, a control method, and a program, and more particularly to a control system, a control method, and a program having a model predictive control function.
[0002] Patent Literature 1 discloses an optimal control device that performs model predictive control of a mobile robot. This optimal control device includes a contact point planning means for setting a contact point plan for the mobile robot's locomotion means and a trajectory generation means. The trajectory generation means constructs a prediction model using inputs based on contact forces when the locomotion means touches the ground. The prediction model represents state variables of the mobile robot's center of gravity within a prediction interval of a predetermined time width, and calculates the center of gravity state variables using an evaluation criterion within the prediction interval. The trajectory generation means performs model predictive control to generate a center of gravity trajectory based on the calculated center of gravity state variables. The evaluation criterion is to minimize, within the prediction interval, an evaluation function that includes the square of a quantity based on the contact force at each contact point. An equality-constrained optimization problem, which includes the evaluation criterion, a linear state equation showing the relationship between the input based on the contact forces and the center of gravity state variables, and an equality constraint expressed by a linear equation for the mobile robot, is converted into an unconstrained optimization problem that does not include equality constraints using an orthogonal complement. The trajectory generation means solves an optimization problem under no constraints by using a recursive calculation method to find an optimal solution, and calculates the state variables of the center of gravity based on the found optimal solution.
[0003] In Patent Document 1, an optimization problem under unconstrained conditions is solved using a recursive calculation method to speed up the solution process, thereby quickly generating a center of gravity trajectory that ensures stable movement of a mobile robot within a prediction horizon.
[0004] JP 2016-198873 A
[0005] Processing related to force control of a control target such as a robot tends to be lengthy, and further speedup is desired.
[0006] The present disclosure has been made in view of the above-mentioned circumstances, and aims to provide a control system, a control method, and a program that can speed up processing related to force control of a control target.
[0007] A control system according to one aspect of the present disclosure controls a motion trajectory of a controlled object, which may result in direct or indirect contact of the controlled object with an object. The control system includes a model predictive control unit, a determination unit, and an adjustment unit. The model predictive control unit determines a manipulated variable using model predictive control so that an external force from the object to the controlled object during the contact matches a target force. The determination unit determines whether a contact state of the controlled object at a certain point in time after vibration is generated due to the contact is a first state, which is a state before the vibration converges, or a second state, which is a state after the vibration converges. The adjustment unit adjusts the length of at least one of a prediction horizon and a control horizon applied to the model predictive control, based on the determination result of the determination unit.
[0008] A control method according to one aspect of the present disclosure is a control method for controlling a motion trajectory of a controlled object, which may cause direct or indirect contact of the controlled object with an object. The control method includes a model predictive control step, a determination step, and an adjustment step. In the model predictive control step, a manipulated variable is determined using model predictive control so that an external force from the object to the controlled object during the contact matches a target force. In the determination step, it is determined whether a contact state of the controlled object at a certain point in time after vibration is generated due to the contact is a first state, which is a state before the vibration converges, or a second state, which is a state after the vibration converges. In the adjustment step, a horizon length of at least one of a prediction horizon and a control horizon applied to the model predictive control is adjusted based on the determination result of the determination step.
[0009] A program according to one aspect of the present disclosure is a program for causing one or more processors to execute the above-described control method.
[0010] The present disclosure has the advantage of being able to speed up processing related to force control of a control target.
[0011] FIG. 1 is a block diagram of a control system according to an embodiment. FIG. 2 is a conceptual diagram of an example of a controlled object (robot) to which the control system of the present invention is applied. FIG. 3A is a diagram of a model of a robot and a workpiece to explain vibrations that may occur when the robot of the present invention comes into contact with a workpiece before and after convergence. FIG. 3B is a diagram of a model of a robot and a workpiece to explain vibrations that may occur when the robot of the present invention comes into contact with a workpiece before and after convergence. FIG. 3C is a diagram of a model of a robot and a workpiece to explain vibrations that may occur when the robot of the present invention comes into contact with a workpiece before and after convergence. FIG. 4 is a graph showing characteristics related to external forces received by the robot of the present invention before and after convergence of the vibrations. FIG. 5A is a graph showing prediction horizons and control horizons applied to model predictive control in the control system of the present invention. FIG. 5B is a graph showing prediction horizons and control horizons applied to model predictive control in the control system of the present invention. FIG. 6 is a flowchart for explaining the operation of the control system of the present invention. FIG. 7 is a block diagram of a modified example of the control system of the present invention.
[0012] (Summary) Below, a control system, a control method, and a program according to embodiments and modifications will be described with reference to the drawings. Note that the following embodiment and modifications are merely one of various embodiments of the present disclosure. Furthermore, the following embodiment and modifications can be modified in various ways depending on the design, etc., as long as the object of the present disclosure can be achieved. Furthermore, the configuration of each of the modifications can be appropriately combined with the following embodiment or other modifications.
[0013] Fig. 1 is a block diagram of a control system 1 according to one embodiment. Fig. 2 is a conceptual diagram of a robot Rb1, which is an example of a control target to which the control system 1 is applied. The control system 1 according to one aspect (see Fig. 1) is a system that uses the function of model predictive control (hereinafter sometimes simply abbreviated as "MPC"), which performs optimization while predicting future responses at each time.
[0014] The control system 1 is configured to use the prediction results from the MPC to perform force control of a robot Rb1 (see FIGS. 1 and 2), which is an example of a controlled object. The MPC solves an optimization problem for each control period based on a model of the controlled object (robot Rb1), and the control system 1 uses the results to feedback control the controlled object (robot Rb1). In other words, the control system 1 uses the prediction results from the MPC to provide a control input to the controlled object (robot Rb1).
[0015] The controlled object (plant) in the present disclosure is not limited to the robot Rb1, and may be a controlled object of another drive system. The controlled object may be, for example, a facility such as a transport device, an automobile, an aircraft, a drone, etc.
[0016] Here, the control system 1 controls the motion trajectory of the control object (e.g., robot Rb1) which may come into direct or indirect contact with the object 9. In other words, the control system 1 controls the attitude, position, etc. of the control object so that it follows a predetermined motion trajectory plan in the process before and after contact with the object 9, while controlling the force of the control object.
[0017] The type of the robot Rb1 is not particularly limited. In the following, as an example, it is assumed that the robot Rb1 is an arm-type vertical articulated robot as shown in FIG.
[0018] The vertical articulated robot (robot Rb1) is assumed to be, for example, a working robot (industrial robot) that performs a predetermined work process on a workpiece W1 (object 9) in a facility such as a factory. However, the robot Rb1 is not limited to an industrial robot.
[0019] Also, as an example, the object 9 is a metal member. However, the object 9 is not limited to the workpiece W1 to be worked on, and is not limited to being a metal (member). The object 9 may be a member other than metal, such as resin (or an elastic member such as rubber), glass, fiber, wood, or paper.
[0020] For example, it is assumed that the above-mentioned work process is a polishing process for polishing the surface W10 (see FIG. 2) of a workpiece W1 (metal member). A vertical articulated robot (robot Rb1) holds a polishing end effector A1 at its arm tip B1 (see FIG. 2) and indirectly contacts an object 9 via the end effector A1. However, the above-mentioned work process is not limited to a polishing process, and may be a cutting process or a painting process for the surface W10 of the workpiece W1. Furthermore, the above-mentioned work process may be a process in which the robot Rb1 holds a pen or the like to draw letters, symbols, figures, etc.
[0021] 1 , the control system 1 includes a model predictive control unit 3, a determination unit 21, and an adjustment unit 22. The model predictive control unit 3 uses model predictive control to determine a manipulation amount (hereinafter also referred to as a first manipulation amount) so that an external force applied to a control target (e.g., robot Rb1) from an object 9 during contact matches a target force. The model predictive control unit 3 outputs a control signal including the determined first manipulation amount.
[0022] The determination unit 21 determines whether the contact state of the control target (e.g., the robot Rb1) with the object 9 at a certain point in time after the point in time when vibration is generated due to contact of the control target (robot Rb1) is a first state, which is a state before the vibration converges, or a second state, which is a state after the vibration converges. The adjustment unit 22 adjusts the horizon length of at least one of the prediction horizon Hp and the control horizon Hu (see FIGS. 5A and 5B described later) applied to the model predictive control based on the determination result of the determination unit 21. In the following example, the adjustment unit 22 adjusts the horizon lengths of both the prediction horizon Hp and the control horizon Hu.
[0023] According to the control system 1, the horizon length of at least one of the prediction horizon Hp and the control horizon Hu is adjusted based on whether the contact state of the vertical articulated robot (robot Rb1) with the object 9 is the first state or the second state. This reduces the calculation time for model predictive control. As a result, the control system 1 has the advantage of being able to speed up processing related to force control of the controlled object.
[0024] A control method according to one aspect is a control method for a control system 1 that controls a motion trajectory of a control object (e.g., a robot Rb1) that may come into direct or indirect contact with an object 9. The control method includes a model predictive control step, a determination step, and an adjustment step. In the model predictive control step, a manipulated variable is determined using model predictive control so that an external force from the object 9 to the control object during contact matches a target force. In the determination step, it is determined whether the contact state of the control object (e.g., the robot Rb1) with the object 9 at a certain point in time after vibration occurs due to contact of the control object is a first state, which is a state before the vibration converges, or a second state, which is a state after the vibration converges. In the adjustment step, the horizon length of at least one of a prediction horizon Hp and a control horizon Hu applied to the model predictive control is adjusted based on the determination result of the determination step. The above control method has the advantage of enabling faster processing related to force control of the control object.
[0025] This control method is used on a computer system (control system 1). That is, this control method can also be embodied as a computer program. A program according to one aspect is a program for causing one or more processors to execute the above control method. The program may be recorded on a computer-readable non-transitory recording medium.
[0026] (Details) (1) Overall Configuration The entire system including the control system 1 and its peripheral configuration according to this embodiment will be described in detail below with reference to FIGS. 1 to 5B. As an example, the control system 1 will be described below assuming that the controlled object is a robot Rb1. FIG. 3 is a graph illustrating a prediction horizon in the control system 1. FIGS. 4A to 4C are conceptual diagrams illustrating a target trajectory in the control system 1. FIGS. 3A to 3C are diagrams illustrating a model of the robot and workpiece to illustrate the vibrations that may occur when the robot Rb1 comes into contact with the workpiece before and after convergence. FIG. 4 is a graph showing characteristics related to the external force that the robot Rb1 receives before and after convergence of the vibrations. FIGS. 5A and 5B are graphs illustrating the prediction horizon and control horizon applied to model predictive control in the control system 1.
[0027] As described above, the control system 1 controls the robot Rb1 to perform polishing on the surface of the object 9 (metal member), for example. Under the control of the control system 1, the robot Rb1 polishes the surface W10 of the workpiece W1 by applying a substantially constant pressing force to the surface W10 of the workpiece W1 (object 9).
[0028] The robot Rb1 is a so-called manipulator with a structure similar to a human arm, and is, for example, an arm-type vertical articulated robot. The number of axes of the robot Rb1 is not particularly limited. The robot Rb1 has, for example, six or seven degrees of freedom. The robot Rb1 has multiple movable parts C1 (see FIG. 2) including an arm tip B1, one or more motors M1 (see FIG. 1: for example, servo motors) that rotate the multiple movable parts C1 by a specified angle, a reduction mechanism, etc.
[0029] A detector 41 (described later) and a polishing end effector A1 (see FIG. 2) can be attached to the arm tip B1 of the robot Rb1. The arm tip B1 of the robot Rb1 can (indirectly) come into contact with the object 9 via the detector 41 and the end effector A1. After contact, the control system 1 controls the movement trajectory of the robot Rb1 along the surface W10 of the workpiece W1, causing the robot Rb1 to polish the surface W10 of the workpiece W1. The control system 1 is electrically connected to a control target (robot Rb1) and is configured to provide control input to the control target (robot Rb1). In this embodiment, the control target of the control system 1 is one or more motors M1 of the robot Rb1.
[0030] In the following description, when the arm tip B1 of the robot Rb1 approaches the object 9 from a distant position and starts to come into (indirect) contact with the object 9 for the first time, the robot Rb1 is considered to be in a "contact state" unless it subsequently moves away from the object 9 for a certain period of time (e.g., several seconds). In other words, even if the arm tip B1 bounces slightly after coming into contact with the object 9 and moves away from the object 9 for less than the certain period of time (instantaneously), the robot Rb1 is still considered to be in a "contact state."
[0031] The control system 1 includes a computer system having one or more processors and a memory. At least some of the functions of the control system 1 are realized by the processor of the computer system executing a program recorded in the memory of the computer system. The program may be recorded in the memory, or may be provided via a telecommunications line such as the Internet, or may be provided by being recorded on a non-transitory recording medium such as a memory card.
[0032] 1 , the control system 1 includes a processing unit 2, a model prediction control unit 3, a motion control unit 5, a trajectory generation unit 6, a host controller 7, and a detection unit 41. In other words, the control system 1 has the functions of the processing unit 2, the model prediction control unit 3, the motion control unit 5, the trajectory generation unit 6, the host controller 7, and the detection unit 41. These multiple functions of the control system 1 may be housed in a single housing, or may be housed separately in multiple housings. Note that the host controller 7 does not have to be a component of the control system 1.
[0033] The detection unit 41 is attached to, for example, the arm tip B1. Specifically, as shown in FIG. 2 , the detection unit 41 is disposed between the arm tip B1 and the end effector A1. The detection unit 41 includes, for example, a force sensor. The detection unit 41 detects an external force f (see FIG. 1 : i.e., a contact force exerted by the control target on the object 9) received from the object 9 via the end effector A1 when the control target (robot Rb1) is in contact with the object 9. In other words, the detection unit 41 detects the external force f (see FIG. 1 ) exerted on the control target (robot Rb1) when the control target (robot Rb1) is in contact with the object 9. The detection unit 41 outputs a detection signal including information on the physical quantity related to the detected external force f to the model predictive control unit 3 and the processing unit 2. Here, the external force f is mainly a force of a normal vector with respect to the surface W10 of the contacting workpiece W1.
[0034] The model predictive control unit 3 has an MPC function. The model predictive control unit 3 has a storage unit. The storage unit includes an electrically rewritable non-volatile semiconductor memory such as a flash memory. The storage unit stores a prediction model related to the control target (robot Rb1). As the prediction model, for example, a transfer function model or a state space model may be used.
[0035] MPC performs receding horizon control (RH control), which optimizes a control output profile over a fixed time period from the present to a future time, using only the initial value of the profile as the control input profile. RH control is a control method that optimizes responses at each time up to a finite time into the future. The estimated time length of the output profile H1 (see FIGS. 5A and 5B) is defined as the prediction horizon Hp, and the estimated length of the input profile H2 (see FIGS. 5A and 5B) is defined as the control horizon Hu. In the example of FIG. 5A, the prediction horizon Hp (horizon length) corresponds to 30 steps, and the control horizon Hu (horizon length) corresponds to 8 steps. The control horizon Hu is generally shorter than the prediction horizon Hp.
[0036] 5A and 5B, the horizontal axis represents the number of steps (time), and the vertical axis represents the contact force F (unit: N). The "target value" shown in Figures 5A and 5B is the value of the target force input from the upper controller 7, and the MPC controls the external force f (in other words, the contact force F) to match this target value.
[0037] The model predictive control unit 3, for example, uses a state space model of the control object (robot Rb1) to define a state variable with the external force f as a state quantity, and calculates an operation amount that optimizes (for example, minimizes) the deviation of the external force f (the difference from the target force).
[0038] The model predictive control unit 3 uses the above prediction model to calculate a predicted value of the external force f in the interval from the current time k to a time (k+Hp) that is Hp hours from now. For the control input, the model predictive control unit 3 takes values for the first few steps (control horizon Hu) of the prediction horizon Hp, as shown in the input profile H2.
[0039] The model predictive control unit 3 is electrically connected to the detection unit 41 so as to receive a detection signal from the detection unit 41 .
[0040] The model predictive control unit 3 acquires data on the external force f in the detection signal from the detection unit 41 at a predetermined sampling period and calculates a predicted value of the future external force f as shown in the output profile H1. In addition to the data on the external force f, three other input data are input to the model predictive control unit 3. The model predictive control unit 3 determines a first manipulated variable based on the data on the external force f and the three input data. The three input data include target value data, trajectory data, and horizon adjustment data. The target value data is input from the upper controller 7 (see FIG. 1 ). The trajectory data is input from the trajectory generation unit 6. The horizon adjustment data is input from the adjustment unit 22 of the processing unit 2. The model predictive control unit 3 applies the horizon lengths of the prediction horizon Hp and the control horizon Hu set in the horizon adjustment data. The horizon adjustment data will be described later.
[0041] That is, the model predictive control unit 3 uses the MPC to determine the first manipulated variable (contact force in the input profile H2) as a change amount required to make the external force f coincide with the target force (target value in FIGS. 5A and 5B ) based on the target value data, trajectory data, and the external force f (control variable) applied to the control target (robot Rb1) from the object 9. The model predictive control unit 3 is electrically connected to the operation control unit 5 so as to output a control signal (e.g., a digital signal) including the first manipulated variable to the operation control unit 5. For example, after the start of the polishing process, the model predictive control unit 3 outputs the control signal including the first manipulated variable in both the non-contact state and the contact state of the robot Rb1 with respect to the workpiece W1.
[0042] The first manipulated variable may be a manipulated variable related to at least one of the position, posture, velocity, acceleration, contact force (in other words, external force f), and torque of the robot Rb1. The model predictive control unit 3 calculates the first manipulated variable based on data on the external force f for each sampling period using the above-described prediction model.
[0043] Although detailed explanation will be omitted, the model predictive control unit 3 acquires not only the external force f (control amount), but also the control amount output from the robot Rb1 side (the position and speed of the motor M1 output from the encoder, etc.), and determines the operation amount (first operation amount) so that it matches the target value.
[0044] The host controller 7 is configured as, for example, a programmable logic controller (PLC). The host controller 7 is communicably connected to a servo driver D1 (see FIG. 1 ). The host controller 7 generates a command signal including an operation command (target value data) related to a predetermined work process (polishing process) and transmits it to the servo driver D1 for control. In this embodiment, the servo driver D1 may be configured, for example, by the processing unit 2, model predictive control unit 3, and operation control unit 5 of the control system 1. The servo driver D1 drives and controls one or more motors M1 (control targets) that drive multiple movable parts C1 of the robot Rb1. The operation command (target value data) includes the target force (target value) of the external force described above, and may also include target values related to the position, posture, speed, acceleration, torque, etc. of the robot Rb1.
[0045] In this embodiment, an operation command (target value data) from the upper controller 7 is input to the model predictive control section 3 and the processing section 2 (a determination section 21 described later) in the servo driver D1.
[0046] The trajectory generating unit 6 generates data on the movement trajectory (trajectory data) and inputs it to the model predictive control unit 3. The trajectory generating unit 6 is communicably connected to the servo driver D1. The trajectory generating unit 6 generates trajectory data including a trajectory plan such as the posture and movement path of the robot Rb1. The trajectory data is generated based on three-dimensional coordinate data such as CAD (Computer Aided Design) data or CAM (Computer Aided Manufacturing) data on the robot Rb1 and workpiece W1 (object 9).
[0047] The operation control unit 5 controls the operation of the control target (robot Rb1) based on the operation amount (first operation amount) output from the model predictive control unit 3. Specifically, the operation control unit 5 determines a second operation amount based on the first operation amount from the model predictive control unit 3 and inputs the second operation amount to the robot Rb1 (control input). The second operation amount includes the torque (value) of the motor M1 and the current value of the drive current supplied to the motor M1. For example, the operation control unit 5 has an inverter circuit that supplies power to the motor M1. The operation control unit 5 determines the current value of the drive current supplied to the motor M1 (second operation amount) based on the position, posture, speed, acceleration, contact force, torque, etc. of the robot Rb1, which are the first operation amount, and controls the inverter circuit to adjust the drive current supplied to the motor M1.
[0048] The processing unit 2 generates horizon adjustment data and inputs it to the model predictive control unit 3. The processing unit 2 is electrically connected to the model predictive control unit 3. The processing unit 2 acquires a target force (target value) of an external force from the target value data transmitted from the upper controller 7 to the servo driver D1. The processing unit 2 is also electrically connected to the detection unit 41 and acquires the detection result (detection signal) of the detection unit 41. As shown in FIG. 1 , the processing unit 2 has a determination unit 21 and an adjustment unit 22.
[0049] The determination unit 21 determines whether the contact state of the robot Rb1 with the object 9 at a certain point in time after the point in time when vibration is generated by contact of the robot Rb1 is a first state, which is a state before the vibration converges, or a second state, which is a state after the vibration converges. In this embodiment, the determination unit 21 determines whether the contact state is the first state or the second state based on the relationship between the target force (target value) and the detection result of the detection unit 41.
[0050] The non-contact state, the first state, and the second state will be described below with reference to FIGS. 3A to 3C and 4. FIG.
[0051] 3A to 3C are diagrams showing a model of the robot Rb1 and the workpiece W1 as a system of mass, spring, and damper, showing vibrations that may occur when the robot Rb1 comes into contact with the workpiece W1 before and after convergence. In each of Figures 3A to 3C, the robot Rb1 is modeled as a system of mass m, spring k, and damper b, and the environment including the workpiece W1 is modeled as a system of spring ke and damper be. The magnitude of the vibration amplitude and the time until convergence depend on the mass m, spring k, and damper b of the robot Rb1 and the spring ke and damper be on the workpiece W1 side.
[0052] FIG. 4 is a graph showing the change characteristic G1 of the external force f over time, with the horizontal axis representing time and the vertical axis representing the external force f that the robot Rb1 receives from the workpiece W1.
[0053] 3A shows the state before contact between the robot Rb1 and the workpiece W1 (non-contact state). In the change characteristic G1 in FIG. 4, the section (a) from time t0 to time t1 corresponds to the non-contact state.
[0054] 3B shows a first state in which the robot Rb1 and the workpiece W1 are in contact with each other, but vibrations are generated by the contact and have not yet converged. In the change characteristic G1 of FIG. 4, contact between the robot Rb1 and the workpiece W1 begins at time t1, and the section (b) from time t1, which is the contact point, to time t2 corresponds to the first state. In the first state, the external force f increases sharply at time t1, and then gradually converges while fluctuating due to the immediate occurrence of vibration.
[0055] Feedback control of the external force f etc. by the MPC starts, for example, from time t0. Furthermore, the robot Rb1 starts the polishing process according to the trajectory plan from the point of time t1 (contact point).
[0056] 3C shows a second state in which the robot Rb1 and the workpiece W1 are in contact with each other, but after the vibration has subsided. In the change characteristic G1 of FIG. 4, the section (c) from time t2 to time t3 corresponds to the second state. In the second state, the external force f is substantially constant.
[0057] That is, after time t1 when contact occurs, the external force f is controlled by the MPC so that it matches the target force (target value), but at time t2, the vibration is completely converged and the external force f almost matches the target force.
[0058] In this embodiment, in the non-contact state in section (a) of Fig. 4, the control system 1 uses the MPC function to perform impedance control, which controls the end effector A1 to remain at the target position when a force is applied to the end effector A1 in a state in which a target position and target impedance (spring, mass, and damper parameters) have been determined. Furthermore, in the first state in section (b) of Fig. 4, the control system 1 uses the MPC function to perform admittance control, which controls the external force f applied to the end effector A1 to be equal to the target force. Furthermore, in the second state in section (c) of Fig. 4, the control system 1 uses the MPC function to perform hybrid control, which appropriately shares and controls force control and position control.
[0059] The determination unit 21 is configured to execute at least one of a first determination process and a second determination process (both of them in this example).
[0060] The first determination process is a process for determining whether a calculated value based on the difference between the target force and the external force is equal to or less than a predetermined value. In this embodiment, the "calculated value based on the difference between the target force and the external force" is, for example, |Fd-Fm| / Fd. Fm is the external force f detected (measured) by the detection unit 41, and Fd is the target force commanded by the upper controller 7. The predetermined value is, for example, 0.1. In other words, in percentage terms, the first determination process determines whether the absolute value of the difference between the target force and the external force is equal to or less than 10% of the target force Fd.
[0061] The second determination process is a process for determining whether the calculated value has remained equal to or less than a predetermined value for a predetermined period of time, for example, one second.
[0062] In this embodiment, the determination unit 21 determines that the contact state is in the first state if the calculated value is greater than a predetermined value in the first determination process. Furthermore, in this embodiment, the determination unit 21 determines that the contact state is in the first state if the calculated value does not remain equal to or less than the predetermined value for a predetermined period of time in the second determination process. Furthermore, the determination unit 21 determines that the contact state is in the second state if the calculated value is equal to or less than the predetermined value and the state in which the calculated value remains equal to or less than the predetermined value for a predetermined period of time.
[0063] In the present embodiment, the determination unit 21 repeatedly performs the first determination process and the second determination process for the target force. For example, the determination unit 21 acquires data on the external force Fm from the detection signal of the detection unit 41 at a specific sampling period, performs the first determination process at each specific sampling period, and if the calculated value is equal to or less than a predetermined value, executes the second determination process.
[0064] The adjustment unit 22 adjusts the horizon length of at least one of the prediction horizon Hp and the control horizon Hu (see FIGS. 5A and 5B ) applied to the model predictive control based on the determination result of the determination unit 21. In the present embodiment, when the determination unit 21 determines that the contact state is the second state, the adjustment unit 22 adjusts (sets) the horizon length of at least one of the prediction horizon Hp and the control horizon Hu so that it is shorter than the horizon length in the first state. Here, as an example, the adjustment unit 22 adjusts (sets) the horizon lengths of both the prediction horizon Hp and the control horizon Hu. The adjustment unit 22 generates horizon adjustment data including information about the adjusted prediction horizon Hp and control horizon Hu, and inputs the data to the model predictive control unit 3.
[0065] A plurality of types of horizon lengths may be prepared in advance for each of the prediction horizon Hp and the control horizon Hu. For example, the processing unit 2 stores information on a plurality of types of horizon lengths in its memory.
[0066] For example, if the adjustment unit 22 has set the horizon length of the prediction horizon Hp in the first state to the first horizon, the adjustment unit 22 sets the horizon length of the prediction horizon Hp in the second state to the second horizon, which is shorter than the first horizon. Also, if the adjustment unit 22 has set the horizon length of the control horizon Hu in the first state to the third horizon, the adjustment unit 22 sets the horizon length of the control horizon Hu in the second state to the fourth horizon, which is shorter than the third horizon.
[0067] In this embodiment, the adjustment unit 22 sets the predicted horizon Hp and the control horizon Hu in the non-contact state to the same horizon lengths as the predicted horizon Hp and the control horizon Hu in the first state, respectively. However, this is not limited to this, and the horizon lengths may be different between the non-contact state and the first state.
[0068] 5A shows the prediction horizon Hp and the control horizon Hu in a first state, and FIG. 5B shows the prediction horizon Hp and the control horizon Hu in a second state.
[0069] In FIG. 5A, the adjustment unit 22 sets a prediction horizon Hp having a horizon length of 30 steps from the present time (origin 0) into the future, and also sets a control horizon Hu having a horizon length of 8 steps.
[0070] On the other hand, in FIG. 5B, the adjustment unit 22 sets a prediction horizon Hp having a horizon length of 5 steps from the present time (origin 0) into the future, and also sets a control horizon Hu having a horizon length of 2 steps.
[0071] 5A and 5B correspond to a section of a predetermined time length, which is not particularly limited.
[0072] In other words, the horizon length (5 steps) of the prediction horizon Hp in the second state is set shorter than the horizon length (30 steps) of the prediction horizon Hp in the first state, and the horizon length (2 steps) of the control horizon Hu in the second state is set shorter than the horizon length (8 steps) of the control horizon Hu in the first state.
[0073] The horizon lengths shown in FIGS. 5A and 5B are merely examples and are not limiting.
[0074] The reason for setting the horizon length longer in the first state and shorter in the second state is as follows: It is difficult for the model predictive control unit 3 to estimate when the robot Rb1 will contact the workpiece W1. Therefore, a certain horizon length may be required for the prediction horizon Hp in the non-contact state and the first state. In particular, since vibrations occur in the first state, high-precision control is required to converge the vibrations. Therefore, a certain horizon length may also be required for the control horizon Hu. On the other hand, in the second state, the control system 1 simply controls the posture and position of the robot Rb1 along the normal vector according to trajectory data calculated from CAD data or CAM data, and moves the robot Rb1 relative to the surface W10 of the workpiece W1. In short, the possibility of a sudden large disturbance occurring is relatively low in the second state. Based on this reasoning, the control system 1 shortens the horizon length in the second state to shorten the MPC calculation time.
[0075] (2) Operation of the Control System The operation of the control system 1, particularly the series of processes related to the adjustment (setting) of the prediction horizon Hp and the control horizon Hu in the processing unit 2, will be described below with reference to Fig. 6. Fig. 6 is a flowchart for explaining the operation of the control system 1. The flowchart shown in Fig. 6 is merely an example of the operation flow of the control system 1, and the order of processes may be changed as appropriate, and processes may be added or omitted as appropriate.
[0076] First, the processing unit 2 sets a target force Fd based on target value data from the upper controller 7 (step ST1).
[0077] The processing unit 2 acquires the external force Fm detected (measured) by the detection unit 41 at a specific sampling period (step ST2).
[0078] The processing unit 2 monitors the external force Fm and determines whether the robot Rb1 is in contact with the workpiece W1 (step ST3).
[0079] If it is determined that the external force Fm exceeds the reference value and that the device is in contact (step ST3: Yes), the processing unit 2 causes the determination unit 21 to perform a first determination process at a specific sampling period (determination step). Note that as long as the external force Fm is equal to or less than the reference value (step ST3: No), the processing unit 2 continues to monitor the external force Fm, etc.
[0080] In the first determination process, the determination unit 21 determines whether the calculated value (|Fd-Fm| / Fd) is equal to or smaller than a predetermined value (e.g., 0.1) (step ST4). If the calculated value (|Fd-Fm| / Fd) is greater than the predetermined value (step ST4: No), the determination unit 21 determines that the contact state is in the first state. The adjustment unit 22 executes an adjustment process (adjustment step) and sets the prediction horizon Hp and the control horizon Hu to the first and third horizon lengths, respectively, based on the determination result of the determination unit 21 (step ST7: set long horizon), and then returns to step ST2.
[0081] If the calculated value (|Fd-Fm| / Fd) is equal to or less than the predetermined value (step ST4: Yes), the determination unit 21 performs a second determination process (determination step). In the second determination process, the determination unit 21 determines whether the calculated value (|Fd-Fm| / Fd) remains equal to or less than the predetermined value for a predetermined period (e.g., one second) or more (step ST5). If the calculated value (|Fd-Fm| / Fd) does not remain equal to or less than the predetermined value for a predetermined period or more (step ST5: No), the determination unit 21 determines that the contact state is in the first state. The adjustment unit 22 performs an adjustment process (adjustment step) and sets the prediction horizon Hp and the control horizon Hu to the first and third horizon lengths, respectively, based on the determination result of the determination unit 21 (step ST7: Set Long Horizon), and then returns to step ST2.
[0082] On the other hand, if the calculated value (|Fd-Fm| / Fd) remains equal to or smaller than the predetermined value for a predetermined period of time or longer (step ST5: Yes), the determination unit 21 determines that the contact state is in the second state. The adjustment unit 22 executes an adjustment process (adjustment step) and sets the prediction horizon Hp and the control horizon Hu to the second and fourth horizon lengths, respectively, based on the determination result of the determination unit 21 (step ST6: set short horizon), and then returns to step ST2.
[0083] The processing unit 2 ends the processing related to the horizon adjustment when the polishing process for the workpiece W1 is completed or when the robot Rb1 moves away from the workpiece W1 for a certain period of time (for example, several seconds).
[0084] (3) Advantages As described above, according to the control system 1 of this embodiment, the horizon lengths of the prediction horizon Hp and the control horizon Hu are adjusted based on whether the contact state is the first state or the second state. In other words, dynamic expansion and contraction of each horizon applied in the MPC can be performed. This can reduce the calculation time for the model predictive control. As a result, the control system 1 has the advantage of being able to speed up processing related to the force control of the controlled object.
[0085] In particular, in the first state before the vibrations converge, predictive control that takes the vibration amplitude into account is required, which makes it easy for the MPC accuracy in the model predictive control unit 3 to decrease, and maintaining that accuracy also makes it easy for the MPC calculation time to become longer. On the other hand, in the second state after the vibrations converge, the movement trajectory of the control object (robot Rb1) on the surface W10 of the workpiece W1 is basically stable, making it difficult for the MPC accuracy to decrease. In this regard, the adjustment unit 22 adjusts the horizon lengths of the prediction horizon Hp and the control horizon Hu in the second state to be shorter than those in the first state. Therefore, the calculation time of the model predictive control unit 3 when viewed over the entire contact state (first state and second state) is easily shortened.
[0086] (4) Modifications Modifications of the above embodiment are listed below. The modifications explained below can be applied in appropriate combinations.
[0087] The same functions as those of the control system 1 according to the above embodiment may be realized as a control method, a computer program, or a non-transitory recording medium on which a computer program is recorded.
[0088] The control system 1 in the present disclosure includes a computer system. The computer system is primarily composed of a processor and memory as hardware. The processor executes a program stored in the memory of the computer system to realize the functions of the control system 1 in the present disclosure. The program may be pre-recorded in the memory of the computer system, provided via a telecommunications line, or provided by being recorded on a non-transitory recording medium readable by the computer system, such as a memory card, optical disk, or hard disk drive. The processor of the computer system is composed of one or more electronic circuits including a semiconductor integrated circuit (IC) or a large-scale integrated circuit (LSI). The integrated circuits, such as ICs and LSIs, are referred to by different names depending on the degree of integration, and include integrated circuits called system LSIs, very large scale integration (VLSI), or ultra large scale integration (ULSI). Furthermore, a field-programmable gate array (FPGA), which is programmed after the LSI is manufactured, or a logic device capable of reconfiguring the connections within the LSI or the circuit partitions within the LSI, can also be employed as a processor. Multiple electronic circuits may be integrated into a single chip or distributed across multiple chips. Multiple chips may be integrated into a single device or distributed across multiple devices. The computer system referred to here includes a microcontroller having one or more processors and one or more memories. Therefore, the microcontroller is also composed of one or more electronic circuits, including a semiconductor integrated circuit or a large-scale integrated circuit.
[0089] Furthermore, it is not essential that the multiple functions of the control system 1 be concentrated in one housing. For example, the components of the control system 1 may be distributed across multiple housings.
[0090] Conversely, multiple functions of the control system 1 may be integrated into one housing. Furthermore, at least some of the functions of the control system 1, for example, some of the functions of the control system 1 may be realized by the cloud (cloud computing) or the like.
[0091] In the above embodiment, the horizon length is adjusted between the first state and the second state for both the prediction horizon Hp and the control horizon Hu. However, this is not limited to this. For example, the adjuster 22 may adjust the horizon length between the first state and the second state for only the prediction horizon Hp. Alternatively, the adjuster 22 may adjust the horizon length between the first state and the second state for only the control horizon Hu.
[0092] In the above embodiment, both the prediction horizon Hp and the control horizon Hu have shorter horizon lengths in the second state than in the first state. However, it is not necessary to make the horizon lengths shorter in the second state than in the first state. For example, the prediction horizon Hp may have a shorter horizon length in the second state than in the first state, and the control horizon Hu may have a longer horizon length in the second state than in the first state. Even in this case, the calculation time of the model predictive control unit 3 can be expected to be reduced.
[0093] The control system 1 may be configured to change, in response to a user operation input, which of the prediction horizon Hp and the control horizon Hu the adjustment unit 22 adjusts. The control system 1 may include an operation unit (user interface) that accepts the operation input.
[0094] The control system 1 of the above embodiment includes a force sensor (detection unit 41), and the detection result (external force Fm) detected (measured) by the detection unit 41 is input to the processing unit 2 and the model predictive control unit 3. As shown in Fig. 7, the control system 1 may include a state estimator 42 instead of the detection unit 41. The state estimator 42 may be included as part of the servo driver D1.
[0095] 7, the state estimation unit 42 estimates the external force f acting on the robot Rb1 in the contact state. In the modification shown in Fig. 7, the determination unit 21 determines whether the contact state is the first state or the second state based on the relationship between the target force and the estimation result of the state estimation unit 42.
[0096] The state estimation unit 42 is configured as, for example, a disturbance observer that estimates an external force f acting on the robot Rb1. The state estimation unit 42 estimates the disturbance (external force f) based on, for example, a second operation amount (driving current) output from the operation control unit 5 to the robot Rb1 and a control amount (such as the position and speed of the motor M1 output from the encoder) output from the robot Rb1 side. The state estimation unit 42 inputs the estimation result to the determination unit 21 of the processing unit 2 and the model predictive control unit 3.
[0097] In the modified example shown in FIG. 7, the calculation time for model predictive control is also reduced, and the speed of the processing related to the force control of the robot Rb1 can be increased.
[0098] The control system 1 may include both a force sensor (detection unit 41) and a state estimation unit 42. In this case, for example, the determination unit 21 of the processing unit 2 may use the measurement results of the force sensor, and the model predictive control unit 3 may use the estimation results of the state estimation unit 42.
[0099] In the above embodiment, the object 9 is a metal member, but there is no particular limitation on the material of the object 9. However, if the object 9 is a metal member as in the above embodiment, the dynamic characteristics are unlikely to change, and this is therefore suitable for the control system 1.
[0100] In the above embodiment, the control horizon Hu is shorter than the prediction horizon Hp in each of the first and second states. However, the control horizon Hu may have the same horizon length as the prediction horizon Hp in each of the first and second states.
[0101] In the above embodiment, it is assumed that the workpiece W1 is the object 9, the end effector A1 is attached to the robot Rb1, and the force of the robot Rb1 is controlled so that the end effector A1 moves relative to an environment including the workpiece W1 (object 9). However, this is not limited to this, and for example, the workpiece W1 may be attached to the robot Rb1, and the force of the robot Rb1 may be controlled so that the workpiece W1 moves relative to an environment including a fixed effector (object 9).
[0102] (Summary) The above-described embodiments and the like disclose the following aspects.
[0103] A control system (1) according to a first aspect controls a motion trajectory of a control target (e.g., a robot Rb1) that may come into direct or indirect contact with an object (9). The control system (1) includes a model predictive control unit (3), a determination unit (21), and an adjustment unit (22). The model predictive control unit (3) determines a manipulation amount using model predictive control so that an external force from the object (9) to the control target during contact matches a target force. The determination unit (21) determines whether a contact state of the control target (e.g., the robot Rb1) with the object (9) at a certain point in time after vibration occurs due to contact of the control target is a first state, which is a state before vibration converges, or a second state, which is a state after vibration converges. The adjustment unit (22) adjusts the horizon length of at least one of a prediction horizon (Hp) and a control horizon (Hu), which are applied to the model predictive control, based on the determination result of the determination unit (21).
[0104] According to the above aspect, the horizon length of at least one of the prediction horizon (Hp) and the control horizon (Hu) is adjusted based on whether the contact state is the first state or the second state. This can reduce the calculation time for model predictive control. As a result, the control system (1) has the advantage of being able to speed up processing related to force control of the controlled object.
[0105] Regarding the control system (1) according to the second aspect, in the first aspect, when the determination unit (21) determines that the contact state is the second state, the adjustment unit (22) adjusts at least one of the horizon lengths to be shorter than that in the first state.
[0106] According to the above aspect, when the contact state is the second state, the horizon length of at least one of the prediction horizon (Hp) and the control horizon (Hu) is adjusted, thereby reducing the calculation time for the model predictive control and, as a result, speeding up the processing related to the force control of the controlled object.
[0107] The control system (1) according to a third aspect is the first or second aspect, further comprising a state estimation unit (42) that estimates an external force acting on the control target in a contact state.
[0108] According to the above aspect, the external force on the control target in a contact state can be obtained with high accuracy.
[0109] Regarding the control system (1) according to the fourth aspect, in the third aspect, the determination unit (21) determines whether the contact state is the first state or the second state based on the relationship between the target force and the estimation result of the state estimation unit (42).
[0110] According to the above aspect, the accuracy of determining whether the contact state is the first state or the second state is improved.
[0111] The control system (1) according to a fifth aspect is the first or second aspect, further comprising a detection unit (41) that detects an external force on the control target in a contact state.
[0112] According to the above aspect, the external force on the control target in a contact state can be obtained with high accuracy.
[0113] Regarding the control system (1) according to the sixth aspect, in the fifth aspect, the determination unit (21) determines whether the contact state is the first state or the second state based on the relationship between the target force and the detection result of the detection unit (41).
[0114] According to the above aspect, the accuracy of determining whether the contact state is the first state or the second state is improved.
[0115] With respect to the control system (1) according to the seventh aspect, in any one of the first to sixth aspects, the judgment unit (21) executes a first judgment process to judge whether or not a calculated value based on the difference between the target force and the external force is equal to or less than a predetermined value.
[0116] According to the above aspect, it becomes easier to determine whether the contact state is the first state or the second state.
[0117] In the seventh aspect of the control system (1) according to the eighth aspect, the determination unit (21) determines that the contact state is the first state when the calculated value is greater than a predetermined value in the first determination process.
[0118] According to the above aspect, the accuracy of determination when the contact state is the first state is improved.
[0119] Regarding the control system (1) according to the ninth aspect, in the seventh or eighth aspect, the judgment unit (21) executes a second judgment process to judge whether the state in which the calculated value is equal to or less than a predetermined value continues for a predetermined period of time or more.
[0120] According to the above aspect, it becomes easier to determine whether the contact state is the first state or the second state.
[0121] Regarding the control system (1) according to the tenth aspect, in the ninth aspect, the judgment unit (21) judges that the contact state is the first state if the state in which the calculated value is equal to or less than a predetermined value in the second judgment process does not continue for a predetermined period of time or more.
[0122] According to the above aspect, the accuracy of determination when the contact state is the first state is improved.
[0123] In the control system (1) according to the eleventh aspect, in the ninth or tenth aspect, the determination unit (21) repeatedly performs a first determination process and a second determination process on the target force.
[0124] According to the above aspect, more stable force control of the control target can be achieved.
[0125] The control system (1) according to a twelfth aspect is any one of the first to eleventh aspects, and further includes a trajectory generation unit (6) that generates data on an operating trajectory and inputs the data to the model predictive control unit (3).
[0126] According to the above aspect, more stable force control of the control target can be achieved.
[0127] The control system (1) according to a thirteenth aspect is any one of the first to twelfth aspects, and further includes an operation control unit (5) that controls the operation of the control target based on the manipulated variable output from the model predictive control unit (3).
[0128] According to the above aspect, more stable force control of the control target can be achieved.
[0129] Regarding the control system (1) according to the fourteenth aspect, in any one of the first to thirteenth aspects, the object (9) is a metal member.
[0130] According to the above aspect, when the object (9) is a metal member, more stable force control of the control target can be achieved.
[0131] A control method according to a fifteenth aspect is a control method for controlling a motion trajectory of a control object (e.g., a robot Rb1) that may come into direct or indirect contact with an object (9). The control method includes a model predictive control step, a determination step, and an adjustment step. In the model predictive control step, a manipulated variable is determined using model predictive control so that an external force from the object (9) to the control object during contact matches a target force. In the determination step, it is determined whether the contact state of the control object (e.g., the robot Rb1) with the object (9) at a certain point in time after vibration occurs due to contact of the control object is a first state, which is a state before vibration converges, or a second state, which is a state after vibration converges. In the adjustment step, the horizon length of at least one of a prediction horizon (Hp) and a control horizon (Hu), which are applied to the model predictive control, is adjusted based on the determination result of the determination step.
[0132] According to the above aspect, it is possible to provide a control method that can speed up processing related to force control of a control target.
[0133] A program according to a sixteenth aspect is a program for causing one or more processors to execute the control method according to the fifteenth aspect.
[0134] According to the above aspect, it is possible to provide a function that can speed up processing related to force control of a control target.
[0135] The configurations according to the second to fourteenth aspects are not essential for the control system (1) and can be omitted as appropriate.
[0136] The control system, control method, and program disclosed herein can speed up processing related to force control of a control object. As a result, the processing related to force control of a control object such as a robot can be shortened. In other words, the control system, control method, and program disclosed herein are industrially useful.
[0137] REFERENCE SIGNS LIST 1 Control system 21 Determination unit 22 Adjustment unit 3 Model prediction control unit 41 Detection unit 42 State estimation unit 5 Operation control unit 6 Trajectory generation unit 9 Object Hp Prediction horizon Hu Control horizon Rb1 Robot (control target)
Claims
1. A control system that controls the motion trajectory of a controlled object where direct or indirect contact of the controlled object with an object may occur, comprising: a model predictive control unit that uses model predictive control to determine an operation amount so that an external force from the object to the controlled object in the contact matches a target force; a judgment unit that judges whether the contact state of the controlled object with the object at a certain point in time after the point in time when vibration is caused by the contact of the controlled object is a first state which is a state before the vibration converges, or a second state which is a state after the vibration converges; and an adjustment unit that adjusts the horizon length of at least one of the prediction horizon and control horizon applied to the model predictive control based on the judgment result of the judgment unit.
2. The control system according to claim 1, wherein, when the determination section determines that the contact state is the second state, the adjustment section adjusts the horizon length of at least one of the contact states so as to be shorter than that of the first state.
3. The control system according to claim 1 or 2, further comprising a state estimation unit that estimates the external force on the control target in the contact state.
4. The control system according to claim 3, wherein the determination unit determines whether the contact state is the first state or the second state based on a relationship between the target force and an estimation result of the state estimation unit.
5. The control system according to claim 1 or 2, further comprising a detection unit that detects the external force applied to the controlled object in the contact state.
6. The control system according to claim 5, wherein the determination unit determines whether the contact state is the first state or the second state based on the relationship between the target force and the detection result of the detection unit.
7. The control system according to any one of claims 1 to 6, wherein the determination unit executes a first determination process to determine whether or not a calculated value based on a difference between the target force and the external force is equal to or smaller than a predetermined value.
8. The control system according to claim 7, wherein the determination unit determines that the contact state is the first state when the calculated value is greater than the predetermined value in the first determination process.
9. The control system according to claim 7 or 8, wherein the determination unit executes a second determination process to determine whether or not the state in which the calculated value is equal to or less than the predetermined value continues for a predetermined period of time or more.
10. The control system according to claim 9, wherein the judgment unit judges that the contact state is the first state if the state in which the calculated value is equal to or less than the predetermined value in the second judgment process does not continue for more than the predetermined period.
11. The control system according to claim 9 or 10, wherein the determination unit repeatedly performs the first determination process and the second determination process for the target force.
12. The control system according to any one of claims 1 to 11, further comprising a trajectory generating unit that generates data relating to the motion trajectory and inputs the data to the model predictive control unit.
13. The control system according to any one of claims 1 to 12, further comprising an operation control unit that controls the operation of the controlled object based on the manipulated variable output from the model predictive control unit.
14. The control system according to any one of claims 1 to 13, wherein the object is a metal member.
15. A control method for controlling a motion trajectory of a controlled object in which direct or indirect contact of the controlled object with an object may occur, comprising: a model predictive control step of using model predictive control to determine an operation amount so that an external force from the object to the controlled object in the contact matches a target force; a judgment step of judging whether the contact state of the controlled object with the object at a certain point in time after the point in time when vibration is caused by the contact of the controlled object is a first state which is a state before the vibration converges, or a second state which is a state after the vibration converges; and an adjustment step of adjusting the horizon length of at least one of the prediction horizon and control horizon applied to the model predictive control based on the judgment result of the judgment step.
16. A program for causing one or more processors to execute the control method according to claim 15.
Citation Information
Patent Citations
Optimum control device, optimum control method, and optimum control program
JP2016198873A
Method of obtaining vibrational properties of robot arm
WO2021136565A1
