wbc
AccelerationSceneTSID.hpp
Go to the documentation of this file.
1#ifndef WBCACCELERATIONSCENETSID_HPP
2#define WBCACCELERATIONSCENETSID_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 }
59
64 virtual const HierarchicalQP& update();
65
70 virtual const base::commands::Joints& solve(const HierarchicalQP& hqp);
71
75 virtual const TasksStatus &updateTasksStatus();
76
80 const base::samples::Wrenches& getContactWrenches(){return contact_wrenches;}
81
87
92};
93
94} // namespace wbc
95
96#endif
Acceleration-based implementation of the WBC Scene. It sets up and solves the following problem:
Definition AccelerationSceneTSID.hpp:39
AccelerationSceneTSID(RobotModelPtr robot_model, QPSolverPtr solver, const double dt)
Definition AccelerationSceneTSID.cpp:18
double hessian_regularizer
Definition AccelerationSceneTSID.hpp:46
virtual const HierarchicalQP & update()
Update the wbc scene and return the (updated) optimization problem.
Definition AccelerationSceneTSID.cpp:48
base::samples::Wrenches contact_wrenches
Definition AccelerationSceneTSID.hpp:45
static SceneRegistry< AccelerationSceneTSID > reg
Definition AccelerationSceneTSID.hpp:41
double getHessianRegularizer()
Return the current value of hessian regularizer.
Definition AccelerationSceneTSID.hpp:91
const base::samples::Wrenches & getContactWrenches()
Get estimated contact wrenches.
Definition AccelerationSceneTSID.hpp:80
base::Time stamp
Definition AccelerationSceneTSID.hpp:53
base::VectorXd solver_output_acc
Definition AccelerationSceneTSID.hpp:44
virtual const TasksStatus & updateTasksStatus()
evaluateTasks Evaluate the fulfillment of the tasks given the current robot state and the solver outp...
Definition AccelerationSceneTSID.cpp:181
virtual ~AccelerationSceneTSID()
Definition AccelerationSceneTSID.hpp:57
virtual TaskPtr createTask(const TaskConfig &config)
Definition AccelerationSceneTSID.cpp:34
void setHessianRegularizer(const double reg)
setHessianRegularizer
Definition AccelerationSceneTSID.hpp:86
virtual const base::commands::Joints & solve(const HierarchicalQP &hqp)
Solve the given optimization problem.
Definition AccelerationSceneTSID.cpp:137
base::VectorXd robot_acc
Definition AccelerationSceneTSID.hpp:44
Base class for all wbc scenes.
Definition Scene.hpp:16
HierarchicalQP hqp
Definition Scene.hpp:23
RobotModelPtr robot_model
Definition Scene.hpp:18
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