WO2018205276A1 - Motion trajectory smooth transition method and device and related equipment - Google Patents

Motion trajectory smooth transition method and device and related equipment Download PDF

Info

Publication number
WO2018205276A1
WO2018205276A1 PCT/CN2017/084199 CN2017084199W WO2018205276A1 WO 2018205276 A1 WO2018205276 A1 WO 2018205276A1 CN 2017084199 W CN2017084199 W CN 2017084199W WO 2018205276 A1 WO2018205276 A1 WO 2018205276A1
Authority
WO
WIPO (PCT)
Prior art keywords
arc
curve
trajectory
point
interpolation
Prior art date
Application number
PCT/CN2017/084199
Other languages
French (fr)
Chinese (zh)
Inventor
王伟
Original Assignee
深圳配天智能技术研究院有限公司
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 深圳配天智能技术研究院有限公司 filed Critical 深圳配天智能技术研究院有限公司
Priority to CN201780034014.7A priority Critical patent/CN109313428B/en
Priority to PCT/CN2017/084199 priority patent/WO2018205276A1/en
Publication of WO2018205276A1 publication Critical patent/WO2018205276A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/02Programme-controlled manipulators characterised by movement of the arms, e.g. cartesian coordinate type
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/41Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that path
    • G05B19/4103Digital interpolation

Definitions

  • the present invention relates to the field of motion control technologies, and in particular, to a method and apparatus for smooth transition of motion trajectories and related devices.
  • the existing interpolation curve is usually an approximate arc.
  • the arc calculation method is simple, it cannot guarantee that C 2 is continuous at the connection point between the arc and the two segments, and only C 1 is continuous.
  • the equipment usually sets a contour error.
  • the contour error is usually not guaranteed when calculating the interpolation curve, which leads to the problem that the motion of the motion curve is not smooth due to the smoothness of the motion curve. .
  • the technical problem to be solved by the present invention is to provide a method and device for smooth transition of motion trajectory and related equipment, which can accurately fit an interpolation curve that achieves continuous curvature and speed and can ensure contour error of the device.
  • a technical solution adopted by the present invention is to provide a method for smoothly switching a motion trajectory, the method comprising: acquiring a first trajectory and a second trajectory to be smoothly transferred and a preset contour error; The first trajectory and the second trajectory and the preset contour error determine the position of the feature interpolation point; the first trajectory and the feature interpolation are fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The interpolation curve of the point and the second trajectory, so that the curvature and tangential angle of the first trajectory and the interpolation curve at the joint point of the two trajectories are equal, and the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point of the two points Equal; the first and second tracks are smoothly transferred using the interpolation curve.
  • a technical solution adopted by the present invention is: a device for smoothly switching a motion trajectory, the device comprising a processor and a memory connected to the processor, the memory for storing the first track, the second track, and the pre- Setting a contour error, the processor is configured to acquire a first trajectory, a second trajectory, and a preset contour error from the memory; determine a position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; according to the first trajectory, Two trajectories, feature interpolation points, and general equations for interpolation curves And inserting an interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory, so that the curvature of the first trajectory and the interpolation curve at the connection point of the two is equal to the tangential angle, and the second trajectory and the interpolation curve are The curvature of the joint points is equal to the tangential angle.
  • another technical solution adopted by the present invention is to provide a storage device that stores program data that can be executed to implement the above method.
  • a robot system including a robot and a controller connected to the robot, and the controller is configured to acquire a first track and a second to be smoothly transferred.
  • a trajectory and a preset contour error determining a position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; and fitting according to the first trajectory, the second trajectory, the feature interpolation point, and the general equation of the interpolation curve Interpolating the interpolation curve of the first trajectory, the feature interpolation point and the second trajectory such that the curvature of the first trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle, and the second trajectory and the interpolation curve are in both
  • the curvature of the connection point is equal to the tangential angle; and the motion of the robot or the components of the robot is controlled according to the first trajectory, the second trajectory, and the interpolation curve.
  • a numerical control machine tool including a machine tool body and a numerical control device, and the numerical control device is configured to acquire a first track and a second track to be smoothly transferred and Presetting the contour error; determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; fitting the connection according to the first trajectory, the second trajectory, the feature interpolation point, and the general equation of the interpolation curve Interpolation curve of a trajectory, a feature interpolation point and a second trajectory, so that the curvature and tangential angle of the first trajectory and the interpolation curve at the connection point of the two are equal, and the second trajectory and the interpolation curve are at the connection point of the two
  • the curvature is equal to the tangential angle; the motion of the machine body or the components of the machine body is controlled according to the first trajectory, the second trajectory, and the interpolation curve.
  • the present invention determines the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error by using the contour error as a condition for fitting the interpolation curve. Then, according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation, the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory is fitted, and on the one hand, the accurate fitting can be accurately performed.
  • the interpolation curve on the other hand, the fitted interpolation curve ensures the contour error of the device during motion.
  • FIG. 1 is a flow chart of a method for smoothing a motion track according to a first embodiment of the present invention
  • FIG. 2 is a flow chart of a method for smoothing a motion track according to a second embodiment of the present invention
  • Figure 3 is a geometrical diagram of line segments, arcs, and interpolation curves
  • FIG. 4 is a flow chart of a method for smoothing a motion track according to a third embodiment of the present invention.
  • Figure 5 is a geometrical diagram of the first arc, the second arc, and the interpolation curve
  • FIG. 6 is a schematic block diagram of a motion trajectory smoothing switching device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a storage device according to an embodiment of the present invention.
  • FIG. 8 is a block diagram of a robot system according to an embodiment of the present invention.
  • Figure 9 is a block diagram of a numerically controlled machine tool according to an embodiment of the present invention.
  • FIG. 1 is a flow chart of a method for smoothing a motion track according to a first embodiment of the present invention.
  • the method for smoothing the motion track includes the following steps:
  • Step S11 Acquire a first track and a second track to be smoothly transferred and a preset contour error.
  • the first track is an arc or a line segment
  • the second track is an arc.
  • Step S12 determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error.
  • the determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error may be: a tangential angle at a connection point of the first trajectory and the second trajectory On the angle bisector, the point at which the connection point between the first trajectory and the second trajectory is the preset contour error is selected as the feature interpolation point.
  • Step S13 fitting an interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation, so that the first trajectory and the insertion
  • the curvature of the complementary curve is equal to the tangential angle at the joint point of the two, and the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point of the two are equal.
  • the step of fitting the interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation includes: : fitting a first sub-curve connecting the first trajectory and the feature interpolation point and a second sub-curve connecting the feature interpolation point and the second trajectory, wherein the first sub-curve and the second sub-curve respectively satisfy the interpolation curve
  • the general equations have different curve parameters.
  • the first sub-curve and the second sub-curve have the same curvature and tangential angle at the feature interpolation point. For details, please refer to the description below.
  • the fitting is performed in a manner of dividing into two sub-curves.
  • the method may be performed by dividing into three or more sub-curves, or by using a curve.
  • the first sub-curve is a first clothoid curve
  • the second sub-curve is a second convoluted curve.
  • the first sub-curve and the second sub-curve may also adopt other characteristic curves.
  • FIG. 2 is a flowchart of a method for smoothing a motion track according to a second embodiment of the present invention.
  • the method includes: fitting a first sub-curve connecting the first trajectory and the feature interpolation point, and a second sub-curve connecting the feature interpolation point and the second trajectory, wherein the first sub-curve and the second sub-curve respectively satisfy the interpolation
  • the general equation of the curve has different curve parameters, and the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal.
  • the curvature of the first trajectory and the interpolation curve at the joint point of the two trajectories is equal to the tangential angle
  • the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
  • the first track is a line segment and the second track is an arc.
  • the first sub-curve is a first clothoid curve and the second sub-curve is a second convoluted curve.
  • the method for smoothing the motion track includes the following steps:
  • Step S21 Obtain a line segment and an arc to be smoothly transferred and a preset contour error.
  • the acquiring the line segment and the arc to be smoothly transferred includes: acquiring the position of the line segment and the position of the arc and the positional relationship between the two.
  • Step S22 determining the position of the feature interpolation point according to the line segment and the arc and the preset contour error.
  • the determining condition of the feature interpolation point is: selecting a distance line segment and an arc connecting point of the angle between the intersection line of the arc and the line segment and the angle of the line segment as the preset contour error.
  • the point is used as a feature interpolation point. That is, the Q point in FIG. 3 or FIG. 4, see the description below.
  • Step S23 setting the line segment on a coordinate axis of the Cartesian coordinate system, and the end of the line segment not connected to the arc is set to coincide with the origin of the Cartesian coordinate system;
  • one end of the line segment that is not connected to the arc is taken as the origin, and a coordinate system is established with the line segment as one coordinate axis, as described in detail below.
  • Step S24 Solving the curve parameters of the first convoluted curve and the second convoluted curve by combining the following two sets of equations:
  • x 0 is the coordinate of the connection point of the first convoluted curve and the line segment on the coordinate axis
  • c 0 is the curvature change rate of the first convoluted curve
  • s 0 is the connection point of the first convoluted curve from the line segment to the feature insertion
  • the arc length between the complement points, c 1 is the curvature change rate of the second convolution curve, and s 1 is the arc length of the second convolution curve from the feature interpolation point to the connection point with the arc
  • is an arc from the connection point with the second clothoid arc to the central angle of the arc segment and the connection point between the arc segment
  • T ccw rotation matrix, T ccw, x 0, c 0, s 0, c 1, s 1 and ⁇ are unknown quantities that need to be solved by two sets of equations;
  • L is the length of the line segment
  • E is the preset contour error
  • is the angle between the line segment and the arc
  • R is the radius of the arc
  • x c is the coordinate of the center of the arc on the coordinate axis
  • y c is the circle
  • the direction vector of the point from the center of the arc to the arc and the line segment, x c , y c , L, ⁇ , and R are known quantities that can be obtained by the relative positional relationship between the line segment and the arc and both.
  • the interpolation curve is a clothoid curve, which has the characteristics that the curvature varies linearly with the arc length of the path.
  • s is the curve path arc length
  • x(s) is the curve path arc length corresponding to the abscissa
  • x 0 is the abscissa at the beginning of the curve
  • y 0 is the abscissa at the beginning of the curve
  • y(s) The arc length of the curve path is the ordinate corresponding to s
  • ⁇ (s) is the tangential angle corresponding to the arc length of the curve path
  • ⁇ 0 is the tangential angle of the starting point of the curve
  • k 0 is the curvature of the starting point of the curve
  • c For the rate of curvature change of the curve
  • k(s) is the curvature of the curved path with the arc length being s.
  • the curvature and the tangential angle of the first trajectory and the interpolation curve are equal to the first smooth transition condition
  • the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point are equal to the second Smoothing the transition condition
  • the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal to a third smooth transition condition.
  • FIG. 3 is a geometric diagram of line segments, arcs, and interpolation curves.
  • the smooth transition of the line segment NP and the arc PM will be described below as an example.
  • the I point is the connection point between the line segment NP and the first convolution curve IQ
  • the O point is the connection point of the arc PM and the second convolution curve QO
  • the P point is the connection point of the line segment NP and the arc PM
  • C is the arc PM. Center of the circle.
  • N point ⁇ I point ⁇ Q point ⁇ O point ⁇ M point as an example.
  • step S21 acquiring line segments and arcs to be smoothly transferred and preset contour errors include:
  • step S22 the determination condition of the feature interpolation point according to the foregoing is the angle bisector of the angle between the line segment NP and the tangent of the arc PM of the feature interpolation point Q and the distance QP from the point P is E and according to the pre- The contour error E, the angle ⁇ , and the length L of the line segment NP are set to determine the position of the feature interpolation point Q.
  • step S23 and step S24 are identical in step S23 and step S24:
  • step S22 First establish a Cartesian coordinate system.
  • the line segment NP is set on the x-axis, and the N point is set to coincide with the coordinate origin.
  • step S22 the coordinates of the feature interpolation point Q in the established coordinate system are obtained. :
  • the positions of the x-axis and the y-axis may be reversed, such as setting the line segment NP on the y-axis and setting the N point to coincide with the coordinate origin.
  • the curvature and the tangential angle of the line segment NP are 0, and the curvature of the first convolution curve at the point I and the tangential angle are both 0 by the first smooth transition condition.
  • the partial parameters of the connection point of the first trajectory and the first gyro curve, the partial parameters of the first gyroscopic curve at the connection point of the first trajectory and the first gyro curve, and the feature interpolation are satisfied according to the general curve of the interpolation curve.
  • the position of the point is taken into the general equation of the interpolation curve to obtain the equation (1):
  • the ordinate of the I point is 0, the curvature of the first convolution curve at the I point is 0 and the tangential angle are 0, and the coordinates of the interpolation feature point are taken into the general equation of the interpolation curve to obtain the equations (1)
  • the coordinates of the center C in the Cartesian coordinate system are (x c , y c ), C point to Direction vector of point P
  • the general equation of the interpolation curve satisfies the position of the feature interpolation point, the partial parameter of the connection point of the second trajectory and the second gyro curve, and the second gyro curve in the second trajectory and the second gyroscopic curve.
  • Part of the parameters of the connection point and the third smooth transition condition are brought into the general equation of the interpolation curve to obtain the equations (2):
  • the curvature of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
  • the tangential angle of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
  • FIG. 4 is a flowchart of a method for smoothing a motion track according to a third embodiment of the present invention.
  • the step of connecting the interpolation curves connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The method includes: fitting a first sub-curve connecting the first trajectory and the feature interpolation point, and a second sub-curve connecting the feature interpolation point and the second trajectory, wherein the first sub-curve and the second sub-curve respectively satisfy the interpolation
  • the general equation of the curve has different curve parameters, and the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal.
  • the curvature of the first trajectory and the interpolation curve at the joint point of the two trajectories is equal to the tangential angle
  • the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
  • the first sub-curve is a first clothoid curve and the second sub-curve is a second convoluted curve.
  • the first track is a first arc and the second track is a second arc.
  • the method for smoothing the motion track includes the following steps:
  • Step S31 Acquire a first arc and a second arc to be smoothly transferred and a preset contour error.
  • step S31 for example, acquiring the first arc and the second arc to be smoothly transferred includes: acquiring the first arc and the second arc And the positional relationship between the two.
  • Step S32 determining the position of the feature interpolation point according to the first arc and the second arc and the preset contour error.
  • step S32 for example, the determination condition of the feature interpolation point is that the first arc and the second arc are selected from the first arc and the second on the angle bisector of the angle of the tangent at the joint point of the two arcs.
  • the point where the arc's connection point is the preset contour error is used as the feature interpolation point.
  • Step S33 setting a tangent line of the first arc at one end not connected to the second arc on a coordinate axis of the Cartesian coordinate system, and setting one end of the first arc not connected to the second arc to a right angle The origin of the coordinate system coincides.
  • Step S34 Solving the curve parameters of the first convoluted curve and the second convoluted curve by combining the following two sets of equations:
  • c 0 is the curvature change rate of the first convoluted curve
  • s 0 is the arc length between the connection point of the first convoluted curve from the first arc to the feature interpolation point
  • c 1 is the second convoluted curve Curvature change rate
  • s 1 is the arc length of the second convolution curve from the feature interpolation point to the connection point with the second arc
  • ⁇ 1 is the first arc from the first arc and the second arc
  • ⁇ 2 is the second arc from the connection point of the second convoluted curve to the second arc to the second circle
  • T cw is the rotation matrix; c 0 , s 0 , c 1 , s 1 , ⁇ 1 , ⁇ 2 , T cw are required to pass through two groups
  • R 1 is the radius of the first arc
  • R 2 is the radius of the second arc
  • E is the preset contour error
  • x 1 is the coordinate of the connection point of the first arc and the second arc on the coordinate axis
  • y 1 is the coordinate of the connection point of the first arc and the second arc on another coordinate axis of the Cartesian coordinate system
  • x 2 is the coordinate of the center of the second arc on the coordinate axis
  • y 2 is the second circle
  • the general equation of the interpolation curve is the same as that of the second embodiment, and the three expressions are respectively equations (3), (4), and (5), and are not described herein again.
  • the curvature and the tangential angle of the first trajectory and the interpolation curve are equal to the first smooth transition condition
  • the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point are equal to the second Smoothing the transition condition
  • the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal to a third smooth transition condition.
  • FIG. 5 is a geometrical diagram of the first arc, the second arc, and the interpolation curve.
  • the smooth transition of the first circular arc NP and the second circular arc PM will be described below as an example.
  • the I point is the connection point of the first arc NP and the first convolution curve IQ
  • the O point is the connection point of the second arc PM and the second convolution curve QO
  • the P point is the first arc NP and the second arc PM Connection point.
  • N point ⁇ I point ⁇ Q point ⁇ O point ⁇ M point as an example.
  • step S31 acquiring the first arc and the second arc to be smoothly transferred and the preset contour error include:
  • step S32 the determination condition of the feature interpolation point according to the foregoing is the angle bisector of the angle of the feature interpolation point Q between the first arc NP and the tangent of the second arc PM and the distance from the P point QP.
  • E and according to the preset contour error E, the angle ⁇ , The position of the feature interpolation point Q is determined.
  • step S33 and step S34 are identical in step S33 and step S34:
  • the tangent of the first arc NP is set on the x-axis, and the N point is set to coincide with the coordinate origin.
  • a right angle is established at the acquired P point.
  • the coordinates in the coordinate system are (x 1 , y 1 )
  • the coordinates of the feature interpolation point Q in the established coordinate system are:
  • the settings of the x-axis and the y-axis of the Cartesian coordinate system may be reversed, for example, setting a tangent to the first arc NP on the y-axis and setting the N point to coincide with the coordinate origin.
  • the coordinate of the I point is represented by the geometric relationship as
  • the partial parameters of the connection point of the first trajectory and the first gyro curve, the partial parameters of the first gyroscopic curve at the connection point of the first trajectory and the first gyro curve, and the feature interpolation are satisfied according to the general curve of the interpolation curve.
  • the position of the point is taken into the general equation of the interpolation curve to obtain the equations (6):
  • the tangential angle of the second convolution curve at point O is expressed as a second smooth transition condition as
  • Atan2 represents the inverse tangent function, but the angle is limited to the [- ⁇ , ⁇ ] interval;
  • step S32 it can be concluded that the coordinates of the point O are expressed as the coordinates of the acquired center O 2 in the established Cartesian coordinate system (x 2 , y 2 ).
  • the general equation of the interpolation curve satisfies the position of the feature interpolation point, the partial parameter of the connection point of the second trajectory and the second gyro curve, and the second gyro curve in the second trajectory and the second gyroscopic curve.
  • Part of the parameters of the connection point and the third smooth transition condition are brought into the general equation of the interpolation curve to obtain the equations (7):
  • the curvature of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
  • the tangential angle of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
  • FIG. 6 is a schematic block diagram of a motion track smoothing device according to an embodiment of the present invention.
  • the apparatus for smooth transition of the motion track comprises a processor 61 and a memory 62 connected to the processor 61.
  • the memory 62 is configured to store the first track, the second track, and the preset contour error, and the processor 61 is used by the processor 61.
  • FIG. 7 is a schematic diagram of a storage device according to an embodiment of the present invention.
  • the storage device 70 stores program data, and the program data can be executed to implement the method of smooth transition of the motion trajectory described in any of the above embodiments.
  • the storage device 70 can be a USB flash drive, an optical disk, a hard disk, a mobile hard disk, a server, etc.
  • the storage device can also be the memory 62 in the above embodiment.
  • FIG. 8 is a block diagram of a robot system according to an embodiment of the present invention.
  • the robot system includes a robot 81 and a controller 82 connected to the robot 81.
  • the controller 82 is configured to acquire a first trajectory and a second trajectory to be smoothly transferred and a preset contour error; according to the first trajectory and The second trajectory and the preset contour error determine the position of the feature interpolation point; and the first trajectory, the feature interpolation point, and the second are fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation
  • the interpolation curve of the trajectory is such that the curvature of the first trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
  • the robot 81 can include a tool, and the controller 82 can control the robot and the tool motion to perform processing, transportation, and the like according to the first trajectory, the second trajectory, and the interpolation curve. In another embodiment, the controller 82 can control the movement of the robot 81 based on the first trajectory, the second trajectory, and the interpolation curve.
  • FIG. 9 is a schematic diagram of a module of a numerical control machine tool according to an embodiment of the present invention.
  • the numerical control machine tool includes a machine tool body 91 and a numerical control device 92 connected to the machine tool body 91.
  • the numerical control device 92 is configured to acquire a first track and a second track to be smoothly transferred and a preset contour error;
  • the trajectory and the second trajectory and the preset contour error determine the position of the feature interpolation point; and the first trajectory, the feature interpolation point, and the first trajectory are fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation
  • the interpolation curve of the second trajectory is such that the curvature of the first trajectory and the interpolation curve at the joint point of the two trajectories is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
  • the machine tool body 91 can include a machining tool
  • the numerical control device 92 can control the operation of the machine tool and the machining tool movement according to the first trajectory, the second trajectory, and the interpolation curve.
  • the invention determines the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error by using the contour error as a condition for fitting the interpolation curve, and then according to the first trajectory, the second trajectory, and the feature interpolation point.
  • the interpolation curve general equation fits the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory, on the one hand, the interpolation curve can be accurately fitted, and the interpolation curve fitted on the other hand can be Ensure the contour error of the equipment during processing.

Abstract

Provided are a method and device for smooth transition of motion trajectory and related equipment. The method for smooth transition of the motion trajectory comprises: obtaining a first trajectory (NP) and a second trajectory (PM) to be smoothly transferred and a preset contour error (E) (S11); determining a position of a feature interpolation point (Q) according to the first trajectory (NP), the second trajectory (PM) and the preset contour error (E) (S12); and according to the first trajectory (NP), the second trajectory (PM), the feature interpolation point (Q) and a general equation of interpolation curve, fitting an interpolation curve connecting the first trajectory (NP), the feature interpolation point (Q) and the second trajectory (PM). The method and device for smooth transition of the motion trajectory can accurately fit the interpolation curve, which realizes continuous curvature and speed, and can ensure the contour error of the equipment.

Description

运动轨迹平滑转接的方法和装置及其相关设备Method and device for smoothing of motion track and related equipment 【技术领域】[Technical Field]
本发明涉及运动控制技术领域,特别是涉及一种运动轨迹平滑转接的方法和装置及其相关设备。The present invention relates to the field of motion control technologies, and in particular, to a method and apparatus for smooth transition of motion trajectories and related devices.
【背景技术】【Background technique】
在很多情况下,相邻两段运动轨迹间通常会存在一个夹角,运动到该处时,进给速度的方向发生突变,若保持速度大小不变,则会产生一个较大的加速度,这个加速度可能超出设备的加速能力,导致对应的设备震动。为了让此加速度小于系统最大加速度,需要减小两段运动轨迹连接点处的速度,大量的运动轨迹累积下来,使得运动效率受到严重影响。In many cases, there is usually an angle between the two adjacent motion trajectories. When moving to this point, the direction of the feed speed is abrupt. If the speed is kept constant, a large acceleration will be generated. Acceleration may exceed the acceleration capability of the device, causing the corresponding device to vibrate. In order to make this acceleration less than the maximum acceleration of the system, it is necessary to reduce the speed at the connection point of the two sections of motion trajectory, and a large number of motion trajectories are accumulated, so that the motion efficiency is seriously affected.
为此,有人提出在存在夹角的两段轨迹之间引入一段插补曲线,用“圆角”近似“尖角”,从而避免在尖角处速度需要降低很多的做法。不同的插补曲线都有一个最基本的统一要求,即插补曲线与上述两段轨迹的连接点位置保证C1连续(一阶导数连续),从而速度连续。进一步,我们希望在连接点处的曲率也连续,即C2连续(二阶导数连续),这样可以保证加速度不会出现跳变引起设备震动,在保证加工效率的同时保证了加工的平稳性,可以进一步提升系统性能。For this reason, it has been proposed to introduce an interpolation curve between the two trajectories where the angle exists, and to use the "rounded corners" to approximate the "sharp angle", thereby avoiding the need to reduce the speed at the sharp corners. Different interpolation curves have a basic uniform requirement, that is, the position of the connection point between the interpolation curve and the above two trajectories ensures that C 1 is continuous (the first derivative is continuous), so that the speed is continuous. Further, we hope that the curvature at the joint is also continuous, that is, C 2 is continuous (the second derivative is continuous), which can ensure that the acceleration does not cause jumps to cause equipment vibration, and ensure the smoothness of the processing while ensuring the processing efficiency. Can further improve system performance.
现有的插补曲线通常为近似的圆弧,圆弧计算方式虽然简单但是无法保证在圆弧与两段轨迹的连接点处的C2连续,只能保证C1连续。The existing interpolation curve is usually an approximate arc. Although the arc calculation method is simple, it cannot guarantee that C 2 is continuous at the connection point between the arc and the two segments, and only C 1 is continuous.
在利用其它曲线对上述两段轨迹进行插补时,由于计算的条件不充分,无法准确的确定曲线的方程,充其量也是只能近似的算出插补曲线。When the above two trajectories are interpolated by using other curves, since the calculation conditions are insufficient, the equation of the curve cannot be accurately determined, and at most, the interpolation curve can be approximated.
另外,设备通常会设定一个轮廓误差,目前在计算插补曲线时通常无法保证轮廓误差,导致实际按照计算得到的插补曲线加工时,仍然会由于不平滑出现运动不平稳运动效率低的问题。In addition, the equipment usually sets a contour error. At present, the contour error is usually not guaranteed when calculating the interpolation curve, which leads to the problem that the motion of the motion curve is not smooth due to the smoothness of the motion curve. .
因此,需要提供运动轨迹平滑转接的方法和装置及其相关设备,以解决上述技术问题。Therefore, there is a need to provide a method and apparatus for smooth transition of motion trajectories and related equipment to solve the above technical problems.
【发明内容】[Summary of the Invention]
本发明主要解决的技术问题是提供一种运动轨迹平滑转接的方法和装置及其相关设备,能够准确的拟合出实现曲率和速度均连续的插补曲线且能够保证设备的轮廓误差。The technical problem to be solved by the present invention is to provide a method and device for smooth transition of motion trajectory and related equipment, which can accurately fit an interpolation curve that achieves continuous curvature and speed and can ensure contour error of the device.
为解决上述技术问题,本发明采用的一个技术方案是:提供一种运动轨迹平滑转接的方法,该方法包括:获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等;利用插补曲线平滑转接第一轨迹和第二轨迹。In order to solve the above technical problem, a technical solution adopted by the present invention is to provide a method for smoothly switching a motion trajectory, the method comprising: acquiring a first trajectory and a second trajectory to be smoothly transferred and a preset contour error; The first trajectory and the second trajectory and the preset contour error determine the position of the feature interpolation point; the first trajectory and the feature interpolation are fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The interpolation curve of the point and the second trajectory, so that the curvature and tangential angle of the first trajectory and the interpolation curve at the joint point of the two trajectories are equal, and the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point of the two points Equal; the first and second tracks are smoothly transferred using the interpolation curve.
为解决上述技术问题,本发明采用的一个技术方案是:一种运动轨迹平滑转接的装置,装置包括处理器和与处理器连接的存储器,存储器用于存储第一轨迹、第二轨迹、预设轮廓误差,处理器用于从存储器获取第一轨迹、第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟 合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等。In order to solve the above technical problem, a technical solution adopted by the present invention is: a device for smoothly switching a motion trajectory, the device comprising a processor and a memory connected to the processor, the memory for storing the first track, the second track, and the pre- Setting a contour error, the processor is configured to acquire a first trajectory, a second trajectory, and a preset contour error from the memory; determine a position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; according to the first trajectory, Two trajectories, feature interpolation points, and general equations for interpolation curves And inserting an interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory, so that the curvature of the first trajectory and the interpolation curve at the connection point of the two is equal to the tangential angle, and the second trajectory and the interpolation curve are The curvature of the joint points is equal to the tangential angle.
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种存储装置,该存储装置存储有程序数据,程序数据能够被执行以实现上述的方法。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a storage device that stores program data that can be executed to implement the above method.
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种机器人系统,该机器人系统包括机器人以及与机器人连接的控制器,控制器用于获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等;以及根据第一轨迹、第二轨迹以及插补曲线控制机器人或者机器人的部件的运动。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a robot system including a robot and a controller connected to the robot, and the controller is configured to acquire a first track and a second to be smoothly transferred. a trajectory and a preset contour error; determining a position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; and fitting according to the first trajectory, the second trajectory, the feature interpolation point, and the general equation of the interpolation curve Interpolating the interpolation curve of the first trajectory, the feature interpolation point and the second trajectory such that the curvature of the first trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle, and the second trajectory and the interpolation curve are in both The curvature of the connection point is equal to the tangential angle; and the motion of the robot or the components of the robot is controlled according to the first trajectory, the second trajectory, and the interpolation curve.
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种数控机床,该数控机床包括机床本体和数控设备,数控设备用于获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等;根据第一轨迹、第二轨迹以及插补曲线控制机床本体或者机床本体的部件的运动。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a numerical control machine tool including a machine tool body and a numerical control device, and the numerical control device is configured to acquire a first track and a second track to be smoothly transferred and Presetting the contour error; determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; fitting the connection according to the first trajectory, the second trajectory, the feature interpolation point, and the general equation of the interpolation curve Interpolation curve of a trajectory, a feature interpolation point and a second trajectory, so that the curvature and tangential angle of the first trajectory and the interpolation curve at the connection point of the two are equal, and the second trajectory and the interpolation curve are at the connection point of the two The curvature is equal to the tangential angle; the motion of the machine body or the components of the machine body is controlled according to the first trajectory, the second trajectory, and the interpolation curve.
本发明的有益效果是:区别于现有技术的情况,本发明通过将轮廓误差作为拟合插补曲线的条件,根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置,再根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,一方面可以准确的拟合出插补曲线,另一方面拟合出的插补曲线可以保证设备运动时的轮廓误差。The beneficial effects of the present invention are: different from the prior art, the present invention determines the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error by using the contour error as a condition for fitting the interpolation curve. Then, according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation, the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory is fitted, and on the one hand, the accurate fitting can be accurately performed. The interpolation curve, on the other hand, the fitted interpolation curve ensures the contour error of the device during motion.
【附图说明】[Description of the Drawings]
图1是本发明第一实施例运动轨迹平滑转接的方法流程图;1 is a flow chart of a method for smoothing a motion track according to a first embodiment of the present invention;
图2是本发明第二实施例运动轨迹平滑转接的方法流程图;2 is a flow chart of a method for smoothing a motion track according to a second embodiment of the present invention;
图3是线段、圆弧以及插补曲线的几何示意图;Figure 3 is a geometrical diagram of line segments, arcs, and interpolation curves;
图4是本发明第三实施例运动轨迹平滑转接的方法流程图;4 is a flow chart of a method for smoothing a motion track according to a third embodiment of the present invention;
图5是第一圆弧、第二圆弧以及插补曲线的几何示意图;Figure 5 is a geometrical diagram of the first arc, the second arc, and the interpolation curve;
图6是本发明实施例的运动轨迹平滑转接装置的模块示意图;6 is a schematic block diagram of a motion trajectory smoothing switching device according to an embodiment of the present invention;
图7是本发明实施例的存储装置的示意图;7 is a schematic diagram of a storage device according to an embodiment of the present invention;
图8是本发明实施例的机器人系统的模块示意图;8 is a block diagram of a robot system according to an embodiment of the present invention;
图9是本发明实施例的数控机床的模块示意图。Figure 9 is a block diagram of a numerically controlled machine tool according to an embodiment of the present invention.
【具体实施方式】【detailed description】
下面结合附图和实施例对本发明进行详细的说明。The invention will now be described in detail in conjunction with the drawings and embodiments.
请参阅图1,图1是本发明第一实施例运动轨迹平滑转接的方法流程图。在本实施例中,运动轨迹平滑转接的方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flow chart of a method for smoothing a motion track according to a first embodiment of the present invention. In this embodiment, the method for smoothing the motion track includes the following steps:
步骤S11:获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差。Step S11: Acquire a first track and a second track to be smoothly transferred and a preset contour error.
在本实施例中,所述第一轨迹为圆弧或线段,第二轨迹为圆弧,具体请参见下文的描述。 In this embodiment, the first track is an arc or a line segment, and the second track is an arc. For details, refer to the description below.
步骤S12:根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置。Step S12: determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error.
在本实施例中,所述根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置可以为:在第一轨迹和第二轨迹二者的连接点处的切线夹角的角平分线上选择距离第一轨迹和第二轨迹的连接点为预设轮廓误差的点作为特征插补点,具体请参见下文的描述。In this embodiment, the determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error may be: a tangential angle at a connection point of the first trajectory and the second trajectory On the angle bisector, the point at which the connection point between the first trajectory and the second trajectory is the preset contour error is selected as the feature interpolation point. For details, refer to the description below.
步骤S13:根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等,具体请参见下文的描述。Step S13: fitting an interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation, so that the first trajectory and the insertion The curvature of the complementary curve is equal to the tangential angle at the joint point of the two, and the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point of the two are equal. For details, please refer to the description below.
在本实施例中,所述根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线的步骤包括:拟合出连接第一轨迹和特征插补点的第一子曲线以及连接特征插补点和第二轨迹之间的第二子曲线,第一子曲线和第二子曲线分别满足插补曲线通用方程且具有不同的曲线参数,第一子曲线和第二子曲线在特征插补点处的曲率与切向角均相等,具体请参见下文的描述。In this embodiment, the step of fitting the interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation includes: : fitting a first sub-curve connecting the first trajectory and the feature interpolation point and a second sub-curve connecting the feature interpolation point and the second trajectory, wherein the first sub-curve and the second sub-curve respectively satisfy the interpolation curve The general equations have different curve parameters. The first sub-curve and the second sub-curve have the same curvature and tangential angle at the feature interpolation point. For details, please refer to the description below.
在本实施例中,采用分为两段子曲线的方式进行拟合。在其他实施例中,也可以采用分为三段或三段以上子曲线的方式进行拟合,也可以采用一段曲线的方式进行拟合。In the present embodiment, the fitting is performed in a manner of dividing into two sub-curves. In other embodiments, the method may be performed by dividing into three or more sub-curves, or by using a curve.
在本实施例中,所述第一子曲线为第一回旋(clothoid)曲线,所述第二子曲线为第二回旋曲线。在其他实施例中,所述第一子曲线和第二子曲线还可以采用其他的特性曲线。In this embodiment, the first sub-curve is a first clothoid curve, and the second sub-curve is a second convoluted curve. In other embodiments, the first sub-curve and the second sub-curve may also adopt other characteristic curves.
请参阅图2,图2是本发明第二实施例运动轨迹平滑转接的方法流程图。Referring to FIG. 2, FIG. 2 is a flowchart of a method for smoothing a motion track according to a second embodiment of the present invention.
在本实施例中,优选地,根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线的步骤包括:拟合出连接第一轨迹和特征插补点的第一子曲线以及连接特征插补点和第二轨迹之间的第二子曲线,第一子曲线和第二子曲线分别满足插补曲线通用方程且具有不同的曲线参数,第一子曲线和第二子曲线在特征插补点处的曲率与切向角均相等。第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等。第一轨迹为线段,第二轨迹为圆弧。第一子曲线为第一回旋(clothoid)曲线,第二子曲线为第二回旋曲线。In this embodiment, preferably, the step of connecting the interpolation curves connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The method includes: fitting a first sub-curve connecting the first trajectory and the feature interpolation point, and a second sub-curve connecting the feature interpolation point and the second trajectory, wherein the first sub-curve and the second sub-curve respectively satisfy the interpolation The general equation of the curve has different curve parameters, and the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal. The curvature of the first trajectory and the interpolation curve at the joint point of the two trajectories is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle. The first track is a line segment and the second track is an arc. The first sub-curve is a first clothoid curve and the second sub-curve is a second convoluted curve.
在本实施例中,运动轨迹平滑转接的方法包括以下步骤:In this embodiment, the method for smoothing the motion track includes the following steps:
步骤S21:获取待平滑转接的线段和圆弧以及预设轮廓误差。Step S21: Obtain a line segment and an arc to be smoothly transferred and a preset contour error.
在本实施例中,所述获取待平滑转接的线段和圆弧包括:获取线段的位置和圆弧的位置以及二者之间的位置关系。In this embodiment, the acquiring the line segment and the arc to be smoothly transferred includes: acquiring the position of the line segment and the position of the arc and the positional relationship between the two.
步骤S22:根据线段和圆弧以及预设轮廓误差确定特征插补点的位置。Step S22: determining the position of the feature interpolation point according to the line segment and the arc and the preset contour error.
在本实施例中,所述特征插补点的确定条件为:圆弧和线段连接点处的切线与线段的夹角的角平分线上选择距离线段和圆弧的连接点为预设轮廓误差的点作为特征插补点。也即图3或者图4中的Q点,具体参见下文的描述。In this embodiment, the determining condition of the feature interpolation point is: selecting a distance line segment and an arc connecting point of the angle between the intersection line of the arc and the line segment and the angle of the line segment as the preset contour error. The point is used as a feature interpolation point. That is, the Q point in FIG. 3 or FIG. 4, see the description below.
步骤S23:将线段设置在直角坐标系的一坐标轴上,且线段的未与圆弧连接的一端设置成与直角坐标系的原点重合;Step S23: setting the line segment on a coordinate axis of the Cartesian coordinate system, and the end of the line segment not connected to the arc is set to coincide with the origin of the Cartesian coordinate system;
也即,以线段的未与圆弧连接的一端为原点,以线段为一个坐标轴建立一个坐标系,具体参见下文的描述。That is, one end of the line segment that is not connected to the arc is taken as the origin, and a coordinate system is established with the line segment as one coordinate axis, as described in detail below.
步骤S24:通过联立以下两组方程求解出第一回旋曲线和第二回旋曲线的曲线参数: Step S24: Solving the curve parameters of the first convoluted curve and the second convoluted curve by combining the following two sets of equations:
Figure PCTCN2017084199-appb-000001
Figure PCTCN2017084199-appb-000001
Figure PCTCN2017084199-appb-000002
Figure PCTCN2017084199-appb-000002
其中,x0为第一回旋曲线与线段的连接点在坐标轴上的坐标,c0为第一回旋曲线的曲率变化率,s0为第一回旋曲线从其与线段的连接点到特征插补点之间的弧长,c1为第二回旋曲线的曲率变化率,s1为第二回旋曲线从特征插补点到其与圆弧的连接点之间的弧长,α为圆弧从第二回旋曲线与圆弧的连接点到圆弧与线段的连接点之间的圆弧片段的圆心角,Tccw为旋转矩阵,Tccw、x0、c0、s0、c1、s1以及α为需要通过两组方程进行求解的未知量;Where x 0 is the coordinate of the connection point of the first convoluted curve and the line segment on the coordinate axis, c 0 is the curvature change rate of the first convoluted curve, and s 0 is the connection point of the first convoluted curve from the line segment to the feature insertion The arc length between the complement points, c 1 is the curvature change rate of the second convolution curve, and s 1 is the arc length of the second convolution curve from the feature interpolation point to the connection point with the arc, and α is an arc from the connection point with the second clothoid arc to the central angle of the arc segment and the connection point between the arc segment, T ccw rotation matrix, T ccw, x 0, c 0, s 0, c 1, s 1 and α are unknown quantities that need to be solved by two sets of equations;
其中,L为线段的长度,E为预设轮廓误差,β为线段与圆弧的夹角,R为圆弧的半径,xc为圆弧的圆心在坐标轴上的坐标,yc为圆弧的圆心在直角坐标系另一坐标轴上的坐标,
Figure PCTCN2017084199-appb-000003
为圆弧的圆心到圆弧与线段的连接点的方向向量,xc、yc
Figure PCTCN2017084199-appb-000004
L、β和R为能够通过线段和圆弧及二者的相对位置关系获得的已知量。
Where L is the length of the line segment, E is the preset contour error, β is the angle between the line segment and the arc, R is the radius of the arc, x c is the coordinate of the center of the arc on the coordinate axis, and y c is the circle The coordinates of the center of the arc on another coordinate axis of the Cartesian coordinate system,
Figure PCTCN2017084199-appb-000003
The direction vector of the point from the center of the arc to the arc and the line segment, x c , y c ,
Figure PCTCN2017084199-appb-000004
L, β, and R are known quantities that can be obtained by the relative positional relationship between the line segment and the arc and both.
下面说明推导过程。The derivation process is explained below.
首先介绍插补曲线的通用方程,插补曲线为回旋(clothoid)曲线,其具有曲率随路径弧长线性变化的特点。Firstly, the general equation of the interpolation curve is introduced. The interpolation curve is a clothoid curve, which has the characteristics that the curvature varies linearly with the arc length of the path.
插补曲线的通用方程表达形式有三种:There are three general expressions for the interpolation curve:
k(s)=k0+cs   (3)k(s)=k 0 +cs (3)
Figure PCTCN2017084199-appb-000005
Figure PCTCN2017084199-appb-000005
Figure PCTCN2017084199-appb-000006
Figure PCTCN2017084199-appb-000006
其中,s为曲线路径弧长,x(s)为曲线路径弧长为s处对应的横坐标,x0为曲线起点处的横坐标,y0为曲线起点处的横坐标,y(s)为曲线路径弧长为s处对应的纵坐标,θ(s)为曲线路径弧长为s处对应的切向角,θ0为曲线起点的切向角,k0为曲线起点的曲率,c为曲线的曲率变化率,k(s)为曲线路径弧长为s处对应的曲率。 Where s is the curve path arc length, x(s) is the curve path arc length corresponding to the abscissa, x 0 is the abscissa at the beginning of the curve, y 0 is the abscissa at the beginning of the curve, y(s) The arc length of the curve path is the ordinate corresponding to s, θ(s) is the tangential angle corresponding to the arc length of the curve path, θ 0 is the tangential angle of the starting point of the curve, and k 0 is the curvature of the starting point of the curve, c For the rate of curvature change of the curve, k(s) is the curvature of the curved path with the arc length being s.
其次,进一步说明特征插补点的位置的确定以及方程组(1)和方程组(2)的推导。记第一轨迹与插补曲线在二者连接点的曲率与切向角相等为第一平滑转接条件,第二轨迹与插补曲线在二者连接点的曲率与切向角相等为第二平滑转接条件,第一子曲线和第二子曲线在特征插补点处的曲率与切向角均相等为第三平滑转接条件。Next, the determination of the position of the feature interpolation point and the derivation of the equations (1) and equations (2) are further explained. It is noted that the curvature and the tangential angle of the first trajectory and the interpolation curve are equal to the first smooth transition condition, and the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point are equal to the second Smoothing the transition condition, the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal to a third smooth transition condition.
请参阅图3,图3是线段、圆弧以及插补曲线的几何示意图。Please refer to FIG. 3. FIG. 3 is a geometric diagram of line segments, arcs, and interpolation curves.
下面以线段NP和圆弧PM的平滑转接为例进行说明。I点为线段NP与第一回旋曲线IQ的连接点,O点为圆弧PM与第二回旋曲线QO的连接点,P点为线段NP与圆弧PM的连接点,C为圆弧PM的圆心。关于运动方向,以N点→I点→Q点→O点→M点为例。The smooth transition of the line segment NP and the arc PM will be described below as an example. The I point is the connection point between the line segment NP and the first convolution curve IQ, the O point is the connection point of the arc PM and the second convolution curve QO, the P point is the connection point of the line segment NP and the arc PM, and C is the arc PM. Center of the circle. For the direction of motion, take N point → I point → Q point → O point → M point as an example.
设P点和O点之间的圆弧片段OP对应的圆心角为α。Let the central angle corresponding to the arc segment OP between the P point and the O point be α.
在步骤S21中,获取待平滑转接的线段和圆弧以及预设轮廓误差包括:In step S21, acquiring line segments and arcs to be smoothly transferred and preset contour errors include:
获取预设轮廓误差E、线段NP的长度L、线段NP与圆弧PM的连接点P、线段NP与圆弧PM的夹角β、圆心C的位置以及圆弧的圆心到圆弧与线段的连接点的方向向量。Obtain the preset contour error E, the length L of the line segment NP, the connection point P of the line segment NP and the arc PM, the angle β between the line segment NP and the arc PM, the position of the center C, and the center of the arc to the arc and the line segment. The direction vector of the connection point.
在步骤S22中,根据前文描述的特征插补点的确定条件为特征插补点Q在线段NP与圆弧PM的切线的夹角的角平分线上且离P点距离QP为E以及根据预设轮廓误差E、夹角β、线段NP的长度L确定特征插补点Q的位置。In step S22, the determination condition of the feature interpolation point according to the foregoing is the angle bisector of the angle between the line segment NP and the tangent of the arc PM of the feature interpolation point Q and the distance QP from the point P is E and according to the pre- The contour error E, the angle β, and the length L of the line segment NP are set to determine the position of the feature interpolation point Q.
在步骤S23和步骤S24中:In step S23 and step S24:
1、先建立直角坐标系,优选地,将线段NP设置在x轴上,将N点设置为与坐标原点重合,结合步骤S22可以得出特征插补点Q在建立的坐标系中的坐标为:1. First establish a Cartesian coordinate system. Preferably, the line segment NP is set on the x-axis, and the N point is set to coincide with the coordinate origin. In combination with step S22, the coordinates of the feature interpolation point Q in the established coordinate system are obtained. :
Figure PCTCN2017084199-appb-000007
Figure PCTCN2017084199-appb-000007
在其他实施例中,x轴与y轴的位置可以调换,例如将线段NP设置在y轴上,将N点设置为与坐标原点重合。In other embodiments, the positions of the x-axis and the y-axis may be reversed, such as setting the line segment NP on the y-axis and setting the N point to coincide with the coordinate origin.
2、然后根据第一平滑转接条件和第一轨迹确定第一轨迹与第一回旋曲线的连接点的部分参数和第一回旋曲线在第一轨迹与第一回旋曲线的连接点的部分参数:And then determining, according to the first smooth transition condition and the first trajectory, a partial parameter of a connection point of the first trajectory and the first gyro curve and a partial parameter of a connection point of the first gyro curve at the first trajectory and the first gyro curve:
由线段NP在x轴上,可以确定I点的纵坐标为0;From the line segment NP on the x-axis, it can be determined that the ordinate of the I point is 0;
由线段NP的曲率和切向角处处为0,且由第一平滑转接条件可得第一回旋曲线在点I处曲率为和切向角均为0。The curvature and the tangential angle of the line segment NP are 0, and the curvature of the first convolution curve at the point I and the tangential angle are both 0 by the first smooth transition condition.
3、根据第一回旋曲线满足插补曲线通用方程将第一轨迹与第一回旋曲线连接点的部分参数、第一回旋曲线在第一轨迹与第一回旋曲线连接点的部分参数以及特征插补点的位置带入插补曲线通用方程得到方程组(1):3. According to the first convolution curve, the partial parameters of the connection point of the first trajectory and the first gyro curve, the partial parameters of the first gyroscopic curve at the connection point of the first trajectory and the first gyro curve, and the feature interpolation are satisfied according to the general curve of the interpolation curve. The position of the point is taken into the general equation of the interpolation curve to obtain the equation (1):
将I点纵坐标为0,第一回旋曲线在I点处曲率为和切向角均为0以及插补特征点的坐标带入插补曲线通用方程得到方程组(1)The ordinate of the I point is 0, the curvature of the first convolution curve at the I point is 0 and the tangential angle are 0, and the coordinates of the interpolation feature point are taken into the general equation of the interpolation curve to obtain the equations (1)
Figure PCTCN2017084199-appb-000008
Figure PCTCN2017084199-appb-000008
4、根据第二平滑转接条件和第二轨迹确定第二轨迹与第二回旋曲线的连接点的部分参数和第二回旋曲线在第二轨迹与第二回旋曲线的连接点的部分参数:4. determining, according to the second smooth transition condition and the second trajectory, a partial parameter of a connection point of the second trajectory and the second gyro curve and a partial parameter of a connection point of the second gyro curve at the second trajectory and the second gyro curve:
根据建立的直角坐标系和获取的圆心的位置、圆弧的圆心到圆弧与线段的连接点的方向 向量得到圆心C在该直角坐标系的坐标为(xc,yc),C点到P点的方向向量
Figure PCTCN2017084199-appb-000009
According to the established Cartesian coordinate system and the position of the obtained center of the circle, the center of the arc to the direction of the connection point of the arc and the line segment, the coordinates of the center C in the Cartesian coordinate system are (x c , y c ), C point to Direction vector of point P
Figure PCTCN2017084199-appb-000009
将点O的坐标表示为Express the coordinates of point O as
Figure PCTCN2017084199-appb-000010
Figure PCTCN2017084199-appb-000010
5、根据第二回旋曲线满足插补曲线通用方程将特征插补点的位置、第二轨迹与第二回旋曲线的连接点的部分参数和第二回旋曲线在第二轨迹与第二回旋曲线的连接点的部分参数以及第三平滑转接条件带入插补曲线通用方程得到方程组(2):5. According to the second convolution curve, the general equation of the interpolation curve satisfies the position of the feature interpolation point, the partial parameter of the connection point of the second trajectory and the second gyro curve, and the second gyro curve in the second trajectory and the second gyroscopic curve. Part of the parameters of the connection point and the third smooth transition condition are brought into the general equation of the interpolation curve to obtain the equations (2):
根据第三平滑转接条件将第二回旋曲线在特征插补点Q的曲率表示为The curvature of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
k1=c0·s0 k 1 =c 0 ·s 0
根据第三平滑转接条件将第二回旋曲线在特征插补点Q的切向角表示为The tangential angle of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
Figure PCTCN2017084199-appb-000011
Figure PCTCN2017084199-appb-000011
将O点的坐标、特征插补点Q的坐标、第二回旋曲线在特征插补点Q的曲率和切向角带入插补曲线通用方程得到方程组(2)The coordinates of the O point, the coordinates of the feature interpolation point Q, and the curvature and tangential angle of the second rotation curve at the feature interpolation point Q are brought into the general equation of the interpolation curve to obtain the equations (2)
Figure PCTCN2017084199-appb-000012
Figure PCTCN2017084199-appb-000012
根据方程组(1)和(2)求解Tccw、x0、c0、s0、c1、s1以及α;然后将Tccw、x0、c0、s0、c1、s1以及α带回到插补曲线通用方程得到第一回旋曲线和第二回旋曲线的方程。Solving T ccw , x 0 , c 0 , s 0 , c 1 , s 1 and α according to equations (1) and (2); then T ccw , x 0 , c 0 , s 0 , c 1 , s 1 And α is brought back to the general equation of the interpolation curve to obtain the equations of the first convoluted curve and the second convoluted curve.
请参阅图4,图4是本发明第三实施例运动轨迹平滑转接的方法流程图。在本实施例中,优选地,根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线的步骤包括:拟合出连接第一轨迹和特征插补点的第一子曲线以及连接特征插补点和第二轨迹之间的第二子曲线,第一子曲线和第二子曲线分别满足插补曲线通用方程且具有不同的曲线参数,第一子曲线和第二子曲线在特征插补点处的曲率与切向角均相等。第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等。第一子曲线为第一回旋(clothoid)曲线,第二子曲线为第二回旋曲线。第一轨迹为第一圆弧,第二轨迹为第二圆弧。Referring to FIG. 4, FIG. 4 is a flowchart of a method for smoothing a motion track according to a third embodiment of the present invention. In this embodiment, preferably, the step of connecting the interpolation curves connecting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The method includes: fitting a first sub-curve connecting the first trajectory and the feature interpolation point, and a second sub-curve connecting the feature interpolation point and the second trajectory, wherein the first sub-curve and the second sub-curve respectively satisfy the interpolation The general equation of the curve has different curve parameters, and the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal. The curvature of the first trajectory and the interpolation curve at the joint point of the two trajectories is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle. The first sub-curve is a first clothoid curve and the second sub-curve is a second convoluted curve. The first track is a first arc and the second track is a second arc.
在本实施例中,运动轨迹平滑转接的方法包括以下步骤:In this embodiment, the method for smoothing the motion track includes the following steps:
步骤S31:获取待平滑转接的第一圆弧和第二圆弧以及预设轮廓误差。Step S31: Acquire a first arc and a second arc to be smoothly transferred and a preset contour error.
在步骤S31中,例如获取待平滑转接的第一圆弧和第二圆弧包括:获取第一圆弧和第二圆弧 以及二者的位置关系。In step S31, for example, acquiring the first arc and the second arc to be smoothly transferred includes: acquiring the first arc and the second arc And the positional relationship between the two.
步骤S32:根据第一圆弧和第二圆弧以及预设轮廓误差确定特征插补点的位置。Step S32: determining the position of the feature interpolation point according to the first arc and the second arc and the preset contour error.
在步骤S32中,例如,特征插补点的确定条件为:第一圆弧与第二圆弧在二者连接点处的切线的夹角的角平分线上选择距离第一圆弧和第二圆弧的连接点为预设轮廓误差的点作为特征插补点。In step S32, for example, the determination condition of the feature interpolation point is that the first arc and the second arc are selected from the first arc and the second on the angle bisector of the angle of the tangent at the joint point of the two arcs. The point where the arc's connection point is the preset contour error is used as the feature interpolation point.
步骤S33:将第一圆弧在未与第二圆弧连接的一端处的切线设置在直角坐标系的一坐标轴上,将第一圆弧未与第二圆弧连接的一端设为与直角坐标系的原点重合。Step S33: setting a tangent line of the first arc at one end not connected to the second arc on a coordinate axis of the Cartesian coordinate system, and setting one end of the first arc not connected to the second arc to a right angle The origin of the coordinate system coincides.
步骤S34:通过联立以下两组方程求解出第一回旋曲线和第二回旋曲线的曲线参数:Step S34: Solving the curve parameters of the first convoluted curve and the second convoluted curve by combining the following two sets of equations:
Figure PCTCN2017084199-appb-000013
Figure PCTCN2017084199-appb-000013
Figure PCTCN2017084199-appb-000014
Figure PCTCN2017084199-appb-000014
其中,c0为第一回旋曲线的曲率变化率,s0为第一回旋曲线从其与第一圆弧的连接点到特征插补点之间的弧长,c1为第二回旋曲线的曲率变化率,s1为第二回旋曲线从特征插补点到其与第二圆弧的连接点之间的弧长,α1为第一圆弧从第一圆弧未与第二圆弧连接的一端到第一圆弧与第一回旋曲线的连接点之间的圆弧片段的圆心角,α2为第二圆弧从第二回旋曲线与第二圆弧的连接点到第二圆弧与第一圆弧的连接点之间的圆弧片段的圆心角,Tcw为旋转矩阵;c0、s0、c1、s1、α1、α2、Tcw为需要通过两组方程进行求解的未知量;Where c 0 is the curvature change rate of the first convoluted curve, and s 0 is the arc length between the connection point of the first convoluted curve from the first arc to the feature interpolation point, and c 1 is the second convoluted curve Curvature change rate, s 1 is the arc length of the second convolution curve from the feature interpolation point to the connection point with the second arc, and α 1 is the first arc from the first arc and the second arc The central angle of the arc segment between one end of the connection to the junction point of the first arc and the first convoluted curve, and α 2 is the second arc from the connection point of the second convoluted curve to the second arc to the second circle The central angle of the arc segment between the arc and the connection point of the first arc, T cw is the rotation matrix; c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw are required to pass through two groups The unknown amount that the equation solves;
其中,R1为第一圆弧的半径,R2为第二圆弧的半径,E为预设轮廓误差,x1为第一圆弧与第二圆弧的连接点在坐标轴上的坐标,y1为第一圆弧与第二圆弧的连接点在直角坐标系另一坐标轴上的坐标,x2为第二圆弧的圆心在坐标轴上的坐标,y2为第二圆弧的圆心在直角坐标系另一坐标轴上的坐标,
Figure PCTCN2017084199-appb-000015
为第一圆弧在第一圆弧与第二圆弧的连接点的切向量,
Figure PCTCN2017084199-appb-000016
为第二圆弧在第一圆弧与第二圆弧的连接点的切向量,
Figure PCTCN2017084199-appb-000017
为第二圆弧的圆心到第一圆弧与第二圆弧的连接点的方向向量,R1、R2、x1、y1、x2、y2
Figure PCTCN2017084199-appb-000018
为能够通过第一圆弧和第二圆弧及二者的相对位置关系获得的已知量。
Where R 1 is the radius of the first arc, R 2 is the radius of the second arc, E is the preset contour error, and x 1 is the coordinate of the connection point of the first arc and the second arc on the coordinate axis. , y 1 is the coordinate of the connection point of the first arc and the second arc on another coordinate axis of the Cartesian coordinate system, x 2 is the coordinate of the center of the second arc on the coordinate axis, and y 2 is the second circle The coordinates of the center of the arc on another coordinate axis of the Cartesian coordinate system,
Figure PCTCN2017084199-appb-000015
a tangent vector of the first arc at the junction of the first arc and the second arc,
Figure PCTCN2017084199-appb-000016
a tangent vector of the second arc at the junction of the first arc and the second arc,
Figure PCTCN2017084199-appb-000017
a direction vector of a point connecting the center of the second arc to the first arc and the second arc, R 1 , R 2 , x 1 , y 1 , x 2 , y 2 ,
Figure PCTCN2017084199-appb-000018
A known amount that can be obtained by the relative positional relationship of the first arc and the second arc and the two.
下面说明推导过程。The derivation process is explained below.
首先,插补曲线的通用方程与第二实施例相同,三种表达方式分别为方程(3)、(4)、(5),此处不再赘述。 First, the general equation of the interpolation curve is the same as that of the second embodiment, and the three expressions are respectively equations (3), (4), and (5), and are not described herein again.
其次,进一步说明特征插补点的位置的确定以及方程组(6)和方程组(7)的推导。Next, the determination of the position of the feature interpolation point and the derivation of the equations (6) and equations (7) are further explained.
记第一轨迹与插补曲线在二者连接点的曲率与切向角相等为第一平滑转接条件,第二轨迹与插补曲线在二者连接点的曲率与切向角相等为第二平滑转接条件,第一子曲线和第二子曲线在特征插补点处的曲率与切向角均相等为第三平滑转接条件。It is noted that the curvature and the tangential angle of the first trajectory and the interpolation curve are equal to the first smooth transition condition, and the curvature and tangential angle of the second trajectory and the interpolation curve at the joint point are equal to the second Smoothing the transition condition, the curvatures and tangential angles of the first sub-curve and the second sub-curve at the feature interpolation point are equal to a third smooth transition condition.
请参阅图5,图5是第一圆弧、第二圆弧以及插补曲线的几何示意图。Please refer to FIG. 5. FIG. 5 is a geometrical diagram of the first arc, the second arc, and the interpolation curve.
下面以第一圆弧NP和第二圆弧PM的平滑转接为例进行说明。I点为第一圆弧NP与第一回旋曲线IQ的连接点,O点为第二圆弧PM与第二回旋曲线QO的连接点,P点为第一圆弧NP与第二圆弧PM的连接点。关于运动方向,以N点→I点→Q点→O点→M点为例。The smooth transition of the first circular arc NP and the second circular arc PM will be described below as an example. The I point is the connection point of the first arc NP and the first convolution curve IQ, the O point is the connection point of the second arc PM and the second convolution curve QO, and the P point is the first arc NP and the second arc PM Connection point. For the direction of motion, take N point → I point → Q point → O point → M point as an example.
设第一圆弧NP上的圆弧片段NI对应的圆心角为α1,设第二圆弧PM上的圆弧片段PO对应的圆心角为α2It is assumed that the central angle corresponding to the arc segment NI on the first circular arc NP is α 1 , and the central angle corresponding to the circular arc segment PO on the second circular arc PM is α 2 .
在步骤S31中,获取待平滑转接的第一圆弧和第二圆弧以及预设轮廓误差包括:In step S31, acquiring the first arc and the second arc to be smoothly transferred and the preset contour error include:
获取预设轮廓误差E、第一圆弧NP与第二圆弧PM的连接点P、第一圆弧NP在连接点P的切向量
Figure PCTCN2017084199-appb-000019
第二圆弧PM在连接点P的切向量
Figure PCTCN2017084199-appb-000020
第一圆弧NP与第二圆弧PM的夹角β、第二圆弧PM的圆心O2、圆心O2到连接点P的方向向量
Figure PCTCN2017084199-appb-000021
第一圆弧NP的半径R1,第二圆弧PM的半径R2
Obtaining the preset contour error E, the connection point P of the first arc NP and the second arc PM, and the tangent vector of the first arc NP at the connection point P
Figure PCTCN2017084199-appb-000019
Tangent vector of the second arc PM at the joint point P
Figure PCTCN2017084199-appb-000020
The angle β between the first circular arc NP and the second circular arc PM, the center O 2 of the second circular arc PM, and the direction vector of the center O 2 to the connection point P
Figure PCTCN2017084199-appb-000021
NP first arc radius R 1, the radius of the second arc PM R 2.
在步骤S32中,根据前文描述的特征插补点的确定条件为特征插补点Q在第一圆弧NP与第二圆弧PM的切线的夹角的角平分线上且离P点距离QP为E以及根据预设轮廓误差E、夹角β、
Figure PCTCN2017084199-appb-000022
确定特征插补点Q的位置。
In step S32, the determination condition of the feature interpolation point according to the foregoing is the angle bisector of the angle of the feature interpolation point Q between the first arc NP and the tangent of the second arc PM and the distance from the P point QP. E and according to the preset contour error E, the angle β,
Figure PCTCN2017084199-appb-000022
The position of the feature interpolation point Q is determined.
在步骤S33和步骤S34中:In step S33 and step S34:
1、先建立直角坐标系,优选地,将第一圆弧NP的切线设置在x轴上,将N点设置为与坐标原点重合,结合步骤S32可以得出在获取的P点在建立的直角坐标系中坐标为(x1,y1)的情况下,特征插补点Q在建立的坐标系中的坐标为:1. First establish a Cartesian coordinate system. Preferably, the tangent of the first arc NP is set on the x-axis, and the N point is set to coincide with the coordinate origin. In combination with step S32, a right angle is established at the acquired P point. In the case where the coordinates in the coordinate system are (x 1 , y 1 ), the coordinates of the feature interpolation point Q in the established coordinate system are:
Figure PCTCN2017084199-appb-000023
Figure PCTCN2017084199-appb-000023
在其他实施例中,直角坐标系x轴与y轴的设置可以调换,例如,将第一圆弧NP的切线设置在y轴上,将N点设置为与坐标原点重合。In other embodiments, the settings of the x-axis and the y-axis of the Cartesian coordinate system may be reversed, for example, setting a tangent to the first arc NP on the y-axis and setting the N point to coincide with the coordinate origin.
2、然后根据第一平滑转接条件和第一轨迹确定第一轨迹与第一回旋曲线的连接点的部分参数和第一回旋曲线在第一轨迹与第一回旋曲线的连接点的部分参数:And then determining, according to the first smooth transition condition and the first trajectory, a partial parameter of a connection point of the first trajectory and the first gyro curve and a partial parameter of a connection point of the first gyro curve at the first trajectory and the first gyro curve:
由第一圆弧NP的半径R1,可知第一圆弧NP上所有点曲率均为From the radius R 1 of the first arc NP, it can be known that all points on the first arc NP have curvatures
Figure PCTCN2017084199-appb-000024
Figure PCTCN2017084199-appb-000024
由第一平滑转接条件确定第一回旋曲线在点I的曲率等于第一圆弧NP在I点处的曲率Determining, by the first smooth transition condition, that the curvature of the first convoluted curve at point I is equal to the curvature of the first arc NP at point I
Figure PCTCN2017084199-appb-000025
Figure PCTCN2017084199-appb-000025
由第一平滑转接条件确定第一回旋曲线在点I的切向角等于第一圆弧NP在I点处的切向角将第一回旋曲线在I点的切向角表示为Determining, by the first smooth transition condition, that the tangential angle of the first convoluted curve at point I is equal to the tangential angle of the first arc NP at point I. The tangential angle of the first convoluted curve at point I is expressed as
θ0=α1 θ 01
由几何关系将I点的坐标表示为The coordinate of the I point is represented by the geometric relationship as
(R1 sinα1,R1(1-cosα1)) (R 1 sinα 1 , R 1 (1-cosα 1 ))
3、根据第一回旋曲线满足插补曲线通用方程将第一轨迹与第一回旋曲线连接点的部分参数、第一回旋曲线在第一轨迹与第一回旋曲线连接点的部分参数以及特征插补点的位置带入插补曲线通用方程得到方程组(6):3. According to the first convolution curve, the partial parameters of the connection point of the first trajectory and the first gyro curve, the partial parameters of the first gyroscopic curve at the connection point of the first trajectory and the first gyro curve, and the feature interpolation are satisfied according to the general curve of the interpolation curve. The position of the point is taken into the general equation of the interpolation curve to obtain the equations (6):
将第一回旋曲线在点I的曲率和切向角、点I的坐标以及特征插补点的坐标带入插补曲线通用方程得到方程组(6)The curvature and tangential angle of the first convolution curve at point I, the coordinates of point I, and the coordinates of the feature interpolation point are brought into the general equation of the interpolation curve to obtain the equations (6).
Figure PCTCN2017084199-appb-000026
Figure PCTCN2017084199-appb-000026
4、根据第二平滑转接条件和第二轨迹确定第二轨迹与第二回旋曲线的连接点的部分参数和第二回旋曲线在第二轨迹与第二回旋曲线的连接点的部分参数:4. determining, according to the second smooth transition condition and the second trajectory, a partial parameter of a connection point of the second trajectory and the second gyro curve and a partial parameter of a connection point of the second gyro curve at the second trajectory and the second gyro curve:
根据第二平滑转接条件将第二回旋曲线在O点的切向角表示为The tangential angle of the second convolution curve at point O is expressed as a second smooth transition condition as
Figure PCTCN2017084199-appb-000027
Figure PCTCN2017084199-appb-000027
其中,atan2表示求反正切函数,只是将角度限制在[-π,π]区间;Among them, atan2 represents the inverse tangent function, but the angle is limited to the [-π, π] interval;
将第二回旋曲线在O点的曲率表示为Express the curvature of the second convolution curve at point O as
Figure PCTCN2017084199-appb-000028
Figure PCTCN2017084199-appb-000028
结合步骤S32可以得出在获取的圆心O2在建立的直角坐标系中坐标为(x2,y2)的情况下将点O的坐标表示为Referring to step S32, it can be concluded that the coordinates of the point O are expressed as the coordinates of the acquired center O 2 in the established Cartesian coordinate system (x 2 , y 2 ).
Figure PCTCN2017084199-appb-000029
Figure PCTCN2017084199-appb-000029
其中,T为旋转矩阵Where T is the rotation matrix
Figure PCTCN2017084199-appb-000030
Figure PCTCN2017084199-appb-000030
5、根据第二回旋曲线满足插补曲线通用方程将特征插补点的位置、第二轨迹与第二回旋曲线的连接点的部分参数和第二回旋曲线在第二轨迹与第二回旋曲线的连接点的部分参数以及第三平滑转接条件带入插补曲线通用方程得到方程组(7):5. According to the second convolution curve, the general equation of the interpolation curve satisfies the position of the feature interpolation point, the partial parameter of the connection point of the second trajectory and the second gyro curve, and the second gyro curve in the second trajectory and the second gyroscopic curve. Part of the parameters of the connection point and the third smooth transition condition are brought into the general equation of the interpolation curve to obtain the equations (7):
根据第三平滑转接条件将第二回旋曲线在特征插补点Q的曲率表示为The curvature of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
k1=k0+c0·s0 k 1 =k 0 +c 0 ·s 0
which is
Figure PCTCN2017084199-appb-000031
Figure PCTCN2017084199-appb-000031
根据第三平滑转接条件将第二回旋曲线在特征插补点Q的切向角表示为The tangential angle of the second convolution curve at the feature interpolation point Q is expressed as a third smooth transition condition as
Figure PCTCN2017084199-appb-000032
Figure PCTCN2017084199-appb-000032
which is
Figure PCTCN2017084199-appb-000033
Figure PCTCN2017084199-appb-000033
将点O的坐标、特征插补点Q的坐标、第二回旋曲线在特征插补点Q的曲率和切向角带入插补曲线通用方程得到方程组(7)The coordinates of the point O, the coordinates of the feature interpolation point Q, and the curvature and tangential angle of the second rotation curve at the feature interpolation point Q are brought into the general equation of the interpolation curve to obtain the equations (7).
Figure PCTCN2017084199-appb-000034
Figure PCTCN2017084199-appb-000034
根据方程组(6)和(7)求解c0、s0、c1、s1、α1、α2、Tcw,然后将c0、s0、c1、s1、α1、α2、Tcw带回插补曲线通用方程得到第一回旋曲线和第二回旋曲线的方程。Solving c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw according to equations (6) and (7), and then c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw brings back the general equation of the interpolation curve to obtain the equations of the first convoluted curve and the second convoluted curve.
请参阅图6,图6是本发明实施例的运动轨迹平滑转接装置的模块示意图。在本实施例中,运动轨迹平滑转接的装置包括处理器61和与处理器61连接的存储器62,存储器62用于存储第一轨迹、第二轨迹、预设轮廓误差,处理器61用于从存储器获取第一轨迹、第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等。Please refer to FIG. 6. FIG. 6 is a schematic block diagram of a motion track smoothing device according to an embodiment of the present invention. In this embodiment, the apparatus for smooth transition of the motion track comprises a processor 61 and a memory 62 connected to the processor 61. The memory 62 is configured to store the first track, the second track, and the preset contour error, and the processor 61 is used by the processor 61. Acquiring a first trajectory, a second trajectory, and a preset contour error from the memory; determining a position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error; according to the first trajectory, the second trajectory, and the feature interpolation point And the interpolation curve general equation fits the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory, so that the curvature and the tangential angle of the first trajectory and the interpolation curve at the joint point of the two are equal, The curvature of the two trajectories and the interpolation curve are equal to the tangential angle at the joint point of the two.
其中,处理器61执行的上述各个步骤请参见前文任意一个实施例所述的运动轨迹平滑转接的方法中的说明,此处不再赘述。For the foregoing steps of the processor 61, refer to the description in the method for smoothing the motion track according to any of the foregoing embodiments, and details are not described herein again.
请参阅图7,图7是本发明实施例的存储装置的示意图。在本实施例中,存储装置70存储有程序数据,程序数据能够被执行以实现上述任意一个实施例所述的运动轨迹平滑转接的方法。Please refer to FIG. 7. FIG. 7 is a schematic diagram of a storage device according to an embodiment of the present invention. In the present embodiment, the storage device 70 stores program data, and the program data can be executed to implement the method of smooth transition of the motion trajectory described in any of the above embodiments.
该存储装置70可以为U盘、光盘、硬盘、移动硬盘、服务器等,当然,存储装置也可以为上述实施例中的存储器62。The storage device 70 can be a USB flash drive, an optical disk, a hard disk, a mobile hard disk, a server, etc. Of course, the storage device can also be the memory 62 in the above embodiment.
请参阅图8,图8是本发明实施例的机器人系统的模块示意图。在本实施例中,机器人系统包括机器人81以及与机器人81连接的控制器82,控制器82用于获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等。Please refer to FIG. 8. FIG. 8 is a block diagram of a robot system according to an embodiment of the present invention. In this embodiment, the robot system includes a robot 81 and a controller 82 connected to the robot 81. The controller 82 is configured to acquire a first trajectory and a second trajectory to be smoothly transferred and a preset contour error; according to the first trajectory and The second trajectory and the preset contour error determine the position of the feature interpolation point; and the first trajectory, the feature interpolation point, and the second are fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The interpolation curve of the trajectory is such that the curvature of the first trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
在一种实施例中,机器人81可包括工具,控制器82可根据第一轨迹、第二轨迹以及插补曲线控制机器人及该工具运动实现加工、运输等操作。在另一实施例中,控制器82可根据第一轨迹、第二轨迹以及插补曲线控制机器人81运动。 In one embodiment, the robot 81 can include a tool, and the controller 82 can control the robot and the tool motion to perform processing, transportation, and the like according to the first trajectory, the second trajectory, and the interpolation curve. In another embodiment, the controller 82 can control the movement of the robot 81 based on the first trajectory, the second trajectory, and the interpolation curve.
其中,控制器82执行的上述各个步骤请参见前文任意一个实施例所述的运动轨迹平滑转接的方法中的说明,此处不再赘述。For the foregoing steps of the controller 82, refer to the description in the method for smoothing the motion track according to any of the foregoing embodiments, and details are not described herein again.
请参阅图9,图9是本发明实施例的数控机床的模块示意图。在本实施例中,数控机床包括机床本体91以及与机床本体91连接的数控设备92,数控设备92用于获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置;根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,以使得第一轨迹与插补曲线在二者连接点的曲率与切向角相等,第二轨迹与插补曲线在二者连接点的曲率与切向角相等。Please refer to FIG. 9. FIG. 9 is a schematic diagram of a module of a numerical control machine tool according to an embodiment of the present invention. In this embodiment, the numerical control machine tool includes a machine tool body 91 and a numerical control device 92 connected to the machine tool body 91. The numerical control device 92 is configured to acquire a first track and a second track to be smoothly transferred and a preset contour error; The trajectory and the second trajectory and the preset contour error determine the position of the feature interpolation point; and the first trajectory, the feature interpolation point, and the first trajectory are fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The interpolation curve of the second trajectory is such that the curvature of the first trajectory and the interpolation curve at the joint point of the two trajectories is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
在一种实施例中,机床本体91可包括加工工具,数控设备92可根据第一轨迹、第二轨迹以及插补曲线控制机床本土及该加工工具运动实现加工等操作。In one embodiment, the machine tool body 91 can include a machining tool, and the numerical control device 92 can control the operation of the machine tool and the machining tool movement according to the first trajectory, the second trajectory, and the interpolation curve.
其中,数控设备92执行的上述各个步骤请参见前文任意一个实施例所述的运动轨迹平滑转接的方法中的说明,此处不再赘述。For the foregoing steps of the numerical control device 92, refer to the description in the method for smoothing the motion track according to any of the foregoing embodiments, and details are not described herein again.
本发明通过将轮廓误差作为拟合插补曲线的条件,根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置,再根据第一轨迹、第二轨迹、特征插补点以及插补曲线通用方程拟合出连接第一轨迹、特征插补点和第二轨迹的插补曲线,一方面可以准确的拟合出插补曲线,另一方面拟合出的插补曲线可以保证设备加工时的轮廓误差。The invention determines the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error by using the contour error as a condition for fitting the interpolation curve, and then according to the first trajectory, the second trajectory, and the feature interpolation point. And the interpolation curve general equation fits the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory, on the one hand, the interpolation curve can be accurately fitted, and the interpolation curve fitted on the other hand can be Ensure the contour error of the equipment during processing.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (29)

  1. 一种运动轨迹平滑转接的方法,其特征在于,所述方法包括:A method for smooth transition of motion trajectory, characterized in that the method comprises:
    获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;Obtaining a first track and a second track to be smoothly transferred and a preset contour error;
    根据所述第一轨迹和所述第二轨迹以及所述预设轮廓误差确定特征插补点的位置;Determining a position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error;
    根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,以使得所述第一轨迹与所述插补曲线在二者连接点的曲率与切向角相等,所述第二轨迹与所述插补曲线在二者连接点的曲率与切向角相等。And fitting, according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation, an interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory, The curvature of the first trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle.
  2. 根据权利要求1所述的方法,其特征在于,所述根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置包括:The method according to claim 1, wherein the determining the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error comprises:
    在所述第一轨迹和第二轨迹二者的连接点处的切线夹角的角平分线上选择距离所述第一轨迹和第二轨迹的连接点为所述预设轮廓误差的点作为所述特征插补点。Selecting, at the angle bisector of the tangent angle at the connection point of the first trajectory and the second trajectory, a point at which the connection point of the first trajectory and the second trajectory is the preset contour error Feature interpolation points.
  3. 根据权利要求1所述的方法,其特征在于,所述第一轨迹为圆弧或线段,所述第二轨迹为圆弧。The method according to claim 1, wherein the first trajectory is an arc or a line segment, and the second trajectory is an arc.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线的步骤包括:The method according to claim 1, wherein said fitting said first trajectory according to said first trajectory, said second trajectory, said feature interpolation point, and an interpolation curve general equation The steps of the feature interpolation point and the interpolation curve of the second track include:
    拟合出连接所述第一轨迹和所述特征插补点的第一子曲线以及连接所述特征插补点和所述第二轨迹之间的第二子曲线,所述第一子曲线和所述第二子曲线分别满足所述插补曲线通用方程且具有不同的曲线参数,所述第一子曲线和所述第二子曲线在所述特征插补点处的曲率与切向角均相等。And fitting a first sub-curve connecting the first trajectory and the feature interpolation point and connecting a second sub-curve between the feature interpolation point and the second trajectory, the first sub-curve and The second sub-curves respectively satisfy the interpolation curve general equation and have different curve parameters, and the curvature and tangential angle of the first sub-curve and the second sub-curve at the feature interpolation point are both equal.
  5. 根据权利要求4所述的方法,其特征在于,所述第一子曲线为第一回旋曲线,所述第二子曲线为第二回旋曲线。The method according to claim 4, wherein the first sub-curve is a first convoluted curve and the second sub-curve is a second convoluted curve.
  6. 根据权利要求5所述的方法,其特征在于,所述第一轨迹为线段,所述第二轨迹为圆弧,其中所述根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线的步骤包括:The method according to claim 5, wherein the first trajectory is a line segment, and the second trajectory is an arc, wherein the first trajectory, the second trajectory, and the feature interpolation point are And the step of fitting the interpolation curve general equation to fit the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory comprises:
    将所述线段设置在直角坐标系的一坐标轴上,且所述线段的未与所述圆弧连接的一端设置成与所述直角坐标系的原点重合;Setting the line segment on a coordinate axis of the Cartesian coordinate system, and an end of the line segment not connected to the arc is disposed to coincide with an origin of the Cartesian coordinate system;
    通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:The curve parameters of the first convolution curve and the second convolution curve are solved by combining the following two sets of equations:
    Figure PCTCN2017084199-appb-100001
    Figure PCTCN2017084199-appb-100001
    Figure PCTCN2017084199-appb-100002
    Figure PCTCN2017084199-appb-100002
    其中,x0为所述第一回旋曲线与所述线段的连接点在所述坐标轴上的坐标,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述线段的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述圆弧的连接点之间的弧长,α为所述圆弧从所述第二回旋曲线与所述圆弧的连接点到所述圆弧与所述线段的连接点之间的圆弧片段的圆心角,Tccw为旋转矩阵,Tccw、x0、c0、s0、c1、s1以及α为需要通过所述两组方程进行求解的未知量;Where x 0 is the coordinate of the connection point of the first convoluted curve and the line segment on the coordinate axis, c 0 is the curvature change rate of the first convoluted curve, and s 0 is the first convoluted curve From the junction length of the line segment to the feature interpolation point, c 1 is the curvature change rate of the second convolution curve, and s 1 is the second convolution curve from the feature insertion An arc length between the point of attachment to the arc and the arc, wherein α is the connection of the arc from the connection point of the second convolution curve to the arc to the arc and the line segment The central angle of the arc segment between the points, T ccw is the rotation matrix, T ccw , x 0 , c 0 , s 0 , c 1 , s 1 and α are unknown quantities that need to be solved by the two sets of equations;
    其中,L为所述线段的长度,E为所述预设轮廓误差,β为所述线段与所述圆弧的夹角,R为所述圆弧的半径,xc为所述圆弧的圆心在所述坐标轴上的坐标,yc为所述圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100003
    为所述圆弧的圆心到所述圆弧与所述线段的连接点的方向向量,xc、yc
    Figure PCTCN2017084199-appb-100004
    L、β和R为能够通过所述线段和所述圆弧及二者的相对位置关系获得的已知量。
    Where L is the length of the line segment, E is the preset contour error, β is the angle between the line segment and the arc, R is the radius of the arc, and x c is the arc The coordinate of the center of the circle on the coordinate axis, y c is the coordinate of the center of the arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100003
    a direction vector of the center of the arc to the point of intersection of the arc and the line segment, x c , y c ,
    Figure PCTCN2017084199-appb-100004
    L, β, and R are known quantities that can be obtained by the relative positional relationship of the line segment and the arc and both.
  7. 根据权利要求5所述的方法,其特征在于,所述第一轨迹为第一圆弧,所述第二轨迹为第二圆弧,其中所述根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线的步骤包括:The method according to claim 5, wherein the first trajectory is a first circular arc, and the second trajectory is a second circular arc, wherein the according to the first trajectory, the second trajectory, and the The step of fitting the feature interpolation point and the interpolation curve general equation to fit the interpolation curve connecting the first trajectory, the feature interpolation point and the second trajectory comprises:
    将所述第一圆弧在未与所述第二圆弧连接的一端处的切线设置在直角坐标系的一坐标轴上,将所述第一圆弧未与所述第二圆弧连接的一端设为与所述直角坐标系的原点重合;Setting a tangent line at the end of the first arc that is not connected to the second arc to a coordinate axis of the Cartesian coordinate system, and connecting the first arc to the second arc One end is set to coincide with the origin of the Cartesian coordinate system;
    通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:The curve parameters of the first convolution curve and the second convolution curve are solved by combining the following two sets of equations:
    Figure PCTCN2017084199-appb-100005
    Figure PCTCN2017084199-appb-100005
    Figure PCTCN2017084199-appb-100006
    Figure PCTCN2017084199-appb-100006
    其中,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述第一圆弧的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述第二圆弧的连接点之间的弧长,α1为所述第一圆弧从所述第一圆弧未与所述第二圆弧连接的一端到所述第一圆弧与所述第一回旋曲线的连接点之间的圆弧片段的圆心角,α2为所述第二圆弧从所述第二回旋曲线与所述第二圆弧的连接点到所述第二圆弧与所述第一圆弧的连接点之间的圆弧片段的圆心角,Tcw为旋转矩阵;c0、s0、c1、s1、α1、α2、Tcw为需要通过所述两组方程进行求解的未知量;Wherein c 0 is a curvature change rate of the first convoluted curve, and s 0 is an arc length between a connection point of the first convoluted curve and the first arc, to the feature interpolation point, c 1 is a curvature change rate of the second convolution curve, and s 1 is an arc length between the feature interpolation point and a connection point thereof with the second arc, α 1 a center of the arc segment between the end of the first arc from the end of the first arc not connected to the second arc to the junction of the first arc and the first convolution curve angle, α 2 is the second circular arc of the arc between the connection point from the connection point of the second curve and the second arc swirling to said second arc and the first arc The central angle of the segment, T cw is a rotation matrix; c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw are unknown quantities that need to be solved by the two sets of equations;
    其中,R1为所述第一圆弧的半径,R2为所述第二圆弧的半径,E为所述预设轮廓误差,x1为所述第一圆弧与所述第二圆弧的连接点在所述坐标轴上的坐标,y1为所述第一圆弧与所述第二圆弧的连接点在所述直角坐标系另一坐标轴上的坐标,x2为所述第二圆弧的圆心在所述坐标轴上的坐标,y2为所述第二圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100007
    为所述第一圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100008
    为所述第二圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100009
    为所述第二圆弧的圆心到所述第一圆弧与所述第二圆弧的连接点的方向向量,R1、R2、x1、y1、x2、y2
    Figure PCTCN2017084199-appb-100010
    为能够通过所述第一圆弧和所述第二圆弧及二者的相对位置关系获得的已知量。
    Wherein R 1 is the radius of the first arc, R 2 is the radius of the second arc, E is the preset contour error, and x 1 is the first arc and the second circle a coordinate of a connection point of the arc on the coordinate axis, and y 1 is a coordinate of a connection point of the first circular arc and the second circular arc on another coordinate axis of the rectangular coordinate system, where x 2 is a coordinate of a center of the second arc on the coordinate axis, and y 2 is a coordinate of a center of the second arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100007
    a tangent vector of the first arc at a junction of the first arc and the second arc,
    Figure PCTCN2017084199-appb-100008
    a tangent vector of a connection point of the second circular arc between the first circular arc and the second circular arc,
    Figure PCTCN2017084199-appb-100009
    a direction vector of a point connecting the center of the second arc to the first arc and the second arc, R 1 , R 2 , x 1 , y 1 , x 2 , y 2 ,
    Figure PCTCN2017084199-appb-100010
    A known amount that can be obtained by the relative positional relationship of the first circular arc and the second circular arc and the two.
  8. 一种运动轨迹平滑转接的装置,其特征在于,所述装置包括处理器和与所述处理器连接的存储器,所述存储器用于存储第一轨迹、第二轨迹、预设轮廓误差,所述处理器用于从所述存储器获取所述第一轨迹、所述第二轨迹以及所述预设轮廓误差;根据所述第一轨迹和所述第二轨迹以及所述预设轮廓误差确定特征插补点的位置;根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,以使得所述第一轨迹与所述插补曲线在二者连接点的曲率与切向角相等,所述第二轨迹与所述插补曲线在二者连接点的曲率与切向角相等。A device for smooth transition of motion trajectory, characterized in that the device comprises a processor and a memory connected to the processor, the memory is used for storing a first trajectory, a second trajectory, a preset contour error, The processor is configured to acquire the first trajectory, the second trajectory, and the preset contour error from the memory; determine feature insertion according to the first trajectory and the second trajectory and the preset contour error Position of the complementary point; fitting the first trajectory, the feature interpolation point, and the second trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation Interpolating curve such that the curvature of the first trajectory and the interpolation curve at the joint point of the two is equal to the tangential angle, and the curvature of the second trajectory and the interpolation curve at the joint point of the two The tangential angles are equal.
  9. 根据权利要求8所述的装置,其特征在于,所述处理器根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置包括:The apparatus according to claim 8, wherein the determining, by the processor, the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error comprises:
    在所述第一轨迹和第二轨迹二者的连接点处的切线夹角的角平分线上选择距离所述第一轨迹和第二轨迹的连接点为所述预设轮廓误差的点作为所述特征插补点。Selecting, at the angle bisector of the tangent angle at the connection point of the first trajectory and the second trajectory, a point at which the connection point of the first trajectory and the second trajectory is the preset contour error Feature interpolation points.
  10. 根据权利要求8所述的装置,其特征在于,所述第一轨迹为圆弧或线段,所述第二轨迹为圆弧。The apparatus according to claim 8, wherein said first trajectory is an arc or a line segment, and said second trajectory is an arc.
  11. 根据权利要求8所述的装置,其特征在于,所述处理器根据所述第一轨迹、第二轨迹、 所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The apparatus according to claim 8, wherein said processor is based on said first trajectory, said second trajectory, The feature interpolation point and the interpolation curve general equation fit the interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory, including:
    拟合出连接所述第一轨迹和所述特征插补点的第一子曲线以及连接所述特征插补点和所述第二轨迹之间的第二子曲线,所述第一子曲线和所述第二子曲线分别满足所述插补曲线通用方程且具有不同的曲线参数,所述第一子曲线和所述第二子曲线在所述特征插补点处的曲率与切向角均相等。And fitting a first sub-curve connecting the first trajectory and the feature interpolation point and connecting a second sub-curve between the feature interpolation point and the second trajectory, the first sub-curve and The second sub-curves respectively satisfy the interpolation curve general equation and have different curve parameters, and the curvature and tangential angle of the first sub-curve and the second sub-curve at the feature interpolation point are both equal.
  12. 根据权利要求11所述的装置,其特征在于,所述第一子曲线为第一回旋曲线,所述第二子曲线为第二回旋曲线。The apparatus according to claim 11, wherein said first sub-curve is a first convoluted curve and said second sub-curve is a second convoluted curve.
  13. 根据权利要求12所述的装置,其特征在于,第一轨迹为线段,所述第二轨迹为圆弧时,所述处理器根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The apparatus according to claim 12, wherein the first trajectory is a line segment, and when the second trajectory is an arc, the processor is based on the first trajectory, the second trajectory, and the feature interpolation point. And an interpolation curve general equation for fitting an interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory, including:
    将所述线段设置在直角坐标系的一坐标轴上,且所述线段的未与所述圆弧连接的一端设置成与所述直角坐标系的原点重合;以及通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:Setting the line segment on a coordinate axis of the Cartesian coordinate system, and one end of the line segment not connected to the arc is set to coincide with the origin of the Cartesian coordinate system; and solving by solving the following two sets of equations Curve parameters of the first convoluted curve and the second convoluted curve:
    Figure PCTCN2017084199-appb-100011
    Figure PCTCN2017084199-appb-100011
    Figure PCTCN2017084199-appb-100012
    Figure PCTCN2017084199-appb-100012
    其中,x0为所述第一回旋曲线与所述线段的连接点在所述坐标轴上的坐标,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述线段的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述圆弧的连接点之间的弧长,α为所述圆弧从所述第二回旋曲线与所述圆弧的连接点到所述圆弧与所述线段的连接点之间的圆弧片段的圆心角,Tccw为旋转矩阵,Tccw、x0、c0、s0、c1、s1以及α为需要通过所述两组方程进行求解的未知量;Where x 0 is the coordinate of the connection point of the first convoluted curve and the line segment on the coordinate axis, c 0 is the curvature change rate of the first convoluted curve, and s 0 is the first convoluted curve From the junction length of the line segment to the feature interpolation point, c 1 is the curvature change rate of the second convolution curve, and s 1 is the second convolution curve from the feature insertion An arc length between the point of attachment to the arc and the arc, wherein α is the connection of the arc from the connection point of the second convolution curve to the arc to the arc and the line segment The central angle of the arc segment between the points, T ccw is the rotation matrix, T ccw , x 0 , c 0 , s 0 , c 1 , s 1 and α are unknown quantities that need to be solved by the two sets of equations;
    其中,L为所述线段的长度,E为所述预设轮廓误差,β为所述线段与所述圆弧的夹角,R为所述圆弧的半径,xc为所述圆弧的圆心在所述坐标轴上的坐标,yc为所述圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100013
    为所述圆弧的圆心到所述圆弧与所述线段的连接点的方向向量,xc、yc
    Figure PCTCN2017084199-appb-100014
    L、β和R为能够通过所述线段和所述圆弧及二者的相对位置关系获得的已知量。
    Where L is the length of the line segment, E is the preset contour error, β is the angle between the line segment and the arc, R is the radius of the arc, and x c is the arc The coordinate of the center of the circle on the coordinate axis, y c is the coordinate of the center of the arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100013
    a direction vector of the center of the arc to the point of intersection of the arc and the line segment, x c , y c ,
    Figure PCTCN2017084199-appb-100014
    L, β, and R are known quantities that can be obtained by the relative positional relationship of the line segment and the arc and both.
  14. 根据权利要求12所述的装置,其特征在于,所述第一轨迹为第一圆弧,所述第二轨迹为第二圆弧时,所述处理器根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The device according to claim 12, wherein the first track is a first arc and the second track is a second arc, the processor is according to the first track and the second track The feature interpolation point and the interpolation curve general equation fit the interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory, including:
    将所述第一圆弧在未与所述第二圆弧连接的一端处的切线设置在直角坐标系的一坐标轴上,将所述第一圆弧未与所述第二圆弧连接的一端设为与所述直角坐标系的原点重合;通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:Setting a tangent line at the end of the first arc that is not connected to the second arc to a coordinate axis of the Cartesian coordinate system, and connecting the first arc to the second arc One end is set to coincide with the origin of the Cartesian coordinate system; the curve parameters of the first convolution curve and the second convolution curve are solved by combining the following two sets of equations:
    Figure PCTCN2017084199-appb-100015
    Figure PCTCN2017084199-appb-100015
    Figure PCTCN2017084199-appb-100016
    Figure PCTCN2017084199-appb-100016
    其中,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述第一圆弧的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述第二圆弧的连接点之间的弧长,α1为所述第一圆弧从所述第一圆弧未与所述第二圆弧连接的一端到所述第一圆弧与所述第一回旋曲线的连接点之间的圆弧片段的圆心角,α2为所述第二圆弧从所述第二回旋曲线与所述第二圆弧的连接点到所述第二圆弧与所述第一圆弧的连接点之间的圆弧片段的圆心角,Tcw为旋转矩阵;c0、s0、c1、s1、α1、α2、Tcw为需要通过所述两组方程进行求解的未知量;Wherein c 0 is a curvature change rate of the first convoluted curve, and s 0 is an arc length between a connection point of the first convoluted curve and the first arc, to the feature interpolation point, c 1 is a curvature change rate of the second convolution curve, and s 1 is an arc length between the feature interpolation point and a connection point thereof with the second arc, α 1 a center of the arc segment between the end of the first arc from the end of the first arc not connected to the second arc to the junction of the first arc and the first convolution curve angle, α 2 is the second circular arc of the arc between the connection point from the connection point of the second curve and the second arc swirling to said second arc and the first arc The central angle of the segment, T cw is a rotation matrix; c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw are unknown quantities that need to be solved by the two sets of equations;
    其中,R1为所述第一圆弧的半径,R2为所述第二圆弧的半径,E为所述预设轮廓误差,x1为所述第一圆弧与所述第二圆弧的连接点在所述坐标轴上的坐标,y1为所述第一圆弧与所述第二圆弧的连接点在所述直角坐标系另一坐标轴上的坐标,x2为所述第二圆弧的圆心在所述坐标轴上的坐标,y2为所述第二圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100017
    为所述第一圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100018
    为所述第二圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100019
    为所述第二圆弧的圆心到所述第一圆弧与所述第二圆弧的连接点的方向向量,R1、R2、x1、y1、x2、y2
    Figure PCTCN2017084199-appb-100020
    为能够通过所述第一圆弧和所述第二圆弧及二者的相对位置关系获得的已知量。
    Wherein R 1 is the radius of the first arc, R 2 is the radius of the second arc, E is the preset contour error, and x 1 is the first arc and the second circle a coordinate of a connection point of the arc on the coordinate axis, and y 1 is a coordinate of a connection point of the first circular arc and the second circular arc on another coordinate axis of the rectangular coordinate system, where x 2 is a coordinate of a center of the second arc on the coordinate axis, and y 2 is a coordinate of a center of the second arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100017
    a tangent vector of the first arc at a junction of the first arc and the second arc,
    Figure PCTCN2017084199-appb-100018
    a tangent vector of a connection point of the second circular arc between the first circular arc and the second circular arc,
    Figure PCTCN2017084199-appb-100019
    a direction vector of a point connecting the center of the second arc to the first arc and the second arc, R 1 , R 2 , x 1 , y 1 , x 2 , y 2 ,
    Figure PCTCN2017084199-appb-100020
    A known amount that can be obtained by the relative positional relationship of the first circular arc and the second circular arc and the two.
  15. 一种存储装置,其特征在于,所述存储装置存储有程序数据,所述程序数据能够被执行以实现如权利要求1-7任意一项所述的方法。 A storage device, characterized in that the storage device stores program data, the program data being executable to implement the method of any of claims 1-7.
  16. 一种机器人系统,其特征在于,所述机器人系统包括机器人以及与所述机器人连接的控制器,所述控制器用于获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据所述第一轨迹和所述第二轨迹以及所述预设轮廓误差确定特征插补点的位置;根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,以使得所述第一轨迹与所述插补曲线在二者连接点的曲率与切向角相等,所述第二轨迹与所述插补曲线在二者连接点的曲率与切向角相等。A robot system, comprising: a robot and a controller connected to the robot, the controller for acquiring a first trajectory and a second trajectory to be smoothly transferred and a preset contour error; Determining a position of the feature interpolation point by the first trajectory and the second trajectory and the preset contour error; and formulating a general equation according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve Interpolating an interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory such that a curvature and a tangential angle of the first trajectory and the interpolation curve at a joint point thereof Equally, the curvature of the second trajectory and the interpolation curve at the joint point of the two are equal to the tangential angle.
  17. 根据权利要求16所述的机器人系统,其特征在于,所述控制器根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置包括:The robot system according to claim 16, wherein the controller determines the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error, including:
    在所述第一轨迹和第二轨迹二者的连接点处的切线夹角的角平分线上选择距离所述第一轨迹和第二轨迹的连接点为所述预设轮廓误差的点作为所述特征插补点。Selecting, at the angle bisector of the tangent angle at the connection point of the first trajectory and the second trajectory, a point at which the connection point of the first trajectory and the second trajectory is the preset contour error Feature interpolation points.
  18. 根据权利要求16所述的机器人系统,其特征在于,所述第一轨迹为圆弧或线段,所述第二轨迹为圆弧。The robot system according to claim 16, wherein the first trajectory is an arc or a line segment, and the second trajectory is an arc.
  19. 根据权利要求16所述的机器人系统,其特征在于,所述控制器根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线包括:The robot system according to claim 16, wherein the controller fits the first trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and an interpolation curve general equation The interpolation curve of the feature interpolation point and the second track includes:
    拟合出连接所述第一轨迹和所述特征插补点的第一子曲线以及连接所述特征插补点和所述第二轨迹之间的第二子曲线,所述第一子曲线和所述第二子曲线分别满足所述插补曲线通用方程且具有不同的曲线参数,所述第一子曲线和所述第二子曲线在所述特征插补点处的曲率与切向角均相等。And fitting a first sub-curve connecting the first trajectory and the feature interpolation point and connecting a second sub-curve between the feature interpolation point and the second trajectory, the first sub-curve and The second sub-curves respectively satisfy the interpolation curve general equation and have different curve parameters, and the curvature and tangential angle of the first sub-curve and the second sub-curve at the feature interpolation point are both equal.
  20. 根据权利要求19所述的机器人系统,其特征在于,所述第一子曲线为第一回旋曲线,所述第二子曲线为第二回旋曲线。The robot system according to claim 19, wherein the first sub-curve is a first convoluted curve and the second sub-curve is a second convoluted curve.
  21. 根据权利要求20所述的机器人系统,其特征在于,第一轨迹为线段,所述第二轨迹为圆弧时,所述控制器根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The robot system according to claim 20, wherein the first trajectory is a line segment, and when the second trajectory is an arc, the controller interpolates according to the first trajectory, the second trajectory, and the feature Point and interpolation curve general equations fit the interpolation curves connecting the first trajectory, the feature interpolation point and the second trajectory, including:
    将所述线段设置在直角坐标系的一坐标轴上,且所述线段的未与所述圆弧连接的一端设置成与所述直角坐标系的原点重合;以及通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:Setting the line segment on a coordinate axis of the Cartesian coordinate system, and one end of the line segment not connected to the arc is set to coincide with the origin of the Cartesian coordinate system; and solving by solving the following two sets of equations Curve parameters of the first convoluted curve and the second convoluted curve:
    Figure PCTCN2017084199-appb-100021
    Figure PCTCN2017084199-appb-100021
    Figure PCTCN2017084199-appb-100022
    Figure PCTCN2017084199-appb-100022
    其中,x0为所述第一回旋曲线与所述线段的连接点在所述坐标轴上的坐标,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述线段的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述圆弧的连接点之间的弧长,α为所述圆弧从所述第二回旋曲线与所述圆弧的连接点到所述圆弧与所述线段的连接点之间的圆弧片段的圆心角,Tccw为旋转矩阵,Tccw、x0、c0、s0、c1、s1以及α为需要通过所述两组方程进行求解的未知量;Where x 0 is the coordinate of the connection point of the first convoluted curve and the line segment on the coordinate axis, c 0 is the curvature change rate of the first convoluted curve, and s 0 is the first convoluted curve From the junction length of the line segment to the feature interpolation point, c 1 is the curvature change rate of the second convolution curve, and s 1 is the second convolution curve from the feature insertion An arc length between the point of attachment to the arc and the arc, wherein α is the connection of the arc from the connection point of the second convolution curve to the arc to the arc and the line segment The central angle of the arc segment between the points, T ccw is the rotation matrix, T ccw , x 0 , c 0 , s 0 , c 1 , s 1 and α are unknown quantities that need to be solved by the two sets of equations;
    其中,L为所述线段的长度,E为所述预设轮廓误差,β为所述线段与所述圆弧的夹角,R为所述圆弧的半径,xc为所述圆弧的圆心在所述坐标轴上的坐标,yc为所述圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100023
    为所述圆弧的圆心到所述圆弧与所述线段的连接点的方向向量,xc、yc
    Figure PCTCN2017084199-appb-100024
    L、β和R为能够通过所述线段和所述圆弧及二者的相对位置关系获得的已知量。
    Where L is the length of the line segment, E is the preset contour error, β is the angle between the line segment and the arc, R is the radius of the arc, and x c is the arc The coordinate of the center of the circle on the coordinate axis, y c is the coordinate of the center of the arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100023
    a direction vector of the center of the arc to the point of intersection of the arc and the line segment, x c , y c ,
    Figure PCTCN2017084199-appb-100024
    L, β, and R are known quantities that can be obtained by the relative positional relationship of the line segment and the arc and both.
  22. 根据权利要求20所述的机器人系统,其特征在于,所述第一轨迹为第一圆弧,所述第二轨迹为第二圆弧时,所述控制器根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The robot system according to claim 20, wherein the first trajectory is a first arc and the second trajectory is a second arc, the controller is according to the first trajectory and the second The trajectory, the feature interpolation point, and the interpolation curve general equation fit the interpolation curve connecting the first trajectory, the feature interpolation point, and the second trajectory, including:
    将所述第一圆弧在未与所述第二圆弧连接的一端处的切线设置在直角坐标系的一坐标轴上,将所述第一圆弧未与所述第二圆弧连接的一端设为与所述直角坐标系的原点重合;通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:Setting a tangent line at the end of the first arc that is not connected to the second arc to a coordinate axis of the Cartesian coordinate system, and connecting the first arc to the second arc One end is set to coincide with the origin of the Cartesian coordinate system; the curve parameters of the first convolution curve and the second convolution curve are solved by combining the following two sets of equations:
    Figure PCTCN2017084199-appb-100025
    Figure PCTCN2017084199-appb-100025
    Figure PCTCN2017084199-appb-100026
    Figure PCTCN2017084199-appb-100026
    其中,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述第一圆弧的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述第二圆弧的连接点之间的弧长,α1为所述第一圆弧从所述第一圆弧未与所述第二圆弧连接的一端到所述第一圆弧与所述第一回旋曲线的连接点之间的圆弧片段的圆心角,α2为所述第二圆弧从所述第二回旋曲线与所述第二圆弧的连接点到所述第二圆弧与所述第一圆弧的连接点之间的圆弧片段的圆心角,Tcw为旋转矩阵;c0、s0、c1、s1、α1、α2、Tcw为需要通过所述两组方程进行求解的未知量;Wherein c 0 is a curvature change rate of the first convoluted curve, and s 0 is an arc length between a connection point of the first convoluted curve and the first arc, to the feature interpolation point, c 1 is a curvature change rate of the second convolution curve, and s 1 is an arc length between the feature interpolation point and a connection point thereof with the second arc, α 1 a center of the arc segment between the end of the first arc from the end of the first arc not connected to the second arc to the junction of the first arc and the first convolution curve angle, α 2 is the second circular arc of the arc between the connection point from the connection point of the second curve and the second arc swirling to said second arc and the first arc The central angle of the segment, T cw is a rotation matrix; c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw are unknown quantities that need to be solved by the two sets of equations;
    其中,R1为所述第一圆弧的半径,R2为所述第二圆弧的半径,E为所述预设轮廓误差,x1为所述第一圆弧与所述第二圆弧的连接点在所述坐标轴上的坐标,y1为所述第一圆弧与所述第二圆弧的连接点在所述直角坐标系另一坐标轴上的坐标,x2为所述第二圆弧的圆心在所述坐标轴上的坐标,y2为所述第二圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100027
    为所述第一圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100028
    为所述第二圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100029
    为所述第二圆弧的圆心到所述第一圆弧与所述第二圆弧的连接点的方向向量,R1、R2、x1、y1、x2、y2
    Figure PCTCN2017084199-appb-100030
    为能够通过所述第一圆弧和所述第二圆弧及二者的相对位置关系获得的已知量。
    Wherein R 1 is the radius of the first arc, R 2 is the radius of the second arc, E is the preset contour error, and x 1 is the first arc and the second circle a coordinate of a connection point of the arc on the coordinate axis, and y 1 is a coordinate of a connection point of the first circular arc and the second circular arc on another coordinate axis of the rectangular coordinate system, where x 2 is a coordinate of a center of the second arc on the coordinate axis, and y 2 is a coordinate of a center of the second arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100027
    a tangent vector of the first arc at a junction of the first arc and the second arc,
    Figure PCTCN2017084199-appb-100028
    a tangent vector of a connection point of the second circular arc between the first circular arc and the second circular arc,
    Figure PCTCN2017084199-appb-100029
    a direction vector of a point connecting the center of the second arc to the first arc and the second arc, R 1 , R 2 , x 1 , y 1 , x 2 , y 2 ,
    Figure PCTCN2017084199-appb-100030
    A known amount that can be obtained by the relative positional relationship of the first circular arc and the second circular arc and the two.
  23. 一种数控机床,其特征在于,所述数控机床包括机床本体和数控设备,所述数控设备用于获取待平滑转接的第一轨迹和第二轨迹以及预设轮廓误差;根据所述第一轨迹和所述第二轨迹以及所述预设轮廓误差确定特征插补点的位置;根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,以使得所述第一轨迹与所述插补曲线在二者连接点的曲率与切向角相等,所述第二轨迹与所述插补曲线在二者连接点的曲率与切向角相等。A numerical control machine tool, comprising: a machine tool body and a numerical control device, wherein the numerical control device is configured to acquire a first track and a second track to be smoothly transferred and a preset contour error; according to the first The trajectory and the second trajectory and the preset contour error determine a position of the feature interpolation point; and the connection is fitted according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation An interpolation curve of the first trajectory, the feature interpolation point, and the second trajectory, such that a curvature and a tangential angle of the first trajectory and the interpolation curve at a joint point thereof are equal, The curvature of the second trajectory and the interpolation curve at the joint point of the two are equal to the tangential angle.
  24. 根据权利要求23所述的数控机床,其特征在于,所述数控设备根据第一轨迹和第二轨迹以及预设轮廓误差确定特征插补点的位置包括:The numerical control machine tool according to claim 23, wherein the determining, by the numerical control device, the position of the feature interpolation point according to the first trajectory and the second trajectory and the preset contour error comprises:
    在所述第一轨迹和第二轨迹二者的连接点处的切线夹角的角平分线上选择距离所述第一轨迹和第二轨迹的连接点为所述预设轮廓误差的点作为所述特征插补点。Selecting, at the angle bisector of the tangent angle at the connection point of the first trajectory and the second trajectory, a point at which the connection point of the first trajectory and the second trajectory is the preset contour error Feature interpolation points.
  25. 根据权利要求23所述的数控机床,其特征在于,所述第一轨迹为圆弧或线段,所述第二轨迹为圆弧。The numerical control machine tool according to claim 23, wherein the first trajectory is an arc or a line segment, and the second trajectory is an arc.
  26. 根据权利要求23所述的数控机床,其特征在于,所述数控设备根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第 二轨迹的插补曲线包括:The numerical control machine tool according to claim 23, wherein the numerical control device fits the first trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation The feature interpolation point and the first The interpolation curve of the two tracks includes:
    拟合出连接所述第一轨迹和所述特征插补点的第一子曲线以及连接所述特征插补点和所述第二轨迹之间的第二子曲线,所述第一子曲线和所述第二子曲线分别满足所述插补曲线通用方程且具有不同的曲线参数,所述第一子曲线和所述第二子曲线在所述特征插补点处的曲率与切向角均相等。And fitting a first sub-curve connecting the first trajectory and the feature interpolation point and connecting a second sub-curve between the feature interpolation point and the second trajectory, the first sub-curve and The second sub-curves respectively satisfy the interpolation curve general equation and have different curve parameters, and the curvature and tangential angle of the first sub-curve and the second sub-curve at the feature interpolation point are both equal.
  27. 根据权利要求26所述的数控机床,其特征在于,所述第一子曲线为第一回旋曲线,所述第二子曲线为第二回旋曲线。The numerical control machine tool according to claim 26, wherein the first sub-curve is a first convoluted curve and the second sub-curve is a second convoluted curve.
  28. 根据权利要求27所述的数控机床,其特征在于,第一轨迹为线段,所述第二轨迹为圆弧时,所述数控设备根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The numerical control machine tool according to claim 27, wherein the first trajectory is a line segment, and when the second trajectory is an arc, the numerical control device interpolates according to the first trajectory, the second trajectory, and the feature Point and interpolation curve general equations fit the interpolation curves connecting the first trajectory, the feature interpolation point and the second trajectory, including:
    将所述线段设置在直角坐标系的一坐标轴上,且所述线段的未与所述圆弧连接的一端设置成与所述直角坐标系的原点重合;以及通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:Setting the line segment on a coordinate axis of the Cartesian coordinate system, and one end of the line segment not connected to the arc is set to coincide with the origin of the Cartesian coordinate system; and solving by solving the following two sets of equations Curve parameters of the first convoluted curve and the second convoluted curve:
    Figure PCTCN2017084199-appb-100031
    Figure PCTCN2017084199-appb-100031
    Figure PCTCN2017084199-appb-100032
    Figure PCTCN2017084199-appb-100032
    其中,x0为所述第一回旋曲线与所述线段的连接点在所述坐标轴上的坐标,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述线段的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述圆弧的连接点之间的弧长,α为所述圆弧从所述第二回旋曲线与所述圆弧的连接点到所述圆弧与所述线段的连接点之间的圆弧片段的圆心角,Tccw为旋转矩阵,Tccw、x0、c0、s0、c1、s1以及α为需要通过所述两组方程进行求解的未知量;Where x 0 is the coordinate of the connection point of the first convoluted curve and the line segment on the coordinate axis, c 0 is the curvature change rate of the first convoluted curve, and s 0 is the first convoluted curve From the junction length of the line segment to the feature interpolation point, c 1 is the curvature change rate of the second convolution curve, and s 1 is the second convolution curve from the feature insertion An arc length between the point of attachment to the arc and the arc, wherein α is the connection of the arc from the connection point of the second convolution curve to the arc to the arc and the line segment The central angle of the arc segment between the points, T ccw is the rotation matrix, T ccw , x 0 , c 0 , s 0 , c 1 , s 1 and α are unknown quantities that need to be solved by the two sets of equations;
    其中,L为所述线段的长度,E为所述预设轮廓误差,β为所述线段与所述圆弧的夹角,R为所述圆弧的半径,xc为所述圆弧的圆心在所述坐标轴上的坐标,yc为所述圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100033
    为所述圆弧的圆心到所述圆弧与所述线段的连接点的方向向量,xc、yc
    Figure PCTCN2017084199-appb-100034
    L、β和R为能够通过所述线段和所述圆弧及二者的相对位置关系获得的已知量。
    Where L is the length of the line segment, E is the preset contour error, β is the angle between the line segment and the arc, R is the radius of the arc, and x c is the arc The coordinate of the center of the circle on the coordinate axis, y c is the coordinate of the center of the arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100033
    a direction vector of the center of the arc to the point of intersection of the arc and the line segment, x c , y c ,
    Figure PCTCN2017084199-appb-100034
    L, β, and R are known quantities that can be obtained by the relative positional relationship of the line segment and the arc and both.
  29. 根据权利要求27所述的数控机床,其特征在于,所述第一轨迹为第一圆弧,所述第二轨 迹为第二圆弧时,所述数控设备根据所述第一轨迹、第二轨迹、所述特征插补点以及插补曲线通用方程拟合出连接所述第一轨迹、所述特征插补点和所述第二轨迹的插补曲线,包括:The numerical control machine tool according to claim 27, wherein said first track is a first arc and said second rail When the track is the second arc, the numerical control device fits the first trajectory according to the first trajectory, the second trajectory, the feature interpolation point, and the interpolation curve general equation, and the feature interpolation The interpolation curve of the point and the second trajectory includes:
    将所述第一圆弧在未与所述第二圆弧连接的一端处的切线设置在直角坐标系的一坐标轴上,将所述第一圆弧未与所述第二圆弧连接的一端设为与所述直角坐标系的原点重合;通过联立以下两组方程求解出所述第一回旋曲线和所述第二回旋曲线的曲线参数:Setting a tangent line at the end of the first arc that is not connected to the second arc to a coordinate axis of the Cartesian coordinate system, and connecting the first arc to the second arc One end is set to coincide with the origin of the Cartesian coordinate system; the curve parameters of the first convolution curve and the second convolution curve are solved by combining the following two sets of equations:
    Figure PCTCN2017084199-appb-100035
    Figure PCTCN2017084199-appb-100035
    Figure PCTCN2017084199-appb-100036
    Figure PCTCN2017084199-appb-100036
    其中,c0为所述第一回旋曲线的曲率变化率,s0为所述第一回旋曲线从其与所述第一圆弧的连接点到所述特征插补点之间的弧长,c1为所述第二回旋曲线的曲率变化率,s1为所述第二回旋曲线从所述特征插补点到其与所述第二圆弧的连接点之间的弧长,α1为所述第一圆弧从所述第一圆弧未与所述第二圆弧连接的一端到所述第一圆弧与所述第一回旋曲线的连接点之间的圆弧片段的圆心角,α2为所述第二圆弧从所述第二回旋曲线与所述第二圆弧的连接点到所述第二圆弧与所述第一圆弧的连接点之间的圆弧片段的圆心角,Tcw为旋转矩阵;c0、s0、c1、s1、α1、α2、Tcw为需要通过所述两组方程进行求解的未知量;Wherein c 0 is a curvature change rate of the first convoluted curve, and s 0 is an arc length between a connection point of the first convoluted curve and the first arc, to the feature interpolation point, c 1 is a curvature change rate of the second convolution curve, and s 1 is an arc length between the feature interpolation point and a connection point thereof with the second arc, α 1 a center of the arc segment between the end of the first arc from the end of the first arc not connected to the second arc to the junction of the first arc and the first convolution curve angle, α 2 is the second circular arc of the arc between the connection point from the connection point of the second curve and the second arc swirling to said second arc and the first arc The central angle of the segment, T cw is a rotation matrix; c 0 , s 0 , c 1 , s 1 , α 1 , α 2 , T cw are unknown quantities that need to be solved by the two sets of equations;
    其中,R1为所述第一圆弧的半径,R2为所述第二圆弧的半径,E为所述预设轮廓误差,x1为所述第一圆弧与所述第二圆弧的连接点在所述坐标轴上的坐标,y1为所述第一圆弧与所述第二圆弧的连接点在所述直角坐标系另一坐标轴上的坐标,x2为所述第二圆弧的圆心在所述坐标轴上的坐标,y2为所述第二圆弧的圆心在所述直角坐标系另一坐标轴上的坐标,
    Figure PCTCN2017084199-appb-100037
    为所述第一圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100038
    为所述第二圆弧在所述所述第一圆弧与所述第二圆弧的连接点的切向量,
    Figure PCTCN2017084199-appb-100039
    为所述第二圆弧的圆心到所述第一圆弧与所述第二圆弧的连接点的方向向量,R1、R2、x1、y1、x2、y2
    Figure PCTCN2017084199-appb-100040
    为能够通过所述第一圆弧和所述第二圆弧及二者的相对位置关系获得的已知量。
    Wherein R 1 is the radius of the first arc, R 2 is the radius of the second arc, E is the preset contour error, and x 1 is the first arc and the second circle a coordinate of a connection point of the arc on the coordinate axis, and y 1 is a coordinate of a connection point of the first circular arc and the second circular arc on another coordinate axis of the rectangular coordinate system, where x 2 is a coordinate of a center of the second arc on the coordinate axis, and y 2 is a coordinate of a center of the second arc on another coordinate axis of the Cartesian coordinate system,
    Figure PCTCN2017084199-appb-100037
    a tangent vector of the first arc at a junction of the first arc and the second arc,
    Figure PCTCN2017084199-appb-100038
    a tangent vector of a connection point of the second circular arc between the first circular arc and the second circular arc,
    Figure PCTCN2017084199-appb-100039
    a direction vector of a point connecting the center of the second arc to the first arc and the second arc, R 1 , R 2 , x 1 , y 1 , x 2 , y 2 ,
    Figure PCTCN2017084199-appb-100040
    A known amount that can be obtained by the relative positional relationship of the first circular arc and the second circular arc and the two.
PCT/CN2017/084199 2017-05-12 2017-05-12 Motion trajectory smooth transition method and device and related equipment WO2018205276A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780034014.7A CN109313428B (en) 2017-05-12 2017-05-12 Method and device for smooth switching of motion trail and related equipment
PCT/CN2017/084199 WO2018205276A1 (en) 2017-05-12 2017-05-12 Motion trajectory smooth transition method and device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/084199 WO2018205276A1 (en) 2017-05-12 2017-05-12 Motion trajectory smooth transition method and device and related equipment

Publications (1)

Publication Number Publication Date
WO2018205276A1 true WO2018205276A1 (en) 2018-11-15

Family

ID=64104275

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084199 WO2018205276A1 (en) 2017-05-12 2017-05-12 Motion trajectory smooth transition method and device and related equipment

Country Status (2)

Country Link
CN (1) CN109313428B (en)
WO (1) WO2018205276A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111216119A (en) * 2018-11-23 2020-06-02 深圳市优必选科技有限公司 Robot joint motion control method and device and terminal equipment
CN111958611A (en) * 2020-07-31 2020-11-20 华中科技大学 Milling robot posture optimization method and device considering minimum contour error
TWI716127B (en) * 2019-10-01 2021-01-11 東元電機股份有限公司 Robot and system for generating path interpolation command thereof
CN112621739A (en) * 2019-10-08 2021-04-09 东元电机股份有限公司 Robot and path interpolation planning command generation system thereof
CN113450262A (en) * 2020-03-25 2021-09-28 武汉金山办公软件有限公司 Method, device, computer storage medium and terminal for realizing image processing
CN113741338A (en) * 2021-09-10 2021-12-03 深圳市英威腾电气股份有限公司 Method, system and device for controlling running path of motion equipment
CN113791578A (en) * 2021-08-23 2021-12-14 五邑大学 Track filtering method and device based on numerical control machining system and electronic equipment
CN116501071A (en) * 2023-06-30 2023-07-28 苏州铼钠克信息技术有限公司 Method and device for planning approximate reverse path, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113103240B (en) * 2021-04-29 2022-08-23 哈尔滨工业大学 Method, device and system for realizing C2 continuous robot trajectory planning
CN113504764A (en) * 2021-06-30 2021-10-15 浙江大学 Continuous line segment numerical control machining path smoothing method based on position vector weighted integral
CN114434241B (en) * 2021-12-30 2023-06-02 西门子(中国)有限公司 Method and device for controlling movement of cross beam of stone mill, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0764622A (en) * 1993-08-26 1995-03-10 Matsushita Electric Ind Co Ltd Track interpolating device for robot
US5955856A (en) * 1997-05-20 1999-09-21 Mitsubishi Denki Kabushiki Kaisha Numerical control apparatus and method
EP1398680A2 (en) * 1999-11-19 2004-03-17 Siemens Energy & Automation, Inc. Apparatus and method for smooth cornering in a motion control system
CN103576611A (en) * 2012-07-19 2014-02-12 发那科株式会社 Numerical controller including corner multiple curves inserting unit
CN103699056A (en) * 2013-12-02 2014-04-02 嘉兴学院 Real-time smooth transition interpolation method of small high-speed and high-accuracy numerical control machining line segment
CN106527351A (en) * 2015-09-10 2017-03-22 沈阳高精数控智能技术股份有限公司 Small-line real-time interpolation method for dynamically determining length of transition curve

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0764622A (en) * 1993-08-26 1995-03-10 Matsushita Electric Ind Co Ltd Track interpolating device for robot
US5955856A (en) * 1997-05-20 1999-09-21 Mitsubishi Denki Kabushiki Kaisha Numerical control apparatus and method
EP1398680A2 (en) * 1999-11-19 2004-03-17 Siemens Energy & Automation, Inc. Apparatus and method for smooth cornering in a motion control system
CN103576611A (en) * 2012-07-19 2014-02-12 发那科株式会社 Numerical controller including corner multiple curves inserting unit
CN103699056A (en) * 2013-12-02 2014-04-02 嘉兴学院 Real-time smooth transition interpolation method of small high-speed and high-accuracy numerical control machining line segment
CN106527351A (en) * 2015-09-10 2017-03-22 沈阳高精数控智能技术股份有限公司 Small-line real-time interpolation method for dynamically determining length of transition curve

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111216119A (en) * 2018-11-23 2020-06-02 深圳市优必选科技有限公司 Robot joint motion control method and device and terminal equipment
TWI716127B (en) * 2019-10-01 2021-01-11 東元電機股份有限公司 Robot and system for generating path interpolation command thereof
CN112621739A (en) * 2019-10-08 2021-04-09 东元电机股份有限公司 Robot and path interpolation planning command generation system thereof
CN112621739B (en) * 2019-10-08 2022-03-15 东元电机股份有限公司 Robot and path interpolation planning command generation system thereof
CN113450262A (en) * 2020-03-25 2021-09-28 武汉金山办公软件有限公司 Method, device, computer storage medium and terminal for realizing image processing
CN111958611A (en) * 2020-07-31 2020-11-20 华中科技大学 Milling robot posture optimization method and device considering minimum contour error
CN113791578A (en) * 2021-08-23 2021-12-14 五邑大学 Track filtering method and device based on numerical control machining system and electronic equipment
CN113791578B (en) * 2021-08-23 2023-05-02 五邑大学 Track filtering method and device based on numerical control machining system and electronic equipment
CN113741338A (en) * 2021-09-10 2021-12-03 深圳市英威腾电气股份有限公司 Method, system and device for controlling running path of motion equipment
CN113741338B (en) * 2021-09-10 2023-08-22 深圳市英威腾电气股份有限公司 Running path control method, system and device of sports equipment
CN116501071A (en) * 2023-06-30 2023-07-28 苏州铼钠克信息技术有限公司 Method and device for planning approximate reverse path, electronic equipment and storage medium
CN116501071B (en) * 2023-06-30 2023-09-05 苏州铼钠克信息技术有限公司 Method and device for planning approximate reverse path, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109313428B (en) 2022-04-29
CN109313428A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
WO2018205276A1 (en) Motion trajectory smooth transition method and device and related equipment
WO2017113416A1 (en) Smooth transition method for processing trajectories and processing device
US8831777B2 (en) Robot program changing device
CN105353725B (en) Auxiliary magnet configuration space circular interpolation method is crossed for industrial robot
US8774965B2 (en) Method and device for controlling a manipulator
CN108594815B (en) Staged wheeled robot moving path planning method
WO2017113195A1 (en) Processing path planning method, processing path planning apparatus and numerically controlled machine tool
CN110900612B (en) Pose-synchronous six-axis industrial robot track smoothing method
JP2014203365A (en) Control system and control method
JPH0252283B2 (en)
WO2018019111A1 (en) Robot and joint motion control method and device therefor
WO2022121003A1 (en) Robot control method and device, computer-readable storage medium, and robot
CN102528554A (en) Trajectory optimization method of singular region by virtue of five-axis machining
CN108081616A (en) A kind of Trajectory Arithmetic suitable for 3D printing control system
CN112060077B (en) Robot control method, device, computer readable storage medium and robot
CN113485250A (en) Trajectory planning method, apparatus and computer-readable storage medium
CN109732219A (en) A kind of rounded corner method and system of laser cutting
US10198084B2 (en) Gesture control device and method
CN109648563B (en) Method for controlling motion of serial robot and computer storage medium
CN113156962B (en) Motion control method, motion control device, robot and storage medium
CN116985136B (en) Quaternion-based mechanical arm node attitude speed look-ahead control method and device
TWI541623B (en) Five-axis numerical control system and numerical controlling method thereof
US10459425B2 (en) Numerical control device
CN111263685B (en) Robot method and system
CN108549423B (en) Speed interpolation method for differential drive mobile robot with variable acceleration upper limit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17908786

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17908786

Country of ref document: EP

Kind code of ref document: A1