wbc
AccelerationSceneReducedTSID.hpp
Go to the documentation of this file.
1#ifndef WBCACCELERATIONSCENEREDUCEDTSID_HPP
2#define WBCACCELERATIONSCENEREDUCEDTSID_HPP
3
5#include <base/samples/Wrenches.hpp>
6
7namespace wbc{
8
40protected:
42
43 // Helper variables
45 base::samples::Wrenches contact_wrenches;
47
51 virtual TaskPtr createTask(const TaskConfig &config);
52
53 base::Time stamp;
54
55public:
58
63 virtual const HierarchicalQP& update();
64
69 virtual const base::commands::Joints& solve(const HierarchicalQP& hqp);
70
74 virtual const TasksStatus &updateTasksStatus();
75
79 const base::samples::Wrenches& getContactWrenches(){return contact_wrenches;}
80
86
91
92 const base::VectorXd& getSolverOutputRaw() const { return solver_output; }
93};
94
95} // namespace wbc
96
97#endif
Acceleration-based implementation of the WBC Scene. It sets up and solves the following problem:
Definition AccelerationSceneReducedTSID.hpp:39
void setHessianRegularizer(const double reg)
setHessianRegularizer
Definition AccelerationSceneReducedTSID.hpp:85
virtual const HierarchicalQP & update()
Update the wbc scene and return the (updated) optimization problem.
Definition AccelerationSceneReducedTSID.cpp:51
virtual ~AccelerationSceneReducedTSID()
Definition AccelerationSceneReducedTSID.hpp:57
virtual const base::commands::Joints & solve(const HierarchicalQP &hqp)
Solve the given optimization problem.
Definition AccelerationSceneReducedTSID.cpp:148
const base::VectorXd & getSolverOutputRaw() const
Definition AccelerationSceneReducedTSID.hpp:92
static SceneRegistry< AccelerationSceneReducedTSID > reg
Definition AccelerationSceneReducedTSID.hpp:41
virtual const TasksStatus & updateTasksStatus()
evaluateTasks Evaluate the fulfillment of the tasks given the current robot state and the solver outp...
Definition AccelerationSceneReducedTSID.cpp:205
double hessian_regularizer
Definition AccelerationSceneReducedTSID.hpp:46
base::samples::Wrenches contact_wrenches
Definition AccelerationSceneReducedTSID.hpp:45
double getHessianRegularizer()
Return the current value of hessian regularizer.
Definition AccelerationSceneReducedTSID.hpp:90
base::VectorXd robot_acc
Definition AccelerationSceneReducedTSID.hpp:44
base::Time stamp
Definition AccelerationSceneReducedTSID.hpp:53
virtual TaskPtr createTask(const TaskConfig &config)
Definition AccelerationSceneReducedTSID.cpp:37
base::VectorXd solver_output_acc
Definition AccelerationSceneReducedTSID.hpp:44
AccelerationSceneReducedTSID(RobotModelPtr robot_model, QPSolverPtr solver, const double dt)
Definition AccelerationSceneReducedTSID.cpp:20
const base::samples::Wrenches & getContactWrenches()
Get estimated contact wrenches.
Definition AccelerationSceneReducedTSID.hpp:79
Base class for all wbc scenes.
Definition Scene.hpp:16
HierarchicalQP hqp
Definition Scene.hpp:23
RobotModelPtr robot_model
Definition Scene.hpp:18
base::VectorXd solver_output
Definition Scene.hpp:29
QPSolverPtr solver
Definition Scene.hpp:19
Defines a task in the whole body control problem. Valid Configurations are e.g.
Definition TaskConfig.hpp:39
Definition TaskStatus.hpp:40
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< Task > TaskPtr
Definition Task.hpp:93
std::shared_ptr< QPSolver > QPSolverPtr
Definition QPSolver.hpp:31
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:204
Describes a hierarchy of quadratic programs.
Definition QuadraticProgram.hpp:57
Definition Scene.hpp:207