wbc
|
Base class for all wbc scenes. More...
#include <Scene.hpp>
Public Member Functions | |
Scene (RobotModelPtr robot_model, QPSolverPtr solver, const double dt) | |
~Scene () | |
virtual bool | configure (const std::vector< TaskPtr > &tasks)=0 |
Configure the WBC scene. Create tasks and sort them by priority given the task config. | |
virtual const HierarchicalQP & | update ()=0 |
Update the wbc scene and return the (updated) optimization problem. | |
virtual const types::JointCommand & | solve (const HierarchicalQP &hqp)=0 |
Solve the given optimization problem. | |
RobotModelPtr | getRobotModel () |
Return the current robot model. | |
QPSolverPtr | getSolver () |
Return the current solver. | |
const Eigen::VectorXd & | getSolverOutputRaw () const |
Get current solver output in raw values. | |
void | setHessianRegularizer (const double reg) |
setHessianRegularizer | |
double | getHessianRegularizer () |
Return the current value of hessian regularizer. | |
const std::vector< types::Wrench > & | getContactWrenches () |
Get estimated contact wrenches. | |
Protected Attributes | |
RobotModelPtr | robot_model |
QPSolverPtr | solver |
Eigen::VectorXd | solver_output |
double | hessian_regularizer |
std::vector< types::Wrench > | contact_wrenches |
Base class for all wbc scenes.
wbc::Scene::Scene | ( | RobotModelPtr | robot_model, |
QPSolverPtr | solver, | ||
const double | dt ) |
wbc::Scene::~Scene | ( | ) |
|
pure virtual |
Configure the WBC scene. Create tasks and sort them by priority given the task config.
tasks | Tasks used in optimization function. Size has to be > 0. All tasks have to be valid. See tasks and TaskConfig.hpp for more details. |
Implemented in wbc::AccelerationSceneReducedTSID, wbc::AccelerationSceneTSID, and wbc::VelocitySceneQP.
|
inline |
Get estimated contact wrenches.
|
inline |
Return the current value of hessian regularizer.
|
inline |
Return the current robot model.
|
inline |
Return the current solver.
|
inline |
Get current solver output in raw values.
|
inline |
setHessianRegularizer
reg | This value is added to the diagonal of the Hessian matrix inside the QP to reduce the risk of infeasibility. Default is 1e-8 |
|
pure virtual |
Solve the given optimization problem.
Implemented in wbc::AccelerationSceneReducedTSID, wbc::AccelerationSceneTSID, and wbc::VelocitySceneQP.
|
pure virtual |
Update the wbc scene and return the (updated) optimization problem.
Implemented in wbc::AccelerationSceneReducedTSID, wbc::AccelerationSceneTSID, and wbc::VelocitySceneQP.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |