Main Content

sampleControl

Class: nav.StatePropagator
Namespace: nav

Generate control command and step count

Since R2021b

Syntax

[u,steps] = sampleControl(spObj,q0,u0,qTgt)

Description

[u,steps] = sampleControl(spObj,q0,u0,qTgt) generates a series of control commands and number of steps to move from the current state q0 with control command u0 towards the target state qTgt

Input Arguments

expand all

State propagator object, specified as a handle from a child class of nav.StatePropagator.

Initial state of the system, specified as an s-element vector, where s is the number of state variables in the state space.

Initial control input, specified as an c-element vector, where c is the number of control inputs.

Target state of the system, specified as an s-element vector, where s is the number of state variables in the state space.

Output Arguments

expand all

Control inputs for propagating states, specified as an s-element vector, where c is the number of control inputs.

Number of steps between each state and control input, specified as an n-element vector of positive integers.

Attributes

Abstracttrue

To learn about attributes of methods, see Method Attributes.

Version History

Introduced in R2021b