Discrete-time reference of the positions of swinging contact frames.
More...
#include <discrete_time_swing_foot_ref.hpp>
Discrete-time reference of the positions of swinging contact frames.
◆ DiscreteTimeSwingFootRef()
robotoc::DiscreteTimeSwingFootRef::DiscreteTimeSwingFootRef |
( |
const int |
contact_index, |
|
|
const double |
step_height |
|
) |
| |
Constructor.
- Parameters
-
[in] | contact_index | Contact index of interest. |
[in] | step_height | The step height of the gait. |
◆ ~DiscreteTimeSwingFootRef()
robotoc::DiscreteTimeSwingFootRef::~DiscreteTimeSwingFootRef |
( |
| ) |
|
◆ isActive()
bool robotoc::DiscreteTimeSwingFootRef::isActive |
( |
const GridInfo & |
grid_info | ) |
const |
|
overridevirtual |
Checks wheather the cost is active or not at the specified time.
- Parameters
-
- Returns
- true if the cost is active at time t. false if not.
Implements robotoc::TaskSpace3DRefBase.
◆ setSwingFootRef() [1/2]
void robotoc::DiscreteTimeSwingFootRef::setSwingFootRef |
( |
const std::shared_ptr< ContactSequence > & |
contact_sequence | ) |
|
Set the reference contact positions from the contact sequence. The first and last contact phases must have active contacts.
- Parameters
-
[in] | contact_sequence | Contact sequence. |
◆ setSwingFootRef() [2/2]
void robotoc::DiscreteTimeSwingFootRef::setSwingFootRef |
( |
const std::shared_ptr< ContactSequence > & |
contact_sequence, |
|
|
const Eigen::Vector3d & |
first_contact_position, |
|
|
const Eigen::Vector3d & |
last_contact_position, |
|
|
const double |
first_rate = 0 , |
|
|
const double |
last_rate = 0 |
|
) |
| |
Set the reference contact positions from the contact sequence. The first and last contact phases must have active contacts. Also, the position refs of the first and last contact phases are defined by user.
- Parameters
-
[in] | contact_sequence | Contact sequence. |
[in] | first_contact_position | Reference contact position at the first contact phase. |
[in] | last_contact_position | Reference contact position at the last contact phase. |
[in] | first_rate | Rate of the first contact position (0 <= rate <= 1). Default is 0. |
[in] | last_rate | Rate of the last contact position (0 <= rate <= 1). Default is 0. |
◆ updateRef()
void robotoc::DiscreteTimeSwingFootRef::updateRef |
( |
const GridInfo & |
grid_info, |
|
|
Eigen::VectorXd & |
ref_3d |
|
) |
| const |
|
overridevirtual |
Computes the reference task-space position.
- Parameters
-
[in] | grid_info | Grid info. |
[in] | ref_3d | Reference position. Size is 3. |
Implements robotoc::TaskSpace3DRefBase.
The documentation for this class was generated from the following file: