movement_primitives.dmp.CouplingTermDualCartesianDistance

class movement_primitives.dmp.CouplingTermDualCartesianDistance(desired_distance, lf, k=1.0, c1=1.0, c2=30.0)

Bases: object

Couples distance between 3D positions of a dual Cartesian DMP.

For DualCartesianDMP.

Parameters:
desired_distancefloat

Desired distance between components.

lfarray-like, shape (2,)

Binary values that indicate which DMP(s) will be adapted. The variable lf defines the relation leader-follower. If lf[0] = lf[1], then both robots will adapt their trajectories to follow average trajectories at the defined distance dd between them [..]. On the other hand, if lf[0] = 0 and lf[1] = 1, only DMP1 will change the trajectory to match the trajectory of DMP0, again at the distance dd and again only after learning. Vice versa applies as well. Leader-follower relation can be determined by a higher-level planner [..].

kfloat, optional (default: 1)

Virtual spring constant that couples the positions.

c1float, optional (default: 100)

Scaling factor for spring forces in the velocity component and acceleration component.

c2float, optional (default: 30)

Scaling factor for spring forces in the acceleration component.

Methods

coupling

__init__(desired_distance, lf, k=1.0, c1=1.0, c2=30.0)

Methods

__init__(desired_distance, lf[, k, c1, c2])

coupling(y[, yd])