CN114952868B - 7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot - Google Patents

7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot Download PDF

Info

Publication number
CN114952868B
CN114952868B CN202210883755.5A CN202210883755A CN114952868B CN 114952868 B CN114952868 B CN 114952868B CN 202210883755 A CN202210883755 A CN 202210883755A CN 114952868 B CN114952868 B CN 114952868B
Authority
CN
China
Prior art keywords
mechanical arm
joint
track
target
robot
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.)
Active
Application number
CN202210883755.5A
Other languages
Chinese (zh)
Other versions
CN114952868A (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202210883755.5A priority Critical patent/CN114952868B/en
Publication of CN114952868A publication Critical patent/CN114952868A/en
Application granted granted Critical
Publication of CN114952868B publication Critical patent/CN114952868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1664Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/003Manipulators for entertainment
    • B25J11/004Playing a music instrument
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J13/00Controls for manipulators
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • B25J9/161Hardware, e.g. neural networks, fuzzy logic, interfaces, processor

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a control method and a control device for a 7-degree-of-freedom SRS type mechanical arm and a piano playing robot, wherein the method comprises the following steps: respectively carrying out inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of a key corresponding to the next rhythm; calculating the distance between the current position of the tail end of the mechanical arm and the target position according to the current position and the target position; if the distance is smaller than or equal to a preset threshold value, performing track interpolation of a joint space, and controlling the mechanical arm to move to the target pose; otherwise, planning a track of a Cartesian space, taking at least three track points on a preset track, performing inverse kinematics calculation on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the track points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle of the current pose, and controlling the mechanical arm to move to the target pose according to the joint angle sequence of each track point.

Description

7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot
Technical Field
The invention belongs to the technical field of robot mechanical arm control, and particularly relates to a 7-degree-of-freedom SRS type mechanical arm control method and device and a piano playing robot.
Background
Humanoid robots have been used in various industries, wherein humanoid robots have difficulties in actual floor application due to their multiple degrees of freedom, complex configuration, and the like. When the mechanical arm executes a task, task information is described in a cartesian space, however, when the actual mechanical arm is controlled, the task is completed by controlling motors of each joint of the mechanical arm, so that the description of the task in the cartesian space needs to be converted into a joint space of the mechanical arm, and the conversion is inverse kinematics of the mechanical arm. Meanwhile, when the robot executes a task, the track information of the robot is also described in a cartesian space, so that inverse kinematics calculation needs to be performed on points on the whole track.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
at present, in practical application, trajectory planning is generally required to be performed on the tail end of a redundant mechanical arm in a cartesian space, and further, the cartesian space trajectory is converted into a joint space trajectory through inverse kinematics calculation so as to control the motion of the mechanical arm. However, when inverse kinematics solution is actually performed on the cartesian space trajectory, a problem of solution failure occurs, which causes termination of the mechanical arm in the motion process. In addition, in the prior art, cartesian-space trajectory planning is also adopted for a case where the moving distance of the robot arm tip is short, but in this case, the motion of the robot arm after cartesian-space trajectory planning is performed is not smooth.
Disclosure of Invention
The embodiment of the application aims to provide a control method and device for a 7-degree-of-freedom SRS type mechanical arm and a piano playing robot, so as to solve the technical problems of discontinuous mechanical arm movement and unsmooth movement in a short distance in the related technology.
According to a first aspect of the embodiments of the present application, there is provided a 7-degree-of-freedom SRS-type mechanical arm control method applied to a piano playing robot, including:
establishing a world coordinate system by taking the center of the waist of the piano playing robot as an origin;
respectively carrying out inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of the tail end of the mechanical arm corresponding to the key in the next rhythm;
calculating the distance between the current position of the tail end of the mechanical arm and the target position according to the current position and the target position;
if the distance is smaller than or equal to a preset threshold value, performing track interpolation of a joint space, and calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period, so as to control the mechanical arm to move to the target pose;
if the distance is larger than the preset threshold value, planning a track of a Cartesian space, taking at least three track points on a preset track, performing inverse kinematics calculation on four joint angles of an elbow and a shoulder of the mechanical arm corresponding to the track points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to a joint angle sequence of each track point.
Further, the distance between the current position of the tail end of the mechanical arm and the target position is a difference value of coordinates of the current position and the target position in the Y direction.
Further, in the process of the track interpolation of the joint space, the angle, the angular velocity and the acceleration corresponding to the current position and the target position satisfy the relationship shown in the following formula:
Figure 825342DEST_PATH_IMAGE001
wherein the starting point angle, the angular velocity and the angular acceleration are
Figure 661711DEST_PATH_IMAGE002
Figure 168916DEST_PATH_IMAGE003
Figure 850564DEST_PATH_IMAGE004
The angle, angular velocity and angular acceleration of the target point are
Figure 25193DEST_PATH_IMAGE005
Figure 625939DEST_PATH_IMAGE006
Figure 761385DEST_PATH_IMAGE007
Figure 105779DEST_PATH_IMAGE008
In order to be the starting time of the exercise,
Figure 10281DEST_PATH_IMAGE009
is the exercise end time;
obtaining polynomial coefficients according to the formula
Figure 47507DEST_PATH_IMAGE010
=
Figure 529304DEST_PATH_IMAGE011
*
Figure 552755DEST_PATH_IMAGE012
And calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period according to the polynomial coefficient, so as to control the mechanical arm to move to the target pose.
Further, the preset track is a straight track or a parabolic track.
Further, at least three track points are taken on the preset track, including:
calculating a coefficient of a parabola according to the empirical value and the distance between the current position of the tail end of the mechanical arm and the target position;
and calculating the coordinate of each track point in the Z direction according to the coefficient, the Y coordinate of the current position and the Y coordinate of the target position.
According to a second aspect of the embodiments of the present application, there is provided a 7-degree-of-freedom SRS-type manipulator control device applied to a piano playing robot, including:
the establishing module is used for establishing a world coordinate system by taking the waist center of the piano playing robot as an origin;
the resolving module is used for respectively performing inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of the tail end of the mechanical arm corresponding to the key in the next rhythm;
the calculation module is used for calculating the distance between the current position and the target position of the tail end of the mechanical arm according to the current position and the target position;
the track interpolation module is used for performing track interpolation of joint space if the distance is less than or equal to a preset threshold value, and calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period so as to control the mechanical arm to move to the target pose;
and the track planning module is used for planning the track of a Cartesian space if the distance is greater than a preset threshold value, taking at least three track points on a preset track, performing inverse kinematics calculation on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the track points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to the joint angle sequence of each track point.
According to a third aspect of embodiments herein, there is provided an electronic device comprising:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the 7-degree-of-freedom SRS-type robot control method according to the first aspect.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the 7-degree-of-freedom SRS-type robot control method as described in the first aspect.
According to a fifth aspect of the embodiments of the present application, there is provided a piano playing robot, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the 7-degree-of-freedom SRS-type mechanical arm control method according to the first aspect when calling the computer program in the memory.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the embodiment, the track interpolation of the joint space is carried out on the short-distance movement, so that the movement of the mechanical arm is smoother; the Cartesian space trajectory planning is carried out on long-distance movement, the poses of the tail end of the mechanical arm at the starting point and the ending point of the trajectory are accurately calculated, the position of the tail end of the mechanical arm is accurately calculated at the middle point of the trajectory, the initial angles of joints which only affect the pose of the tail end of the mechanical arm and do not affect the position of the tail end of the mechanical arm, namely three joint angles of a wrist, are maintained, and the problem of motion termination caused by the fact that an inverse kinematics solution does not exist at the middle point when a 7-freedom-degree SRS type mechanical arm moves along the Cartesian space trajectory is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flow diagram illustrating a 7-degree-of-freedom SRS-type robot control method in accordance with an exemplary embodiment.
Fig. 2 is a schematic diagram of a harp playing robot according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating the step S15 of taking at least three track points on the preset track according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a 7-degree-of-freedom SRS-type robotic arm control apparatus in accordance with an exemplary embodiment.
FIG. 5 is a schematic diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
Fig. 1 is a flowchart illustrating a 7-degree-of-freedom SRS-type robot control method according to an exemplary embodiment, where the method is applied to a piano robot, and may include the following steps:
step S11: establishing a world coordinate system by taking the center of the waist of the piano playing robot as an origin;
step S12: respectively carrying out inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of the tail end of the mechanical arm corresponding to the key in the next rhythm;
step S13: calculating the distance between the current position of the tail end of the mechanical arm and the target position according to the current position and the target position;
step S14: if the distance is smaller than or equal to a preset threshold value, performing track interpolation of a joint space, and calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period, so as to control the mechanical arm to move to the target pose;
step S15: and if the distance is greater than a preset threshold value, carrying out Cartesian space track planning, taking at least three track points from a preset track, carrying out inverse kinematics calculation on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the track points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to the joint angle sequence of each track point.
According to the embodiment, the track interpolation of the joint space is carried out on the short-distance movement, so that the movement of the mechanical arm is smoother; the Cartesian space trajectory planning is carried out on long-distance movement, the poses of the tail end of the mechanical arm at the starting point and the ending point of the trajectory are accurately calculated, the position of the tail end of the mechanical arm is accurately calculated at the middle point of the trajectory, the initial angles of joints which only affect the pose of the tail end of the mechanical arm and do not affect the position of the tail end of the mechanical arm, namely three joint angles of a wrist, are maintained, and the problem of motion termination caused by the fact that an inverse kinematics solution does not exist at the middle point when a 7-freedom-degree SRS type mechanical arm moves along the Cartesian space trajectory is solved.
In the specific implementation of the step S11, a world coordinate system is established with the center of the waist of the piano playing robot as an origin;
specifically, as shown in fig. 2, a world coordinate system of the robot is established, the coordinate origin is located at the center of the waist of the robot, the positive direction of the X axis points right in front of the robot, the positive direction of the Y axis points to the left side of the robot, and the positive direction of the Z axis points above the robot, so that the right-hand criterion is met. The world coordinate system is established in such a way that the left arm and the right arm of the robot are symmetrical relative to the center line of the robot, so that the understanding and the derivation of the algorithm are facilitated.
In the specific implementation of the step S12, inverse kinematics solution is respectively performed on the start joint angle sequence and the target joint angle sequence of the mechanical arm joint space according to the current pose of the mechanical arm end and the target pose of the mechanical arm end corresponding to the key in the next rhythm;
specifically, the seven joint angles corresponding to the current pose and the seven joint angles corresponding to the target pose are obtained through inverse kinematics calculation, and the inverse kinematics calculation method may be any existing analysis solution, preferably a method in patent application with publication number CN113814988a, and is not described herein again.
In the specific implementation of the step S13, calculating the distance between the current position of the end of the mechanical arm and the target position according to the current position and the target position;
specifically, in the application scene of playing the piano, the distance between the robot and the piano in the X direction is fixed, and when the robot plays the piano, the distance between the tail end of the mechanical arm and the piano in the X direction is also fixed, so that the process of playing the piano can be simplified into the process that the coordinate of the tail end of the mechanical arm in the X direction is fixed and unchanged; when the mechanical arm is located at a key position corresponding to the rhythm, namely when the mechanical arm plays a piano at the current position and the target position of the mechanical arm, the relative distance between the tail end of the mechanical arm and the piano face of the piano in the Z direction is the same, so that the coordinate of the tail end of the mechanical arm in the Z-axis direction at the key can also be considered to be fixed; therefore, the distance between the current position of the tail end of the mechanical arm and the target position is the difference value of the coordinates of the current position and the target position in the Y direction, namely:
Figure 436397DEST_PATH_IMAGE013
in the formula (I), the compound is shown in the specification,
Figure 644525DEST_PATH_IMAGE014
the distance between the current position of the end of the mechanical arm and the target position,
Figure 486054DEST_PATH_IMAGE015
as the coordinates of the current position in the Y direction,
Figure 437830DEST_PATH_IMAGE016
is the coordinate of the target position in the Y direction.
In the specific implementation of step S14, if the distance is less than or equal to the predetermined threshold, performing trajectory interpolation of a joint space, and calculating a joint angle sequence, a joint angular velocity sequence, and a joint angular acceleration sequence of the mechanical arm at a certain time period, so as to control the mechanical arm to move to the target pose;
in particular, when
Figure 51345DEST_PATH_IMAGE017
In the process, instead of cartesian space trajectory planning, trajectory interpolation is performed on the starting joint angle sequence and the target joint angle sequence at the end of the mechanical arm in step S12 in the joint space, where the trajectory interpolation in the joint space includes a quintic polynomial method and a cubic polynomial method. Wherein the content of the first and second substances,
Figure 695953DEST_PATH_IMAGE018
as the predetermined threshold value, the width of three white keys on the piano is set according to the actual performance effect setting in the present embodiment.
In a specific implementation, the trajectory interpolation of the joint space may be performed by a quintic polynomial method, a cubic polynomial method, or the like. In the embodiment, a quintic polynomial method is adopted, and the position, the speed and the angular speed of each joint of the mechanical arm can be continuous through the planned track, so that the smooth motion of the mechanical arm is realized. In the fifth-order polynomial method, the angle, the angular velocity, and the acceleration of the current position corresponding to the target position satisfy the relationship shown as the following expression:
Figure 886763DEST_PATH_IMAGE001
wherein the starting point angle, the angular velocity and the angular acceleration are
Figure 517595DEST_PATH_IMAGE002
Figure 844671DEST_PATH_IMAGE003
Figure 535547DEST_PATH_IMAGE019
The angle, angular velocity and angular acceleration of the target point are
Figure 479232DEST_PATH_IMAGE005
Figure 772810DEST_PATH_IMAGE020
Figure 360918DEST_PATH_IMAGE007
Figure 816170DEST_PATH_IMAGE008
In order to be the starting time of the exercise,
Figure 981572DEST_PATH_IMAGE009
is the end time of the exercise;
obtaining polynomial coefficients according to the formula
Figure 954207DEST_PATH_IMAGE021
=
Figure 787034DEST_PATH_IMAGE022
*
Figure 288553DEST_PATH_IMAGE023
And calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period according to the polynomial coefficient, so as to control the mechanical arm to move to the target pose. The time period is consistent with the control period of the motor forming the mechanical arm.
In the specific implementation of the step S15, if the distance is greater than the predetermined threshold, performing cartesian space trajectory planning, taking at least three trajectory points on a preset trajectory, performing inverse kinematics solution on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the trajectory points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the trajectory points consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to the joint angle sequence of each trajectory point;
in particular, when
Figure 206831DEST_PATH_IMAGE024
And when the robot is used, cartesian space trajectory planning is carried out on the trajectory of the tail end of the mechanical arm, and the preset trajectory can be a straight trajectory or a parabolic trajectory. And planning the tail end track of the mechanical arm into a reverse parabola according to the actual piano playing scene. Wherein the content of the first and second substances,
Figure 842211DEST_PATH_IMAGE018
as the predetermined threshold value, the width of three white keys on the piano is set according to the actual performance effect setting in the present embodiment. Selecting an inverse parabolaThe track of the line can make the motion of the piano playing robot more anthropomorphic.
In this embodiment, as shown in fig. 3, taking at least three track points on the preset track may include the following steps:
step S21: calculating a coefficient of a parabola according to the empirical value and the distance between the current position of the tail end of the mechanical arm and the target position;
specifically, the highest point of the parabola is set as the middle point of the current position and the target position in the Y-axis direction, and the distance between the Z-axis and the Z-axis coordinate of the current position is set as
Figure 139332DEST_PATH_IMAGE025
Namely:
Figure 467545DEST_PATH_IMAGE026
wherein K is an empirical value and satisfies the following constraints:
Figure 237834DEST_PATH_IMAGE027
Figure 942485DEST_PATH_IMAGE028
Figure 218745DEST_PATH_IMAGE029
the current height of playing the piano is subtracted from the highest height that the mechanical arm can lift in the application of playing the piano.
Taking three points on the trajectory, a quadratic coefficient can be set:
Figure 593226DEST_PATH_IMAGE030
step S22: calculating the coordinate of each track point in the Z direction according to the coefficient, the Y coordinate of the current position and the Y coordinate of the target position;
specifically, the coordinate of each track point in the Z direction can be obtained according to the coefficient, the Y coordinate of the current position and the Y coordinate of the target position
Figure 954937DEST_PATH_IMAGE031
Figure 73066DEST_PATH_IMAGE032
In this embodiment, the inverse kinematics calculation method for "performing inverse kinematics calculation on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the track point, keeping three joint angles of the wrist of the mechanical arm corresponding to the track point consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to the seven joint angles of each track point" may also be an existing arbitrary resolution method, and is preferably a method in patent application publication No. CN113814988a, and is not described herein again. In the embodiment, the initial angles of the joints which only affect the tail end posture of the mechanical arm and do not affect the tail end position of the mechanical arm, namely the three joint angles of the wrist, are maintained, and the problem of motion termination caused by the fact that an inverse kinematics solution does not exist in the middle point when the 7-freedom-degree SRS type mechanical arm moves along a Cartesian space track is solved.
Corresponding to the foregoing embodiment of the 7-degree-of-freedom SRS-type robot control method, the present application also provides an embodiment of a 7-degree-of-freedom SRS-type robot control apparatus.
Fig. 4 is a block diagram illustrating a 7-degree-of-freedom SRS-type robot control apparatus according to an exemplary embodiment. Referring to fig. 4, the apparatus is applied to a piano playing robot, and may include:
the establishing module 21 is used for establishing a world coordinate system by taking the waist center of the piano playing robot as an origin;
the resolving module 22 is used for respectively performing inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of the tail end of the mechanical arm corresponding to the key in the next rhythm;
the calculating module 23 is configured to calculate a distance between a current position of the end of the mechanical arm and a target position according to the current pose and the target pose;
the track interpolation module 24 is configured to perform track interpolation of a joint space if the distance is less than or equal to a predetermined threshold, and calculate a joint angle sequence, a joint angular velocity sequence, and a joint angular acceleration sequence of the mechanical arm at a certain time period, so as to control the mechanical arm to move to the target pose;
and the track planning module 25 is configured to plan a track in a cartesian space if the distance is greater than a predetermined threshold, take at least three track points on a preset track, perform inverse kinematics solution on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the track points, keep the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle corresponding to the current pose, and control the mechanical arm to move to the target pose according to a joint angle sequence of each track point.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when executed by the one or more processors, cause the one or more processors to implement a 7-degree-of-freedom SRS-type robot arm control method as described above. As shown in fig. 5, for a hardware structure diagram of any device with data processing capability in which a 7-degree-of-freedom SRS-type mechanical arm control method according to an embodiment of the present invention is located, in addition to the processor, the memory, the DMA controller, the magnetic disk, and the nonvolatile memory shown in fig. 5, any device with data processing capability in which a device is located in an embodiment may also include other hardware according to an actual function of the any device with data processing capability, which is not described again.
Accordingly, the present application also provides a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the 7-degree-of-freedom SRS-type robot control method as described above. The computer readable storage medium may be an internal storage unit, such as a hard disk or a memory, of any data processing capability device described in any of the foregoing embodiments. The computer readable storage medium may also be an external storage device of the wind turbine, such as a plug-in hard disk, a Smart Media Card (SMC), an SD Card, a Flash memory Card (Flash Card), and the like, provided on the device. Further, the computer readable storage medium may include both an internal storage unit of any data processing capable device and an external storage device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the arbitrary data processing-capable device, and may also be used for temporarily storing data that has been output or is to be output.
As shown in fig. 2, the application further provides a piano playing robot, which includes a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the 7-degree-of-freedom SRS-type mechanical arm control method when calling the computer program in the memory.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims (9)

1. A control method of a 7-degree-of-freedom SRS type mechanical arm is applied to a piano playing robot and comprises the following steps:
establishing a world coordinate system by taking the waist center of the piano playing robot as an origin, wherein the origin of coordinates is positioned at the waist center of the robot, the positive direction of an X axis points to the front of the robot, the positive direction of a Y axis points to the left side of the robot, and the positive direction of a Z axis points to the upper side of the robot;
respectively carrying out inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of the tail end of the mechanical arm corresponding to the key in the next rhythm;
calculating the distance between the current position of the tail end of the mechanical arm and the target position according to the current position and the target position, wherein the distance between the current position of the tail end of the mechanical arm and the target position is the difference value of the coordinates of the current position and the target position in the Y direction;
if the distance is smaller than or equal to a preset threshold value, performing track interpolation of a joint space, and calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period, so as to control the mechanical arm to move to the target pose;
if the distance is larger than the preset threshold value, planning a track of a Cartesian space, taking at least three track points on a preset track, performing inverse kinematics calculation on four joint angles of an elbow and a shoulder of the mechanical arm corresponding to the track points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to a joint angle sequence of each track point.
2. The method of claim 1, wherein the distance between the current position of the end of the robotic arm and the target position is a difference between the current position and the target position in the Y-direction.
3. The method according to claim 1, wherein in the process of the track interpolation of the joint space, the angle, the angular velocity and the acceleration corresponding to the current position and the target position satisfy the following relationship:
Figure DEST_PATH_IMAGE001
wherein the starting point angle, angular velocity and angular acceleration are
Figure 907910DEST_PATH_IMAGE002
Figure DEST_PATH_IMAGE003
Figure 293892DEST_PATH_IMAGE004
The angle, angular velocity and angular acceleration of the target point are
Figure DEST_PATH_IMAGE005
Figure 339208DEST_PATH_IMAGE006
Figure DEST_PATH_IMAGE007
Figure 203259DEST_PATH_IMAGE008
In order to be the starting time of the exercise,
Figure DEST_PATH_IMAGE009
is the end time of the exercise;
obtaining polynomial coefficients according to the formula
Figure 486473DEST_PATH_IMAGE010
=
Figure DEST_PATH_IMAGE011
*
Figure 761465DEST_PATH_IMAGE012
And calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period according to the polynomial coefficient, so as to control the mechanical arm to move to the target pose.
4. The method of claim 1, wherein the predetermined trajectory is a straight trajectory or a parabolic trajectory.
5. The method of claim 1, wherein taking at least three trajectory points on the predetermined trajectory comprises:
calculating a coefficient of a parabola according to the empirical value and the distance between the current position of the tail end of the mechanical arm and the target position;
and calculating the coordinate of each track point in the Z direction according to the coefficient, the Y coordinate of the current position and the Y coordinate of the target position.
6. The utility model provides a 7 degree of freedom SRS type arm controlling means which characterized in that is applied to the robot of playing a musical instrument, includes:
the establishment module is used for establishing a world coordinate system by taking the waist center of the piano playing robot as an origin, wherein the origin of coordinates is positioned at the waist center of the robot, the positive direction of an X axis points right in front of the robot, the positive direction of a Y axis points to the left side of the robot, and the positive direction of a Z axis points to the upper side of the robot;
the resolving module is used for respectively performing inverse kinematics resolving on a starting joint angle sequence and a target joint angle sequence of a mechanical arm joint space according to the current pose of the tail end of the mechanical arm and the target pose of the tail end of the mechanical arm corresponding to the key in the next rhythm;
the calculation module is used for calculating the distance between the current position of the tail end of the mechanical arm and the target position according to the current position and the target position, wherein the distance between the current position of the tail end of the mechanical arm and the target position is the difference value of the current position and the coordinate of the target position in the Y direction;
the track interpolation module is used for performing track interpolation of joint space if the distance is less than or equal to a preset threshold value, and calculating a joint angle sequence, a joint angular velocity sequence and a joint angular acceleration sequence of the mechanical arm in a certain time period so as to control the mechanical arm to move to the target pose;
and the track planning module is used for planning the track of a Cartesian space if the distance is greater than a preset threshold value, taking at least three track points on a preset track, performing inverse kinematics calculation on four joint angles of the elbow and the shoulder of the mechanical arm corresponding to the track points, keeping the three joint angles of the wrist of the mechanical arm corresponding to the track points consistent with the joint angle corresponding to the current pose, and controlling the mechanical arm to move to the target pose according to the joint angle sequence of each track point.
7. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the 7-degree-of-freedom SRS-type robot arm control method of any one of claims 1-5.
8. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, carry out the steps of the 7-degree-of-freedom SRS-type robot control method as claimed in any one of claims 1 to 5.
9. A piano robot comprising a memory in which a computer program is stored and a processor, wherein the processor executes the steps of the 7-degree-of-freedom SRS-type manipulator control method according to any one of claims 1-5 when calling the computer program stored in the memory.
CN202210883755.5A 2022-07-26 2022-07-26 7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot Active CN114952868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210883755.5A CN114952868B (en) 2022-07-26 2022-07-26 7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210883755.5A CN114952868B (en) 2022-07-26 2022-07-26 7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot

Publications (2)

Publication Number Publication Date
CN114952868A CN114952868A (en) 2022-08-30
CN114952868B true CN114952868B (en) 2022-11-11

Family

ID=82969246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210883755.5A Active CN114952868B (en) 2022-07-26 2022-07-26 7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot

Country Status (1)

Country Link
CN (1) CN114952868B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115781683B (en) * 2022-12-20 2024-05-24 实时侠智能控制技术有限公司 Online track planning method and device for mechanical arm and computer readable medium
CN115922728B (en) * 2023-01-03 2023-06-30 之江实验室 Robot pointing motion control method, apparatus, electronic device, and storage medium
CN116125906A (en) * 2023-01-04 2023-05-16 中国林业科学研究院生态保护与修复研究所 Motion planning method, device and equipment for numerical control machining and storage medium
CN116394277B (en) * 2023-06-08 2023-08-25 之江实验室 Robot is played to imitative people piano
CN116587289B (en) * 2023-07-17 2024-03-29 西北工业大学太仓长三角研究院 Seven-degree-of-freedom wrist joint bias mechanical arm inverse solution method, system and medium
CN117207204B (en) * 2023-11-09 2024-01-30 之江实验室 Control method and control device of playing robot

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106112951A (en) * 2016-07-01 2016-11-16 广州霞光技研有限公司 Multiple degrees of freedom master-slave mode remote operating method for controlling robot
CN106346478A (en) * 2016-11-09 2017-01-25 广州视源电子科技股份有限公司 Control method and device for mechanical arm
CN106625697A (en) * 2016-11-15 2017-05-10 同济大学 Intelligent desktop type mechanical arm system based on machine vision technology
CN107571261B (en) * 2017-08-30 2019-10-22 中国科学院自动化研究所 The smooth transient method and device of the more space tracking planning of teaching robot
CN109397271B (en) * 2018-11-23 2020-07-24 华中科技大学 7-degree-of-freedom anthropomorphic mechanical arm and control method and system thereof
CN112405519A (en) * 2019-08-23 2021-02-26 贵州大学 Motion trajectory planning method for loading and unloading robot
CN113814988B (en) * 2021-11-24 2022-02-22 之江实验室 7-degree-of-freedom SRS type mechanical arm inverse solution analysis method and device and electronic equipment
CN114131612B (en) * 2021-12-20 2024-01-30 中国科学院长春光学精密机械与物理研究所 Redundant mechanical arm real-time look-ahead track planning method based on NURBS curve interpolation algorithm
CN114670191B (en) * 2022-03-14 2023-12-01 南京航空航天大学 Seven-degree-of-freedom elbow offset mechanical arm track planning method

Also Published As

Publication number Publication date
CN114952868A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN114952868B (en) 7-degree-of-freedom SRS (sounding reference Signal) type mechanical arm control method and device and piano playing robot
CN109159151B (en) Mechanical arm space trajectory tracking dynamic compensation method and system
CN110039542B (en) Visual servo tracking control method with speed and direction control function and robot system
CN108068113B (en) 7-DOF humanoid arm flying object operation minimum acceleration trajectory optimization
CN111360827A (en) Visual servo switching control method and system
CN112757306A (en) Inverse solution multi-solution selection and time optimal trajectory planning algorithm for mechanical arm
US20080243307A1 (en) Apparatus and Method for Generating and Controlling the Motion of a Robot
CN114670191B (en) Seven-degree-of-freedom elbow offset mechanical arm track planning method
CN110561420B (en) Arm profile constraint flexible robot track planning method and device
CN109623812B (en) Mechanical arm trajectory planning method considering spacecraft body attitude motion
CN108189034A (en) A kind of robot continuous path implementation method
CN111283683B (en) Servo tracking accelerated convergence method for robot visual feature planning track
CN111123943A (en) Pseudo-inverse constraint-based super-redundant robot trajectory planning method and system
CN115122325A (en) Robust visual servo control method for anthropomorphic manipulator with view field constraint
CN114260896B (en) Flexible force control method and system for cooperative robot
CN114211495B (en) Self-adaptive track optimization method and system for semiconductor wafer conveying mechanical arm
CN113814988B (en) 7-degree-of-freedom SRS type mechanical arm inverse solution analysis method and device and electronic equipment
CN113199481B (en) Robot motion control method, device, electronic apparatus, and medium
CN112356032A (en) Posture smooth transition method and system
CN116512245A (en) Track optimization method and device for inhibiting residual vibration of flexible joint mechanical arm
CN113459103B (en) Corner track control method and device during automatic operation of manipulator
CN116141341B (en) Method for realizing pointing action of five-degree-of-freedom mechanical arm meeting Cartesian space constraint
CN117506939B (en) Mechanical arm motion planning method based on state triggering self-adaptive gradient neural network
CN117182932B (en) Method and device for planning obstacle avoidance action of mechanical arm and computer equipment
CN110543181B (en) Under-actuated angle decoupling attitude control method and 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