CN105550466A - Force feedback equipment optimum spring gravity compensation method - Google Patents

Force feedback equipment optimum spring gravity compensation method Download PDF

Info

Publication number
CN105550466A
CN105550466A CN201610015837.2A CN201610015837A CN105550466A CN 105550466 A CN105550466 A CN 105550466A CN 201610015837 A CN201610015837 A CN 201610015837A CN 105550466 A CN105550466 A CN 105550466A
Authority
CN
China
Prior art keywords
spring
particle
gravity compensation
iteration
population
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610015837.2A
Other languages
Chinese (zh)
Other versions
CN105550466B (en
Inventor
李春泉
刘小平
程强强
代逍遥
刘新强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanchang University
Original Assignee
Nanchang University
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 Nanchang University filed Critical Nanchang University
Priority to CN201610015837.2A priority Critical patent/CN105550466B/en
Publication of CN105550466A publication Critical patent/CN105550466A/en
Application granted granted Critical
Publication of CN105550466B publication Critical patent/CN105550466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Feedback Control In General (AREA)
  • Manipulator (AREA)

Abstract

The invention relates to a force feedback equipment optimum spring gravity compensation method. A simple spring gravity compensation mode is used; a spring is arranged on a driven wheel of a line transmission speed reduction mechanism of a large arm and a small arm of force feedback equipment; the influence of the connecting point position, the free length and the rigid coefficient of the spring on the gravity compensation is sufficiently considered; a gravity compensation model of the nonlinear constraint relationship is built; the stretching free length ratio is introduced; the stretching free length ratio and the connecting point position are used as optimum quantities; the average moment error is used as an optimization fitness function; iterative optimization is performed by using an improved simple particle optimization algorithm, so that a large arm mechanism and a small arm mechanism of the force feedback mechanism can obtain the optimum simple spring gravity compensation. The method has the advantages that only two springs are used; the gravity compensation of the large arm mechanism and the small arm mechanism of the force feedback equipment is realized; the design is simple; and the realization and the modification are easy.

Description

The optimum spring gravity compensation method of a kind of force feedback equipment
Technical field
The present invention relates to for the spring gravity compensation method in force feedback equipment, particularly relate to based on the optimum spring gravity compensation method of the force feedback equipment improving simple particle algorithm.
Background technology
The feedback force of virtual environment or distal environment can be passed to operator by a desirable force feedback equipment accurately, this just requires that desirable force feedback equipment should have high rear-guard, low inertia, low friction, high rigidity, suitable work space, does not have backlash and high control bandwidth etc.When operator carries out man-machine interaction by force feedback equipment and virtual environment or distal environment, the gravity suffered by force feedback equipment manipulater can reduce the rear-guard of equipment, increases the frictional influence of equipment, thus affects the force feedback performance of equipment.Therefore, in order to make force feedback equipment have good performance, gravity compensation carries out to force feedback equipment most important.
In spring gravity compensation method, use spring to increase weight and the inertia of plant equipment itself hardly, and the design of spring and processing are simple and easy to realize, spring gravity compensation method has been widely used in all kinds of plant equipment carries out gravity compensation.In force feedback equipment, also often adopt spring gravity compensation method to carry out gravity compensation to the manipulater of equipment.In existing force feedback equipment, common gravitational compensation method has: Rahman etc. propose a kind of gravitational compensation method and (refer to: Asimpletechniquetopassivelygravity-balancearticulate-edm echanisms [J] .ASMETransMechDes.1995; 117 (4): 655 ~ 58.), the method adopts one or more Hookean spring and steamboat, for compensating the system of single connecting rod and multiple connecting rod, but this spring gravity compensation method is complicated, need extra other mechanical hook-ups of interpolation, improve design cost and the complexity of system, also easily make to form mechanical interference between spring and mechanical linkage, influential system operating performance.Omega force feedback equipment (patent No.: US8,188,843B2) uses spring and in conjunction with irregular roundness cam and wire rope to carry out gravity compensation, but this compensation way needs additional designs and machining cam, which increases design cost and complexity; Secondly, radius due to irregular roundness cam is the amount of nonlinearity with angular displacement of the cam change, when force feedback equipment is at fast operating, the wire rope connecting cam steel and spring can not remain on same level always, spring and wire rope is easily caused to produce drawing gap, between this and gear, backlash is similar, and the stability of force feedback system can be caused to reduce.The method that Rahman method and Omega force feedback equipment use is integrated as the method that PHANTOMPremium1.5 devises gravity compensation and (refers to: ImprovementofDynamicTransparencyofHapticDevicebyUsingSpr ingBalance [C] .Proceedingsofthe2012IEEEInternationalConferenceonRoboti csandBiomimetics by RongfangFan, 2012:1075 ~ 1080.), but there is above-mentioned Rahman and the Omega force feedback equipment (patent No.: US8 too, 188,843B2) in problem.The gravitational compensation methods proposed based on simple spring such as foreign scholar AhmadMashayekhi (refer to: VirSense:anovelhapticdevicewithfixed-basemotorsandagravi tycompensationsystem, IndustrialRobot:AnInternationalJournal, 2014,41 (1): 37 ~ 49.).Although the simple spring gravity compensation method that AhmadMashayekhi etc. propose can compensate the gravity of connecting rod, but the method is artificial provide spring connecting point position, do not set up optimum spring gravity and compensate mathematical model, not from the optimum tie point position that spring gravity compensates, the drift of spring optimum and optimum mean rigidity coefficient angle go design spring gravity to compensate.
Known in sum, the advantage that spring gravity compensates is: spring is connected to the weight and inertia that force feedback equipment increase hardly equipment itself.But the shortcoming existing for above-mentioned spring gravity compensation method is: do not consider how devise optimum gravity compensation spring.In other words, when designing force feedback equipment spring gravity and compensating, do not taken into full account that the tie point position of spring, drift and stiffness coefficient are on the impact of gravity compensation.
Summary of the invention
The object of the invention is for existing spring gravity compensation technique defect, use and improve simple single-particle optimizing algorithm, the optimum tie point position finding spring gravity to compensate, the optimum drift of spring and optimum mean rigidity coefficient.The present invention has taken into full account that the tie point position of spring, drift and stiffness coefficient are on the impact of gravity compensation, establish the spring gravity compensation model of non-linear constrain relation, use the simple single-particle optimizing algorithm iteration optimization improved to obtain optimum spring gravity and compensate.
The present invention is realized by following technology.
Step one, large arm gravity compensation spring 4 one end are connected to large arm reduction driven and take turns 2 ends, and the other end is connected on direct current generator 5 fixed support, for compensating large arm mechanism 1 gravity;
Step 2, take into full account that large arm gravity compensation spring 4 is connected to the drift x of link position u on direct current generator 5 fixed support, large arm gravity compensation spring 0, when large arm mechanism rotates and the stiffness coefficient K of horizontal plane angle θ and large arm gravity compensation spring 4 on the impact of large arm mechanism gravity compensation, establish the model T of the large arm gravity compensation of non-linear constrain relation s(u, x 0, θ, K).Wherein, the value of K and u, x 0constitute restriction relation with θ, therefore K also can be write as K (u, x 0, θ); The restriction relation existed in this model is the restriction relation that variable u and θ and spring elongation length x (u, θ) are formed;
Step 3, in order to reduce the complexity of the simple single-particle optimizing algorithm of improvement, reasonable minimizing optimized variable number, take into full account variable u and θ and spring elongation length x (u, restriction relation θ) formed, introduces " stretching drift ratio " LLimit, using tie point position u and " stretching drift ratio " LLimt as optimized amount, average torque error AVEE is as the fitness function optimized, wherein, spring elongation length x (u, θ) and spring free length x is defined 0ratio as " stretching drift than " LLimit;
The simple single-particle optimizing algorithm that step 4, use are improved carries out iteration optimization, obtains optimum large arm gravity compensation spring 4 tie point position u opt, spring optimum drift x optwith Optimal Stiffness COEFFICIENT K opt, realize optimum simple spring gravity Compensation Design, concrete optimizing process is described below:
A () first, carries out Initialize installation: set large arm mechanism 1 rotational angle θ scope as [ψ 1, ψ 2], assuming that the population that the N number of particle in the simple single-particle optimizing algorithm improved is formed is described as: X=(X 1, X 2..., X n), wherein, X represents population set, X i(i=1,2 ..., N) and represent the position of i-th particle in this population.In this population, the flight position search volume of each particle is 2 gt, and every 1 dimension in this 2 dimension location finding space is expressed as tie point position u and " stretching drift ratio " LLimt of Hookean spring.If particle iteration total degree is M time, so, i-th particle is expressed as position in kth time iteration: X i(k)=(u i(k), LLimt i(k)) t, wherein, u i(k), LLimt ik () be i-th the spring connecting point position of particle in kth time iteration respectively, " stretching drift ratio ".These two parameters are random numbers, and its region of search stated range minimum is respectively u minand LLimit min, maximal value is respectively u maxand LLimit max.By angle θ scope [ψ 1, ψ 2] discretely turn to n part equal intervals: ψ 11< θ 2< ... < θ n< θ n+12, between adjacent two angles, difference is: Δ θ i=(ψ 21)/n, if θ 1, θ 2..., θ n, θ n+1the moment of the corresponding Hookean spring in place is: T s11), T s22) ..., T snn), T sn+1n+1), the required corresponding gravity torque compensated of large arm mechanism 1 is: T 11), T 22) ..., T nn), T n+1n+1), they are all substituted into the fitness function value of middle calculating particle optimized algorithm;
B () establishes X i(k)=(u i(k), LLmit i(k)) tthe position of each particle i in population kth time iteration, first by X ik () substitutes into stiffness coefficient K (u, the x of the large arm gravity compensation spring 4 in formula (9) 0, θ) in, for ψ 11< θ 2< ... < θ n< θ n+12in each angle value, corresponding K can be calculated 1, K 2..., K n, K n+1value.Again by K 1~ K n+1get arithmetic mean after summation to be worth this value represents the stiffness coefficient of the spring in population kth time iteration corresponding to particle i, and will substitute into in solve fitness function value;
In (c) kth time iteration, N number of particles all in population is substituted into fitness function formula respectively according to (b) step in solve average torque error AVEE, then find fitness values all in all populations in whole k time (the 1st time to kth time) iteration, and find global optimum's fitness value to be: P g(k)=(u g(k), LLmit g(k)) t.Wherein, u g(k) and LLmit gk () represents global optimum's spring connecting point in whole k iteration of whole N number of particle in population and global optimum " stretching drift than " respectively.
(d) X i(k+1)=c 1r 1x i(k)+c 2r 2[P g(k)-X i(k)]+Θ ξ/N as evolution iteration renewal equation, represent that i-th particle in all N number of particles upgrades in kth+1 iteration, wherein, c 1be called cognitive learning rate, generally get constant value 1.49445, c 2be called that social learning leads, also get constant value 1.49445, r 1and r 2the arbitrary constants of two scopes between 0 ~ 1.Θ ξ/N=0 is called skip over, wherein, Θ is an adjustable value, between the position maximal value of its span all particles in 0 to population, ξ is a stochastic variable, and its scope is certain the random site value in the band of position specified by all particles.N is the number of population; In the present invention, we choose Θ ξ/N=0;
E () boundary condition is arranged: if the population be made up of N number of particle, after the iterative computation that kth is secondary, and the position X of i-th particle ik certain the one dimension position range in () is beyond the interval of specifying: the minimum value u respectively of the minimum value region of search scope in this interval minand LLimit min, maximal value is respectively u maxand LLimit max.So position X of i-th particle ik certain one dimension of () has exceeded minimum edge boundary treaty fixed condition, must redesignated as u minor LLimit min.If, the position X of i-th particle ik certain one dimension of () has exceeded maximum boundary agreed terms, then this dimension location variable must redesignated as u maxand LLimit max;
If f () evolution number of iterations reaches maximum iteration time M, then finishing iteration, find the spring connecting point position u of the global optimum after all evolution iteration optwith optimum " stretching drift ratio " LLimit opt.Otherwise order performs after continuing to get back to (b) step;
G () is final, according to the model T of large arm gravity compensation s(u, x 0, θ, K), the restriction relation that variable u and θ and spring elongation length x (u, θ) is formed, the final optimum spring connecting point position u obtaining spring opt, drift x optwith Optimal Stiffness COEFFICIENT K opt.
Step 5, forearm gravity compensation spring 10 one end are connected to forearm reduction driven and take turns 8 ends, the other end is connected on direct current generator 11 fixed support, for compensating little arm mechanism 7 gravity, wherein, universal joint 17 is arranged on little arm mechanism 7 end, the center of gravity of universal joint 17 concentrates on the end of little arm mechanism 7, and forearm gravity compensation spring 10 compensates little arm mechanism 7 gravity and comprises gravity suffered by gravity suffered by universal joint and forearm self;
Step 6, set up the model T of the forearm gravity compensation of non-linear constrain relation xs(u x, x x0, θ x, K x), wherein, u xfor forearm gravity compensation spring 10 is connected to the tie point position on direct current generator 11 fixed support, x x0for the drift of forearm gravity compensation spring 10, θ xfor when little arm mechanism 7 rotates and horizontal plane angle, K xfor the stiffness coefficient of forearm gravity compensation spring 10, due to K xvalue and u x, x x0and θ xconstitute restriction relation, therefore K xalso K can be write as x(u x, x x0, θ x); In addition, the restriction relation existed in this model is variable u xand θ xwith spring elongation length x x(u x, θ x) restriction relation that formed;
Step 7, for forearm gravity compensation spring 10, also introduce stretching drift and compare LLimit x, by tie point position u xwith LLimit xas optimized amount, average torque error AVEE xas the fitness function optimized; Wherein, LLimit xfor forearm gravity compensation spring 10 tensile elongation x x(u x, θ x) and spring free length x x0ratio;
The simple single-particle optimizing algorithm that step 8, use are improved carries out iteration optimization, obtains optimum forearm gravity compensation spring 10 tie point position u xopt, spring optimum drift x xoptwith Optimal Stiffness COEFFICIENT K xopt, realize the simple spring gravity Compensation Design of optimum of little arm mechanism 7, concrete steps are as follows:
(aa) first, Initialize installation is carried out: establish little arm mechanism 7 rotational angle θ xscope is [ψ x1, ψ x2], assuming that be also described as by the population that N number of particle is formed in the simple single-particle optimizing algorithm improved: X=(X 1, X 2..., X n), wherein, X represents population set, X i(i=1,2 ..., N) and represent the position of i-th particle in this population; In this population, the flight position search volume of each particle is 2 gt, and every 1 dimension in this 2 dimension location finding space is expressed as the tie point position u of spring xlLimit is compared with stretching drift x; If particle iteration total degree is M time, so, i-th particle is expressed as position in kth time iteration: wherein, the spring connecting point position of difference i-th particle in kth time iteration and " stretching drift ratio ", these two parameters are random numbers, and its region of search stated range minimum is respectively u xminand LLimit xmin, maximal value is respectively u xmaxand LLimit xmax; By angle θ xscope [ψ x1, ψ x2] uniform discrete is n part equal intervals: ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2, between adjacent two angles, difference is: θ xi=(ψ x1x2)/n, if θ x1, θ x2..., θ xn, θ x (n+1)the moment of the corresponding Hookean spring in place is: T xs1x1), T xs2x2) ..., T xsn(x θ xn), T xs (n+1)x (n+1)), the required corresponding gravity torque compensated of little arm mechanism 7 is: T x1x1), T x2x2) ..., T xnxn), T x (n+1)x (n+1)), they are all substituted into the fitness function value of middle calculating particle optimized algorithm;
(bb) establish the position of each particle i in population kth time iteration, first by X ik () substitutes into the stiffness coefficient K of forearm gravity compensation spring 10 x(u x, x x0, θ x) in, for ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2in each angle value, calculate corresponding K x1, K x2..., K xn, K x (n+1)value; Again by K x1~ K x (n+1)get arithmetic mean after summation to be worth this value represents the stiffness coefficient of the spring in population kth time iteration corresponding to particle i, and will substitute into in solve fitness function value;
(cc) in kth time iteration, N number of particles all in population is substituted into fitness function formula respectively according to step (bb) in solve average torque error AVEE x, then find fitness values all in all populations in whole k time (the 1st time to kth time) iteration, and find global optimum's fitness value to be: P g ( k ) = ( u x g ( k ) , LLimt x g ( k ) ) T , Wherein, with represent global optimum's spring connecting point in whole k iteration of whole N number of particle in population and global optimum's stretching drift ratio respectively;
(dd) X i(k+1)=c 1r 1x i(k)+c 2r 2[P g(k)-X i(k)]+Θ ξ/N as evolution iteration renewal equation, represent that i-th particle in all N number of particles upgrades in kth+1 iteration, wherein, c 1be called cognitive learning rate, generally get constant value 1.49445, c 2be called that social learning leads, also get constant value 1.49445, r 1and r 2the arbitrary constants of two scopes between 0 ~ 1.Θ ξ/N=0 is called skip over, wherein, Θ is an adjustable value, between the position maximal value of its span all particles in 0 to population, ξ is a stochastic variable, and its scope is certain the random site value in the band of position specified by all particles.N is the number of population; In the present invention, we choose Θ ξ/N=0;
(ee) boundary condition agreement: if the population be made up of N number of particle, after the iterative computation that kth is secondary, the position X of i-th particle ik certain the one dimension position range in () is beyond the interval of specifying: the minimum value u respectively of the minimum value region of search scope in this interval xminand LLimit xmin, maximal value is respectively u xmaxand LLimit xmax.So position X of i-th particle ik certain one dimension of () has exceeded minimum edge boundary treaty fixed condition, must redesignated as u xminor LLimit xmin.If, the position X of i-th particle ik certain one dimension of () has exceeded maximum boundary agreed terms, then this dimension location variable must redesignated as u xmaxand LLimit xmax;
(ff) if evolution number of iterations reaches maximum iteration time M, then finishing iteration, finds the spring connecting point position u of the global optimum after all evolution iteration xoptlLimit is compared with optimum stretching drift xopt; Otherwise, continue to get back to step (bb) order execution afterwards;
(gg) according to forearm gravity compensation model T xs(u x, x x0, θ x, K x), variable u xand θ xwith spring elongation length x x(u x, θ x) restriction relation that formed, the final optimum spring connecting point position u obtaining spring xopt, drift x xoptwith Optimal Stiffness COEFFICIENT K xopt.
Advantage of the present invention: taken into full account that the tie point position of spring, drift and stiffness coefficient are on the impact of gravity compensation, establish the optimum spring gravity compensation model of non-linear constrain relation, invent a kind of spring gravity compensation method based on simple single-particle optimizing, use and improve the optimum tie point position that simple particle algorithm finds force feedback equipment gravity compensation spring, the drift of spring optimum and optimum mean rigidity coefficient; Only use two springs, these two spring one end are connected on the large arm of force feedback equipment and the reducing gear engaged wheel of forearm, their other end is connected on base reducing gear engaged wheel, realize the large arm of force feedback equipment and the gravity compensation of forearm, this invention simplicity of design, easily realizes and repacking.
Accompanying drawing explanation
Fig. 1 is that spring gravity of the present invention compensates junctor composition.In figure: 1 is large arm mechanism, 2 is large arm reduction driven wheel, and 3 be large arm deceleration driving wheel 4 is large arm gravity compensation spring, 5 be direct current generator 6 is large arm rotating shaft, 7 is little arm mechanism, and 8 is forearm reduction driven wheel, and 10 is forearm gravity compensation spring, 12 is forearm rotating shaft, 13 is base reduction driven wheel, and 14 is base deceleration driving wheel, and 16 is base shaft, 17 is universal joint, and 18 is the rotating shaft of forearm reduction driven wheel.
Fig. 2 is that turn clockwise 180 ° of spring gravity of Fig. 1 compensate junctor compositions.In figure: 1 is large arm mechanism, 2 is large arm reduction driven wheel, and 7 is little arm mechanism, 8 is forearm reduction driven wheel, and 9 is forearm deceleration driving wheel, and 10 is forearm gravity compensation spring, 11 is direct current generator, 12 is forearm rotating shaft, and 13 is base reduction driven wheel, and 14 is base reducing gear driving wheel, 15 is direct current generator, 16 is base shaft, and 17 is universal joint, and 18 is the rotating shaft of forearm reducing gear engaged wheel.
Fig. 3 is invention large arm mechanism spring gravity compensation schematic diagram.
Fig. 4 is invention little arm mechanism spring gravity compensation schematic diagram.
Embodiment
The present invention will be further described by reference to the accompanying drawings.
1-4 is described as follows by reference to the accompanying drawings: as shown in Figures 1 and 2, this force feedback equipment is a serial linkage with 6 rotary joints, be similar to the arm of people, chief component is: large arm mechanism 1, large arm reduction driven wheel 2, large arm deceleration driving wheel 3, large arm gravity compensation spring 4, direct current generator 5, large arm rotating shaft 6, little arm mechanism 7, forearm reduction driven wheel 8, forearm deceleration driving wheel 9, forearm gravity compensation spring 10, direct current generator 11, forearm rotating shaft 12, base reduction driven wheel 13, base deceleration driving wheel 14, direct current generator 15, base shaft 16, universal joint 17, composition such as part such as forearm reduction driven wheel rotating shaft 18 grade.
As shown in Figures 1 and 2, large arm mechanism 1, large arm reduction driven wheel 2, large arm deceleration driving wheel 3, large arm gravity compensation spring 4, direct current generator 5, large arm rotating shaft 6, little arm mechanism 7, forearm reduction driven wheel 8, forearm deceleration driving wheel 9, forearm gravity compensation spring 10, direct current generator 11, forearm rotating shaft 12, universal joint 17, the part such as forearm reducing gear engaged wheel rotating shaft 18 all by support installing on base reducing gear engaged wheel 13, rotate around base shaft 16 together with base reducing gear engaged wheel 13.
As shown in Figures 1 and 2, base deceleration driving wheel 14 is nested on direct current generator 15, when direct current generator 15 drives base deceleration driving wheel 14, makes both coaxial rotation.Base deceleration driving wheel 14 drives base reduction driven wheel 13 by wire rope.Seat reduction driven wheel 13 rotates around base shaft 16, and pass through wire rope gearing, large arm mechanism 1, little arm mechanism 7 and universal joint 17 is driven all to rotate around base shaft 16, thus realize making force feedback equipment can produce corresponding feedback force, base reduction driven is taken turns 13 rotational angles and is measured acquisition by the photoelectric encoder on direct current generator 15.
As shown in Figures 1 and 2, large arm deceleration driving wheel 3 is nested in the rotating shaft of direct current generator 5, when direct current generator 5 drives large arm deceleration driving wheel 3, makes both coaxial rotation.Large arm deceleration driving wheel 3 drives large arm reduction driven wheel 2 by wire rope.Large arm reduction driven wheel 2 drives large arm mechanism 1, and they all rotate around large arm rotating shaft 6, thus realizes making large arm mechanism 1 can produce corresponding feedback force.Large arm mechanism 1 rotational angle is measured by the photoelectric encoder on direct current generator 5 and is obtained.Large arm gravity compensation spring 4 one end is connected to large arm reduction driven and takes turns 2 ends, and the other end is connected on direct current generator 5 fixed support, for compensating large arm mechanism 1 gravity.
As shown in Figures 1 and 2, forearm deceleration driving wheel 9 is nested in the rotating shaft of direct current generator 11, when direct current generator 11 drives forearm deceleration driving wheel 9, makes both coaxial rotation.Forearm deceleration driving wheel 9 drives forearm reduction driven wheel 8 by wire rope.Forearm reduction driven wheel 8 rotates around the rotating shaft 18 of forearm reduction driven wheel, and by wire rope gearing, drives little arm mechanism 7 to rotate around forearm rotating shaft 12, thus realizes making little arm mechanism 7 can produce corresponding feedback force.Little arm mechanism 7 rotational angle is measured by the photoelectric encoder on direct current generator 11 and is obtained.Universal joint 17 is arranged on little arm mechanism 7 end, and universal joint 17 is made up of three mutual vertical passive rotary joints of axis, and the joint angles of these three rotary joints measures the respective anglec of rotation respectively by the angular potentiometer on respective joint.Forearm gravity compensation spring 10 one end is connected to forearm reduction driven and takes turns 8 ends, and the other end is connected on direct current generator 11 fixed support, for compensating little arm mechanism 7 gravity.In addition, the center of gravity of universal joint 17 concentrates on the end of little arm mechanism 7, and therefore, gravity compensation spring 10 compensates little arm mechanism 7 gravity and also just comprises gravity suffered by gravity suffered by universal joint and forearm self.
Fig. 3 is that large arm gravity compensation spring 4 carries out the principle schematic of simple spring gravity compensation to large arm mechanism 1, large arm mechanism 1 connecting rod O 2o 3describe, the center of gravity due to universal joint 17 concentrates on the end of little arm mechanism 7, therefore, and little arm mechanism 7 and universal joint 17 connecting rod O 3o 4be described, large arm reduction driven wheel 2 uses semicircle O 2rQ is described, and O is used in large arm rotating shaft 6 2describe, O is used in forearm rotating shaft 12 3describe, large arm mechanism 1 describes around the rotational angle angle θ of large arm rotating shaft 6, and large arm gravity compensation spring 4 tensile elongation QP describes, and one end is connected on certain 1 P on direct current generator 5 fixed support, the other end is connected to the Q point of large arm reduction driven wheel 2, and Q point is at O 2o 3reverse extending line and large arm reducing gear engaged wheel O 2rQ annulus external diameter intersection, the drift of spring is x 0, spring elongation length QP equals x, assuming that the stiffness coefficient of spring is K, spring elongation masterpiece is used in O 2the arm of force O at place 2e length is h, when spring tension is F s, moment is T s=F sh.Connecting rod O 2o 3corner ∠ O 3o 2l=θ, the gravity torque of connecting rod is T=Bcos θ.Large arm reducing gear engaged wheel radius O 2q length is r.PO 0it is parallel that residing plane and base reduction driven take turns plane residing for 13, from O 2place makes vertical line and PO 0place plane orthogonal intersects, and intersection point is positioned at O 0, wherein O 2o 0length is a, PO 0length is u.Vertical line and PO is made from Q point 0place plane orthogonal intersects, and intersection point is positioned at F, ∠ EO 2n=∠ FQP=θ 1, ∠ QO 2n=θ.At right angle Δ O 2in QG, QG equals rcos θ, O 2g length equals rsin θ.Then QF length equals GO 0length, equals O 2o 0subtract O 2g, for: a-rsin θ.PF length equals FO 0subtract PO 0, for: rcos θ-u.Like this, in right angle Δ QFP, spring elongation length QP x (u, θ) represents, according to Pythagorean theorem, the restriction relation can obtaining itself and variable u, θ is:
x ( u , &theta; ) = ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - - - ( 1 )
Like this, the tensile force of spring is:
F s = K ( x - x 0 ) = K &lsqb; ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - x 0 &rsqb; - - - ( 2 )
Again because the extended line of PQ and O 2n intersects at N point, and O 2n is parallel to O 0f, ∠ O 2nE equals ∠ QPF, ∠ O 2eN and ∠ QFP equals pi/2, so ∠ EO 2n=∠ FQP=θ 1.So the effect of spring elongation power is to O 2the arm of force O at place 2e length equals:
h=rcos(θ-θ 1)(3)
So it is F that spring gravity compensation model produces corresponding moment sh:
T s ( u , x 0 , &theta; , K ) = F s h = K &lsqb; ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - x 0 &rsqb; r c o s ( &theta; - &theta; 1 ) - - - ( 4 )
Wherein, in Δ QFP, the length of known QF is the length of a-rsin θ, PF is rcos θ-u, is QP again, can obtains according to spring elongation length known in formula (1):
sin&theta; 1 = r c o s &theta; - u ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - - - ( 5 )
cos&theta; 1 = a - r s i n &theta; ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - - - ( 6 )
In order to enable spring elongation moment full remuneration large arm mechanism gravity torque T=Bcos θ, then the compensation gravitational equilibrium moment that spring produces is:
T = B c o s &theta; = F s h = K &lsqb; ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - x 0 &rsqb; r c o s ( &theta; - &theta; 1 ) - - - ( 7 )
Further, can show that the stiffness coefficient of spring is:
K = K ( u , x 0 , &theta; ) = B c o s &theta; r &lsqb; ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - x 0 &rsqb; cos ( &theta; - &theta; 1 ) - - - ( 8 )
Due to value and u, x of K 0constitute restriction relation with θ, therefore also can be write K as K (u, x 0, θ).By cos (θ-θ 1) expand into cos θ cos θ 1+ sin θ sin θ 1, and formula (5) and formula (6) are substituted in expansion, then be updated to formula (8) abbreviation, draw:
K = K ( u , x 0 , &theta; ) = B r &phi; ( a - u t a n &theta; ) - - - ( 9 )
Wherein,
&phi; = ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - x 0 ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - - - ( 10 )
Like this, in formula (9), just can draw spring rate K be one along with large arm mechanism (connecting rod O 2o 3) corner ∠ O 3o 2the variable of L=θ, wherein: introduce parameter u and x 0be used for respectively describing the tie point present position of spring and the drift of spring.
Gravity compensation is carried out, according to parameter u and x owing to adopting Hookean spring 0change, fully examination when the tie point of Hookean spring be in diverse location and spring adopt different drifts time, the gravity compensation effect of Hookean spring.Finally, by selecting suitable position u and suitable Hookean spring drift x 0, find the Optimal Stiffness coefficient of Hookean spring.By using the Hookean spring of this Optimal Stiffness coefficient, make this Hookean spring fully can compensate large arm mechanism (connecting rod O 2o 3) gravity.
The stiffness coefficient of Hookean spring is K, and Hookean spring drift is x 0, the tie point position of corresponding Hookean spring is u.If large arm mechanism O 2o 3the scope of rotational angle is [ψ 1, ψ 2].By [ψ 1, ψ 2] interval be divided into n equal portions, ψ 11< θ 2< ... < θ n< θ n+12, the length of every adjacent spaces is: Δ θ i=(ψ 21)/n, if θ 1, θ 2..., θ n, θ n+1the moment of the corresponding Hookean spring in place is: T s11), T s22) ..., T snn), T sn+1n+1), gravity torque corresponding to connecting rod is: T 11), T 22) ..., T nn), T n+1n+1).Therefore, at [ψ 1, ψ 2] angular interval, the moment average error AVEE of Hookean spring compensation link gravity can approximate representation be:
A V E E &ap; 1 n + 1 &Sigma; i = 1 n + 1 | T s i ( &theta; i ) - T i ( &theta; i ) | - - - ( 11 )
Known, Δ θ i=(ψ 21)/n, formula (11) can be rewritten as:
A E V E &ap; &Sigma; i = 1 n + 1 | T s i ( &theta; i ) - T i ( &theta; i ) | &psi; 2 - &psi; 1 &CenterDot; &psi; 2 - &psi; 1 n = &Sigma; i = 1 n + 1 | T s i ( &theta; i ) - T ( &theta; i ) i | &psi; 2 - &psi; 1 &CenterDot; &Delta;&theta; i - - - ( 12 )
To formula (12) finding limit, then the moment average error of Hookean spring compensation link gravity is expressed as:
A V E E = 1 &psi; 2 - &psi; 1 lim n + 1 &RightArrow; &infin; &Sigma; i = 1 n + 1 | T s i ( &theta; i ) - T i ( &theta; i ) | &Delta;&theta; i = 1 &psi; 2 - &psi; 1 &Integral; &psi; 1 &psi; 2 | T s ( &theta; ) - T ( &theta; ) | d &theta; - - - ( 13 )
Formula (4) ~ (6) and connecting rod gravity torque T=Bcos θ are substituted in formula (13), can draw:
A V E E = 1 &psi; 2 - &psi; 1 &Integral; &psi; 1 &psi; 2 | B c o s &theta; - ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 - x 0 ( r c o s &theta; - u ) 2 + ( a - r s i n &theta; ) 2 K r ( a c o s &theta; - u s i n &theta; ) | d &theta; - - - ( 14 )
In formula (14), B, a and r are the drift x of known constant, spring 0, the tie point position u of spring rate K and spring is unknown variable.Large arm mechanism (connecting rod O is fully compensated in order to enable designed Hookean spring 2o 3) gravity torque, using the fitness function of formula (14) as the simple single-particle optimizing algorithm improved, also referred to as optimization aim.The spring rate K of one group of optimum is found out by the simple single-particle optimizing algorithm improved opt, optimum spring connecting point u opt, and the free x of the spring of optimum 0opt, this group parameter makes Hookean spring compensate large arm mechanism (connecting rod O 2o 3) the average torque error AVEE of gravity is minimum.
Formula (14) is rewritten as:
AVEE=g(x 0,K,u|θ)(15)
Wherein, g (x 0, K, u| θ) and equal the right-hand component of formula (14) AVEE, using this function as the fitness function of the simple single-particle optimizing algorithm search improved or be called objective function, by using this fitness function, to particle evolution iteration, finally find out the spring rate K of one group of optimum opt, optimum spring connecting point u optwith the spring free length x of optimum 0opt.But, in order to adapt to the discrete programming of particle algorithm, usually by (15) formula discretize accepted way of doing sth (11) form, making calculating more convenient, being more suitable for the simple single-particle optimizing algorithm optimization process improved.
Be x by the spring free length of simple single-particle optimizing algorithm optimum choice improved 0, the tie point position u of spring rate K and spring, concrete steps are described below:
(1) first, Initialize installation is carried out.As can be known from Fig. 3, if large arm mechanism (connecting rod O 2o 3) rotational angle range is [ψ 1, ψ 2], work as O 2q and O 2o 0during coincidence, large arm mechanism (connecting rod O 2o 3) angle be pi/2, now connecting rod gravity torque is 0, if now the drift of Hookean spring is x 0, the tensile elongation of spring is then the tensile elongation of spring with drift ratio is: referred to as " stretching drift ratio ".Spring free length x is established by " stretching drift ratio " LLimt 0with the relation of spring connecting point position u, then Hookean spring drift assuming that in the simple single-particle optimizing algorithm improved, the population be made up of N number of particle is described as: X=(X 1, X 2..., X n), wherein, X represents population set, X i(i=1,2 ..., N) and represent the position of i-th particle in this population.In this population, the flight position search volume of each particle is 2 gt, and every 1 dimension in this 2 dimension location finding space is expressed as tie point position u and " stretching drift ratio " LLimt of Hookean spring.If particle iteration total degree is M time, so, i-th particle is expressed as position in kth time iteration: X i(k)=(u i(k), LLimt i(k)) t, wherein, u i(k), LLimt ik () be i-th the spring connecting point position of particle in kth time iteration respectively, " stretching drift ratio ".These two parameters are random numbers, and its region of search stated range minimum is respectively u minand LLimit min, maximal value is respectively u maxand LLimit max.By connecting rod O 2o 3angle θ scope [ψ 1, ψ 2] uniform discrete is n part equal intervals: ψ 11< θ 2< ... < θ n< θ n+12, between adjacent two angles, difference (interval) is: Δ θ i=(ψ 21)/n, if θ 1, θ 2..., θ n, θ n+1the moment of the corresponding Hookean spring in place is: T s11), T s22) ..., T snn), T sn+1n+1), gravity torque corresponding to connecting rod is: T 11), T 22) ..., T nn), T n+1n+1).For the fitness letter of calculating formula (11) particle optimized algorithm.
(2) X is established i(k)=(u i(k), LLmit i(k)) tthe position of each particle i in population kth time iteration, first by X ik () substitutes in formula (9), i.e. K=K (u, x 0, θ) and in=B/r φ (a-utan θ), wherein, the drift of spring is passed through try to achieve.For ψ 11< θ 2< ... < θ n< θ n+12in each angle value, corresponding K can be calculated 1, K 2..., K n, K n+1value.Again by K 1~ K n+1get arithmetic mean after summation to be worth this value represents the stiffness coefficient of the spring in population kth time iteration corresponding to particle i, and will substitute into fitness function g (x 0, K, u| θ) in solve, obtain corresponding functional value.Certainly, in order to adapt to the discrete programming of particle algorithm, usually calculate AVEE again by after (15) formula discretize accepted way of doing sth (11) form.
(3) in kth time iteration, N number of particles all in population is substituted in fitness function formula (11) respectively according to (2) step and solves average torque error AVEE, then find fitness values all in all populations in whole k time (the 1st time to kth time) iteration, and find global optimum's fitness value to be: P g(k)=(u g(k), LLmit g(k)) t.Wherein, u g(k) and LLmit gk () represents the global optimum spring connecting point of whole N number of particle in whole k iteration in population respectively, global optimum's balance stem quality, global optimum's " stretching drift ratio ".
(4) X i(k+1)=c 1r 1x i(k)+c 2r 2[P g(k)-X i(k)]+Θ ξ/N as evolution iteration renewal equation, represent that i-th particle in all N number of particles upgrades in kth+1 iteration, wherein, c 1be called cognitive learning rate, generally get constant value 1.49445, c 2be called that social learning leads, also get constant value 1.49445, r 1and r 2the arbitrary constants of two scopes between 0 ~ 1.Θ ξ/N=0 is called skip over, wherein, Θ is an adjustable value, between the position maximal value of its span all particles in 0 to population, ξ is a stochastic variable, and its scope is certain the random site value in the band of position specified by all particles.N is the number of population; In the present invention, we choose Θ ξ/N=0;
(5) boundary condition agreement: if the population be made up of N number of particle, after the iterative computation that kth is secondary, the position X of i-th particle ik certain the one dimension position range in () is beyond the interval of specifying: the minimum value u respectively of the minimum value region of search scope in this interval minand LLimit min, maximal value is respectively u maxand LLimit max.So position X of i-th particle ik certain one dimension of () has exceeded minimum edge boundary treaty fixed condition, must redesignated as u minor LLimit min.If, the position X of i-th particle ik certain one dimension of () has exceeded maximum boundary agreed terms, then this dimension location variable must redesignated as u maxand LLimit max.
(6) if evolution number of iterations reaches maximum iteration time M, then finishing iteration, finds the spring connecting point position u of the global optimum after all evolution iteration optwith optimum " stretching drift ratio " LLimit opt.Otherwise order performs after continuing to get back to (2) step;
(7) final, according to the model T of large arm gravity compensation s(u, x 0, θ, K), the restriction relation that variable u and θ and spring elongation length x (u, θ) is formed, the final optimum spring connecting point position u obtaining spring opt, drift x 0optwith Optimal Stiffness COEFFICIENT K opt.
Above-mentionedly give large arm mechanism (connecting rod O 2o 3) based on the optimum spring gravity compensation process of simple single-particle optimizing algorithm improved.For little arm mechanism (connecting rod O 3o 4) optimum spring and said process similar, detailed process is described below:
Fig. 4 is that forearm gravity compensation spring 10 carries out the principle schematic of simple spring gravity compensation to little arm mechanism 7, large arm mechanism 1 connecting rod O 2o 3describe, the center of gravity due to universal joint 17 concentrates on the end of little arm mechanism 7, therefore, and little arm mechanism 7 and universal joint 17 connecting rod O 3o 4be described.Forearm reduction driven wheel 8 uses semicircle O 2r xq xbe described, although forearm reduction driven wheel 8 takes turns 2 all around O with large arm reduction driven 2rotate, but each autokinesis is non-interference.O is used in forearm rotating shaft 12 3describe, little arm mechanism 7 is around the rotational angle angle θ of forearm rotating shaft 12 xdescribe, forearm gravity compensation spring 10 tensile elongation Q xp xdescribe, one end is connected to certain 1 P on direct current generator 11 fixed support xon, the other end is connected to the Q of forearm reduction driven wheel 8 xpoint, O 2q xwith O 3o 4parallel, and with forearm reducing gear engaged wheel O 2r xq xannulus external diameter intersects at Q xpoint, the drift of forearm gravity compensation spring 10 is x x0, this spring elongation length Q xp xequal x x, assuming that the stiffness coefficient of this spring is K x, this spring elongation masterpiece is used in O 2the arm of force O at place 2e xlength is h x, when this spring tension is F xs, moment is T xs=F xsh x.Connecting rod O 3o 4corner ∠ O 4o 3l xx, connecting rod O 3o 4gravity torque be T x=B xcos θ x.The radius O of forearm reducing gear engaged wheel 8 2q xlength is r.P xo x0it is parallel that residing plane and base reduction driven take turns plane residing for 13, from O 2place makes vertical line and P xo x0place plane orthogonal intersects, and intersection point is positioned at O x0, wherein O 2o x0length is a, P xo x0length is u x.From Q xpoint makes vertical line and P xo x0place plane orthogonal intersects, and intersection point is positioned at F x, ∠ E xo 2n x=∠ F xq xp xx1, ∠ Q xo 2n xx.At right-angle triangle Δ O 2q xg xin, Q xg xequal rcos θ x, O 2g xlength equals rsin θ x.Then Q xf xlength equals G xo x0length, equals O 2o x0subtract O 2g x, for: a-rsin θ x.P xf xlength equals F xo 0subtract P xo x0, for: rcos θ x-u x.Like this, at right angle Δ Q xf xp xin, spring elongation length Q xp xuse x x(u x, θ x) represent, according to Pythagorean theorem, itself and variable u can be obtained xand θ xrestriction relation be:
x x ( u x , &theta; x ) = ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - - - ( 16 )
Like this, the tensile force of spring is:
F x s = K x ( x x - x x 0 ) = K x &lsqb; ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - x x 0 &rsqb; - - - ( 17 )
Again because P xq xextended line and O 2n xintersect at N xpoint, and O 2n xbe parallel to O x0f x, ∠ O 2n xe xequal ∠ Q xp xf x, all equal pi/2, so ∠ E xo 2n x=∠ F xq xp xx1.So the effect of spring elongation power is to O 2the arm of force O at place 2e xlength equals:
h x=rcos(θ xx1)(18)
So it is F that forearm spring gravity compensation model produces corresponding moment xsh x:
T x s ( u x , x x 0 , &theta; x , K x ) = F x s h x = K x &lsqb; ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - x x 0 &rsqb; r c o s ( &theta; x - &theta; x 1 ) - - - ( 19 )
Wherein, at Δ Q xf xp xin, known Q xf xlength be a-rsin θ x, P xf xfor rcos θ x-u x, be Q according to spring elongation length known in formula (16) again xp x, can obtain:
sin&theta; x 1 = r cos&theta; x - u x ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - - - ( 20 )
cos&theta; x 1 = a - r sin&theta; x ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - - - ( 21 )
In order to enable spring elongation moment full remuneration little arm mechanism gravity torque T x=B xcos θ x, then the compensation gravitational equilibrium moment that spring produces is:
T x = B x cos&theta; x = F x s h x = K x &lsqb; ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - x x 0 &rsqb; r c o s ( &theta; x - &theta; x 1 ) - - - ( 22 )
Further, can show that the stiffness coefficient of spring is:
K x = K x ( u x , x x 0 , &theta; x ) = B x cos&theta; x r &lsqb; ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - x x 0 &rsqb; c o s ( &theta; x - &theta; x 1 ) - - - ( 23 )
Due to K xvalue and u x, x x0and θ xconstitute restriction relation, therefore also can be write K as K (u, x 0, θ).By cos (θ xx1) expand into cos θ xcos θ x1+ sin θ xsin θ x1, and formula (20) and formula (21) are substituted in expansion, then be updated to formula (23) abbreviation, draw:
K x = B x r&phi; x ( a - u x tan&theta; x ) - - - ( 24 )
Wherein,
&phi; x = ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - x x 0 ( r cos&theta; x - u x ) 2 + ( a - r sin&theta; x ) 2 - - - ( 25 )
Known according to formula (24), forearm spring rate K xbe one along with little arm mechanism (connecting rod O 3o 4) corner ∠ O 4o 3l xxthe function of change, wherein: introduce parameter u xand x x0be used for respectively describing the tie point present position of spring and the drift of spring.Gravity compensation is carried out, according to parameter u owing to adopting Hookean spring xand x x0change, fully examination when the tie point of Hookean spring be in diverse location and spring adopt different drifts time, the gravity compensation effect of Hookean spring.Finally, by selecting suitable position u xwith suitable Hookean spring drift x x0, find the Optimal Stiffness coefficient of Hookean spring.By using the Hookean spring of this Optimal Stiffness coefficient, make this Hookean spring fully can compensate little arm mechanism (connecting rod O 3o 4) gravity.
If little arm mechanism (connecting rod O 3o 4) rotational angle θ xscope is [ψ x1, ψ x2], by [ψ x1, ψ x2] interval be evenly divided into n equal portions, ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2, between adjacent two angles, difference is: Δ θ xi=(ψ x1x2)/n, if θ x1, θ x2..., θ xn, θ x (n+1)the moment of the corresponding Hookean spring in place is: T xs1x1), T xs2x2) ..., T xsn(x θ xn), T xs (n+1)x (n+1)), the required corresponding gravity torque compensated of little arm mechanism 7 is: T x1x1), T x2x2) ..., T xnxn), T x (n+1)x (n+1)).Therefore, with aforementioned large arm mechanism (connecting rod O 2o 3) similar, in order to adapt to the discrete programming of particle algorithm, at [ψ x1, ψ x2] angular interval, forearm gravity compensation spring 10 compensates little arm mechanism (connecting rod O 3o 4) the moment average error AVEE of gravity xcan approximate representation be:
AVEE x &ap; 1 n + 1 &Sigma; i = 1 n + 1 | T x s i ( &theta; x i ) - T x i ( &theta; x i ) | - - - ( 26 )
By AVEE xlittle arm mechanism (connecting rod O is compensated as forearm gravity compensation spring 10 3o 4) gravity time, as the fitness function of simple single-particle optimizing algorithm, also referred to as optimization aim.The spring rate K of one group of optimum is found out by the simple single-particle optimizing algorithm improved xopt, optimum spring connecting point u xopt, and the free x of the spring of optimum xopt, this group parameter makes Hookean spring compensate little arm mechanism (connecting rod O 3o 4) the average torque error AVEE of gravity xminimum.
Be x by the spring free length of simple single-particle optimizing algorithm optimum choice improved x0, spring rate K xwith the tie point position u of spring x, concrete steps are described below:
(1) first, Initialize installation is carried out: establish little arm mechanism 7 rotational angle θ xscope is [ψ x1, ψ x2], assuming that be also described as by the population that N number of particle is formed in the simple single-particle optimizing algorithm improved: X=(X 1, X 2..., X n), wherein, X represents population set, X i(i=1,2 ..., N) and represent the position of i-th particle in this population; In this population, the flight position search volume of each particle is 2 gt, and every 1 dimension in this 2 dimension location finding space is expressed as the tie point position u of spring xlLimit is compared with stretching drift x; If particle iteration total degree is M time, so, i-th particle is expressed as position in kth time iteration: wherein, respectively spring connecting point position in kth time iteration of i-th particle and stretching drift ratio, these two parameters are random numbers, and its region of search stated range minimum is respectively u xminand LLimit xmin, maximal value is respectively u xmaxand LLimit xmax; By angle θ xscope [ψ x1, ψ x2] uniform discrete is n part equal intervals: ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2, between adjacent two angles, difference is: Δ θ xi=(ψ x1x2)/n, if θ x1, θ x2..., θ xn, θ x (n+1)the moment of the corresponding Hookean spring in place is: T xs1x1), T xs2x2) ..., T xsn(x θ xn), T xs (n+1)x (n+1)), the required corresponding gravity torque compensated of little arm mechanism 7 is: T x1x1), T x2x2) ..., T xnxn), T x (n+1)x (n+1)), they are all substituted into the fitness function value calculating particle optimized algorithm in formula (26);
(2) establish the position of each particle i in population kth time iteration, first by X ik () substitutes in formula (24), for ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2in each angle value, calculate corresponding K x1, K x2..., K xn, K x (n+1)value; Again by K x1~ K x (n+1)get arithmetic mean after summation to be worth this value represents the stiffness coefficient of the spring in population kth time iteration corresponding to particle i, and will substitution formula solves fitness function value in (26);
(3) in kth time iteration, N number of particles all in population is substituted in fitness function formula (26) respectively according to step (2) and solves average torque error AVEE x, then find fitness values all in all populations in whole k time (the 1st time to kth time) iteration, and find global optimum's fitness value to be: P g ( k ) = ( u x g ( k ) , LLimt x g ( k ) ) T , Wherein, with represent global optimum's spring connecting point in whole k iteration of whole N number of particle in population and global optimum's stretching drift ratio respectively;
(4) X i(k+1)=c 1r 1x i(k)+c 2r 2[P g(k)-X i(k)]+Θ ξ/N as evolution iteration renewal equation, represent that i-th particle in all N number of particles upgrades in kth+1 iteration, wherein, c 1be called cognitive learning rate, generally get constant value 1.49445, c 2be called that social learning leads, also get constant value 1.49445, r 1and r 2the arbitrary constants of two scopes between 0 ~ 1.Θ ξ/N=0 is called skip over, wherein, Θ is an adjustable value, between the position maximal value of its span all particles in 0 to population, ξ is a stochastic variable, and its scope is certain the random site value in the band of position specified by all particles.N is the number of population; In the present invention, we choose Θ ξ/N=0;
(5) boundary condition agreement: if the population be made up of N number of particle, after the iterative computation that kth is secondary, the position X of i-th particle ik certain the one dimension position range in () is beyond the interval of specifying: the minimum value u respectively of the minimum value region of search scope in this interval xminand LLimit xmin, maximal value is respectively u xmaxand LLimit xmax.So position X of i-th particle ik certain one dimension of () has exceeded minimum edge boundary treaty fixed condition, must redesignated as u xminor LLimit xmin.If, the position X of i-th particle ik certain one dimension of () has exceeded maximum boundary agreed terms, then this dimension location variable must redesignated as u xmaxand LLimit xmax;
(6) if evolution number of iterations reaches maximum iteration time M, then finishing iteration, finds the spring connecting point position u of the global optimum after all evolution iteration xoptlLimit is compared with optimum stretching drift xopt; Otherwise, continue to get back to step (2) order execution afterwards;
(7) according to forearm gravity compensation model T xs(u x, x x0, θ x, K x), variable u xand θ xwith spring elongation length x x(u x, θ x) restriction relation that formed, the final optimum spring connecting point position u obtaining spring xopt, drift x xoptwith Optimal Stiffness COEFFICIENT K xopt.
Feature of the present invention is that the simple single-particle optimizing algorithm iteration optimization by improving calculates the one group of optimum spring connecting point position finding optimum, optimum spring free length, optimum spring rate, thus complete the design of the simple spring gravity compensation optimizing of force feedback equipment large arm and forearm.

Claims (1)

1. the optimum spring gravity compensation method of force feedback equipment, is characterized in that:
Step one, large arm gravity compensation spring (4) one end are connected to large arm reduction driven wheel (2) end, the other end is connected on direct current generator (5) fixed support, for compensating large arm mechanism (1) gravity;
Step 2, set up the model T of the large arm gravity compensation of non-linear constrain relation s(u, x 0, θ, K), wherein, u is the tie point position that large arm gravity compensation spring (4) is connected on direct current generator (5) fixed support, x 0for the drift of large arm gravity compensation spring (4), θ be large arm mechanism (1) rotate time and horizontal plane angle, K is the stiffness coefficient of large arm gravity compensation spring (4), due to value and u, x of K 0constitute restriction relation with θ, therefore K also can be write as K (u, x 0, θ); In addition, the restriction relation that exists of spring elongation length x (u, θ) and u and θ;
Step 3, for large arm gravity compensation spring (4), introduce stretching drift than LLimit, using tie point position u and LLimt as optimized amount, average torque error AVEE is as the fitness function of optimization; Wherein, LLimit is large arm gravity compensation spring (4) tensile elongation x (u, θ) and spring free length x 0ratio;
The simple single-particle optimizing algorithm that step 4, use are improved carries out iteration optimization, obtains optimum large arm gravity compensation spring (4) tie point position u opt, spring optimum drift x optwith Optimal Stiffness COEFFICIENT K opt, realize the simple spring gravity Compensation Design of optimum of large arm mechanism (1), concrete steps are as follows:
A () first, carries out Initialize installation: set large arm mechanism (1) rotational angle θ scope as [ψ 1, ψ 2], assuming that the population that the N number of particle in the simple single-particle optimizing algorithm improved is formed is described as: X=(X 1, X 2..., X n), wherein, X represents population set, X i(i=1,2 ..., N) and represent the position of i-th particle in this population; In this population, the flight position search volume of each particle is 2 gt, and every 1 dimension in this 2 dimension location finding space is expressed as the tie point position u of spring and stretching drift compares LLimt; If particle iteration total degree is M time, so, i-th particle is expressed as position in kth time iteration: X i(k)=(u i(k), LLimt i(k)) t, wherein, u i(k), LLimt ik () be spring connecting point position in kth time iteration of i-th particle and stretching drift ratio respectively, these two parameters are random numbers, and its region of search stated range minimum is respectively u minand LLimit min, maximal value is respectively u maxand LLimit max; By angle θ scope [ψ 1, ψ 2] uniform discrete is n part equal intervals: ψ 11< θ 2< ... < θ n< θ n+12, between adjacent two angles, difference is: Δ θ i=(ψ 21)/n, if θ 1, θ 2..., θ n, θ n+1the moment of the corresponding Hookean spring in place is: T s11), T s22) ..., T snn), T sn+1n+1), the required corresponding gravity torque compensated of large arm mechanism (1) is: T 11), T 22) ..., T nn), T n+1n+1), they are all substituted into the fitness function value of middle calculating particle optimized algorithm;
B () establishes X i(k)=(u i(k), LLmit i(k)) tthe position of each particle i in population kth time iteration, first by X ik () substitutes into stiffness coefficient K (u, the x of large arm gravity compensation spring (4) 0, θ) in, for ψ 11< θ 2< ... < θ n< θ n+12in each angle value, calculate corresponding K 1, K 2..., K n, K n+1value; Again by K 1~ K n+1get arithmetic mean after summation to be worth this value represents the stiffness coefficient of the spring in population kth time iteration corresponding to particle i, and will substitute into in solve fitness function value;
In (c) kth time iteration, N number of particles all in population is substituted into fitness function formula respectively according to step (b) in solve average torque error AVEE, then find fitness values all in all populations in whole k time (the 1st time to kth time) iteration, and find global optimum's fitness value to be P g(k), wherein P g(k)=(u g(k), LLmit g(k)) t, u g(k) and LLmit gk () represents global optimum's spring connecting point in population in whole k the iteration of whole N number of particle and global optimum's stretching drift ratio respectively;
(d) X i(k+1)=c 1r 1x i(k)+c 2r 2[P g(k)-X i(k)]+Θ ξ/N as evolution iteration renewal equation, represent that i-th particle in all N number of particles upgrades in kth+1 iteration, wherein, c 1be called cognitive learning rate, generally get constant value 1.49445, c 2be called that social learning leads, also get constant value 1.49445, r 1and r 2the arbitrary constants of two scopes between 0 ~ 1; Θ ξ/N=0 is called skip over, wherein, Θ is an adjustable value, between the position maximal value of its span all particles in 0 to population, ξ is a stochastic variable, and its scope is certain the random site value in the band of position specified by all particles; N is the number of population; In the present invention, we choose Θ ξ/N=0;
E () boundary condition is arranged: if the population be made up of N number of particle, after the iterative computation that kth is secondary, and the position X of i-th particle ik certain the one dimension position range in () is beyond the interval of specifying: the minimum value u respectively of the minimum value region of search scope in this interval minand LLimit min, maximal value is respectively u maxand LLimit max; So position X of i-th particle ik certain one dimension of () has exceeded minimum edge boundary treaty fixed condition, must redesignated as u minor LLimit min; If, the position X of i-th particle ik certain one dimension of () has exceeded maximum boundary agreed terms, then this dimension location variable must redesignated as u maxand LLimit max;
If f () evolution number of iterations reaches maximum iteration time M, then finishing iteration, find the spring connecting point position u of the global optimum after all evolution iteration optlLimit is compared with optimum stretching drift opt; Otherwise, continue to get back to step (b) order execution afterwards;
G () is according to large arm gravity compensation model T s(u, x 0, θ, K), the restriction relation that variable u and θ and spring elongation length x (u, θ) is formed, the final optimum spring connecting point position u obtaining spring opt, drift x optwith Optimal Stiffness COEFFICIENT K opt;
Step 5, forearm gravity compensation spring (10) one end are connected to forearm reduction driven wheel (8) end, the other end is connected on direct current generator (11) fixed support, for compensating little arm mechanism (7) gravity, wherein, universal joint (17) is arranged on little arm mechanism (7) end, the center of gravity of universal joint (17) concentrates on the end of little arm mechanism (7), and forearm gravity compensation spring (10) compensates little arm mechanism (7) gravity and comprises gravity suffered by gravity suffered by universal joint and forearm self;
Step 6, set up the model T of the forearm gravity compensation of non-linear constrain relation xs(u x, x x0, θ x, K x), wherein, u xfor forearm gravity compensation spring (10) is connected to the tie point position on direct current generator (11) fixed support, x x0for the drift of forearm gravity compensation spring (10), θ xfor when little arm mechanism (7) rotates and horizontal plane angle, K xfor the stiffness coefficient of forearm gravity compensation spring (10), due to K xvalue and u x, x x0and θ xconstitute restriction relation, therefore K xalso K can be write as x(u x, x x0, θ x); In addition, spring elongation length x x(u x, θ x) and u xand θ xthe restriction relation existed;
Step 7, for forearm gravity compensation spring (10), also introduce stretching drift and compare LLimit x, by tie point position u xwith LLimit xas optimized amount, average torque error AVEE xas the fitness function optimized; Wherein, xLLimit is forearm gravity compensation spring (10) tensile elongation x x(u x, θ x) and spring free length x x0ratio;
The simple single-particle optimizing algorithm that step 8, use are improved carries out iteration optimization, obtains optimum forearm gravity compensation spring (10) tie point position u xopt, spring optimum drift x xoptwith Optimal Stiffness COEFFICIENT K xopt, realize the simple spring gravity Compensation Design of optimum of little arm mechanism (7), concrete steps are as follows:
(aa) first, Initialize installation is carried out: establish little arm mechanism (7) rotational angle θ xscope is [ψ x1, ψ x2], assuming that be also described as by the population that N number of particle is formed in the simple single-particle optimizing algorithm improved: X=(X 1, X 2..., X n), wherein, X represents population set, X i(i=1,2 ..., N) and represent the position of i-th particle in this population; In this population, the flight position search volume of each particle is 2 gt, and every 1 dimension in this 2 dimension location finding space is expressed as the tie point position u of spring xlLimit is compared with stretching drift x; If particle iteration total degree is M time, so, i-th particle is expressed as position in kth time iteration: wherein, respectively spring connecting point position in kth time iteration of i-th particle and stretching drift ratio, these two parameters are random numbers, and its region of search stated range minimum is respectively u xminand LLimit xmin, maximal value is respectively u xmaxand LLimit xmax; By angle θ xscope [ψ x1, ψ x2] uniform discrete is n part equal intervals: ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2, between adjacent two angles, difference is: Δ θ xi=(ψ x1x2)/n, if θ x1, θ x2..., θ xn, θ x (n+1) moment of the corresponding Hookean spring in place is: T xs1x1), T xs2x2) ..., T xsn(x θ xn), T xs (n+1)x (n+1)), the required corresponding gravity torque compensated of little arm mechanism (7) is: T x1x1), T x2x2) ..., T xnxn), T x (n+1)x (n+1)), they are all substituted into the fitness function value of middle calculating particle optimized algorithm;
(bb) establish the position of each particle i in population kth time iteration, first by X ik () substitutes into the stiffness coefficient K of forearm gravity compensation spring (10) x(u x, x x0, θ x) in, for ψ x1x1< θ x2< ... < θ xn< θ x (n+1)x2in each angle value, calculate corresponding K x1, K x2..., K xn, K x (n+1)value; Again by K x1~ K x (n+1)get arithmetic mean after summation to be worth this value represents the stiffness coefficient of the spring in population kth time iteration corresponding to particle i, and will substitute into in solve fitness function value;
(cc) in kth time iteration, N number of particles all in population is substituted into fitness function formula respectively according to step (bb) in solve average torque error AVEE x, then find fitness values all in all populations in whole k time (the 1st time to kth time) iteration, and find global optimum's fitness value to be P g(k), wherein P g ( k ) = ( u x g ( k ) , LLimt x g ( k ) ) T , Wherein, with represent global optimum's spring connecting point in whole k iteration of whole N number of particle in population and global optimum's stretching drift ratio respectively;
(dd) X i(k+1)=c 1r 1x i(k)+c 2r 2[P g(k)-X i(k)]+Θ ξ/N as evolution iteration renewal equation, represent that i-th particle in all N number of particles upgrades in kth+1 iteration, wherein, c 1be called cognitive learning rate, generally get constant value 1.49445, c 2be called that social learning leads, also get constant value 1.49445, r 1and r 2the arbitrary constants of two scopes between 0 ~ 1; Θ ξ/N=0 is called skip over, wherein, Θ is an adjustable value, between the position maximal value of its span all particles in 0 to population, ξ is a stochastic variable, and its scope is certain the random site value in the band of position specified by all particles; N is the number of population; In the present invention, we choose Θ ξ/N=0;
(ee) boundary condition agreement: if the population be made up of N number of particle, after the iterative computation that kth is secondary, the position X of i-th particle ik certain the one dimension position range in () is beyond the interval of specifying: the minimum value u respectively of the minimum value region of search scope in this interval xminand LLimit xmin, maximal value is respectively u xmaxand LLimit xmax; So position X of i-th particle ik certain one dimension of () has exceeded minimum edge boundary treaty fixed condition, must redesignated as u xminor LLimit xmin; If, the position X of i-th particle ik certain one dimension of () has exceeded maximum boundary agreed terms, then this dimension location variable must redesignated as u xmaxand LLimit xmax;
(ff) if evolution number of iterations reaches maximum iteration time M, then finishing iteration, finds the spring connecting point position u of the global optimum after all evolution iteration xoptlLimit is compared with optimum stretching drift xopt; Otherwise, continue to get back to step (bb) order execution afterwards;
(gg) according to forearm gravity compensation model T xs(u x, x x0, θ x, K x), variable u xand θ xwith spring elongation length x x(u x, θ x) restriction relation that formed, the final optimum spring connecting point position u obtaining spring xopt, drift x xoptwith Optimal Stiffness COEFFICIENT K xopt.
CN201610015837.2A 2016-01-12 2016-01-12 A kind of optimal spring gravity compensation method of force feedback equipment Active CN105550466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610015837.2A CN105550466B (en) 2016-01-12 2016-01-12 A kind of optimal spring gravity compensation method of force feedback equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610015837.2A CN105550466B (en) 2016-01-12 2016-01-12 A kind of optimal spring gravity compensation method of force feedback equipment

Publications (2)

Publication Number Publication Date
CN105550466A true CN105550466A (en) 2016-05-04
CN105550466B CN105550466B (en) 2018-08-17

Family

ID=55829655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610015837.2A Active CN105550466B (en) 2016-01-12 2016-01-12 A kind of optimal spring gravity compensation method of force feedback equipment

Country Status (1)

Country Link
CN (1) CN105550466B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454222A (en) * 2016-08-31 2017-02-22 中林信达(北京)科技信息有限责任公司 Mechanism for compensating gravitational torque generated by vertical rotary component
CN108297130A (en) * 2018-01-10 2018-07-20 浙江大学 A kind of weight losing method for robot palletizer
CN109333528A (en) * 2018-09-19 2019-02-15 欣旺达电子股份有限公司 Universal 6DOF force feedback equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110066406A1 (en) * 2009-09-15 2011-03-17 Chung Yuan Christian University Method for Generating Real-Time Haptic Response Information for a Haptic Simulating Device
CN102320040A (en) * 2011-08-11 2012-01-18 南昌大学 Force feedback interactive device for automatically regulating balance of dead weight
CN202367759U (en) * 2011-11-18 2012-08-08 南昌大学 Haptic interaction device with automatic gravity compensating mechanism

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110066406A1 (en) * 2009-09-15 2011-03-17 Chung Yuan Christian University Method for Generating Real-Time Haptic Response Information for a Haptic Simulating Device
CN102320040A (en) * 2011-08-11 2012-01-18 南昌大学 Force feedback interactive device for automatically regulating balance of dead weight
CN202367759U (en) * 2011-11-18 2012-08-08 南昌大学 Haptic interaction device with automatic gravity compensating mechanism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHUNQUAN LI等: "Design and Implementation of a haptic interface device with Auto-Regulation gravity compensation", 《IEEE INTERNATIONAL WORKSHOP ON HAPTIC AUDIO VISUAL ENVIRONMENTS AND GAMES》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454222A (en) * 2016-08-31 2017-02-22 中林信达(北京)科技信息有限责任公司 Mechanism for compensating gravitational torque generated by vertical rotary component
CN106454222B (en) * 2016-08-31 2019-07-09 中林信达(北京)科技信息有限责任公司 A kind of mechanism that the gravitational moment generated to vertical rotatable parts is compensated
CN108297130A (en) * 2018-01-10 2018-07-20 浙江大学 A kind of weight losing method for robot palletizer
CN108297130B (en) * 2018-01-10 2020-09-01 浙江大学 Weight reduction method for palletizing robot
CN109333528A (en) * 2018-09-19 2019-02-15 欣旺达电子股份有限公司 Universal 6DOF force feedback equipment
CN109333528B (en) * 2018-09-19 2022-04-22 深圳普瑞赛思检测技术有限公司 Universal 6-degree-of-freedom force feedback device

Also Published As

Publication number Publication date
CN105550466B (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN108052760B (en) Nonlinear dynamics calculation method for gear pair
CN105550466A (en) Force feedback equipment optimum spring gravity compensation method
Zi et al. Analysis and control of the cable-supporting system including actuator dynamics
Sheveleva et al. Algorithms for analysis of meshing and contact of spiral bevel gears
CN106426164A (en) Redundancy dual-mechanical-arm multi-index coordinate exercise planning method
CN104024694A (en) Method for initially setting position of origin of link actuators, and link actuator
CN104535027A (en) Robot precision compensation method for variable-parameter error recognition
CN111783201B (en) Rapid analysis method for dynamic characteristics of three-span self-anchored suspension bridge
CN107127738A (en) Hard and soft blend decouples the restructural redundant drive broad sense parallel connection mechanism of variation rigidity
Walha et al. Effects of eccentricity defect on the nonlinear dynamic behavior of the mechanism clutch-helical two stage gear
CN108331899B (en) A kind of RV retarder cycloid gear profile modification design method and system
CN102672714A (en) High-rigidity high-precision five-coordinate parallel power head
CN111625758A (en) Planetary gear time-varying meshing stiffness calculation method based on tooth profile correction method
CN104819267B (en) Harmonic gear device adopting non-interference and wide range meshing tooth profile
CN105619449B (en) A kind of zero drift spring gravity compensation method based on force feedback equipment
CN109866224A (en) A kind of robot Jacobian matrix calculation method, device and storage medium
CN106326575B (en) A kind of non-circular gear detection method based on coordinate method
Ding et al. Position-parameter selection criterion for a helix-curve meshing-wheel mechanism based on sliding rates
CN202833950U (en) Segmented deformation elliptical gear
Xu et al. Modeling and control analysis of electric driving system considering gear friction based on dual-inertia system
US20190107188A1 (en) Method of developing spline profile
CN115470584A (en) Dynamics modeling method applied to planetary gear and rolling bearing coupling system
CN201944213U (en) Multivariant space variable rod length-variable torsional angle mechanism
CN107813312A (en) A kind of drive lacking high-freedom degree mechanical arm passive joint angle adjusting method
CN103793564B (en) A kind of system variant computational methods of gear

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant