movement_primitives.dmp.DMPBase

class movement_primitives.dmp.DMPBase(n_pos_dims, n_vel_dims)

Bases: PointToPointMovement

Base class of Dynamical Movement Primitives (DMPs).

Parameters:
n_pos_dimsint

Number of dimensions of the position that will be controlled.

n_vel_dimsint

Number of dimensions of the velocity that will be controlled.

Methods

configure([t, start_y, start_yd, start_ydd, ...])

Set meta parameters.

n_steps_open_loop(last_y, last_yd, n_steps)

Perform 'n_steps' steps.

reset()

Reset DMP to initial state and time.

step(last_y, last_yd)

Perform step.

__init__(n_pos_dims, n_vel_dims)

Methods

__init__(n_pos_dims, n_vel_dims)

configure([t, start_y, start_yd, start_ydd, ...])

Set meta parameters.

n_steps_open_loop(last_y, last_yd, n_steps)

Perform 'n_steps' steps.

reset()

Reset DMP to initial state and time.

step(last_y, last_yd)

Perform step.

configure(t=None, start_y=None, start_yd=None, start_ydd=None, goal_y=None, goal_yd=None, goal_ydd=None)

Set meta parameters.

Parameters:
tfloat, optional

Time at current step.

start_yarray, shape (n_dims,)

Initial state.

start_ydarray, shape (n_vel_dims,)

Initial velocity.

start_yddarray, shape (n_vel_dims,)

Initial acceleration.

goal_yarray, shape (n_dims,)

Goal state.

goal_ydarray, shape (n_vel_dims,)

Goal velocity.

goal_yddarray, shape (n_vel_dims,)

Goal acceleration.

n_steps_open_loop(last_y, last_yd, n_steps)

Perform ‘n_steps’ steps.

Parameters:
last_yarray, shape (n_dims,)

Last state.

last_ydarray, shape (n_dims,)

Last time derivative of state (e.g., velocity).

n_stepsint

Number of steps.

Returns:
yarray, shape (n_dims,)

Next state.

ydarray, shape (n_dims,)

Next time derivative of state (e.g., velocity).

reset()

Reset DMP to initial state and time.

abstract step(last_y, last_yd)

Perform step.

Parameters:
last_yarray, shape (n_dims,)

Last state.

last_ydarray, shape (n_dims,)

Last time derivative of state (e.g., velocity).

Returns:
yarray, shape (n_dims,)

Next state.

ydarray, shape (n_dims,)

Next time derivative of state (e.g., velocity).