bolero.representation
.DMPSequence¶bolero.representation.
DMPSequence
(n_dmps=1, execution_times=None, dt=0.01, n_features=None, subgoals=None, learn_goal_velocities=False, initial_weights=None)[source]¶Sequence of DMPs.
Each DMP is initialized at the last phase of its predecessor to ensure smooth transitions.
Parameters: |
|
---|
__init__
(n_dmps=1, execution_times=None, dt=0.01, n_features=None, subgoals=None, learn_goal_velocities=False, initial_weights=None)[source]¶get_args
()¶Get parameters for this estimator.
Returns: |
|
---|
get_outputs
(outputs)[source]¶Get desired next system state.
Parameters: |
|
---|
get_subgoal
(idx)[source]¶Get subgoal.
Parameters: |
|
---|---|
Returns: |
|
get_subgoal_velocity
(idx)[source]¶Get subgoal.
Parameters: |
|
---|---|
Returns: |
|
init
(n_inputs, n_outputs)[source]¶Initialize the behavior.
Parameters: |
|
---|
set_inputs
(inputs)[source]¶Set current system state.
Parameters: |
|
---|
set_meta_parameters
(keys, meta_parameters)[source]¶Set DMP meta parameters.
Required meta-parameters
Parameters: |
|
---|
set_subgoal
(idx, subgoal)[source]¶Set subgoal manually.
Parameters: |
|
---|
set_subgoal_velocity
(idx, subgoal_vel)[source]¶Set subgoal velocity manually.
Parameters: |
|
---|
trajectory
()[source]¶Generate trajectory represented by the sequence of DMPs in open loop.
The function can be used for debugging purposes.
Returns: |
|
---|