wbc
AccelerationScene.hpp
Go to the documentation of this file.
1#ifndef ACCELERATIONSCENE_HPP
2#define ACCELERATIONSCENE_HPP
3
5
6namespace wbc{
7
8
27class AccelerationScene : public Scene{
28protected:
30
31 base::VectorXd robot_acc;
32
36 virtual TaskPtr createTask(const TaskConfig &config);
37
38 base::Time stamp;
39
40public:
43
48 virtual const HierarchicalQP& update();
49
54 virtual const base::commands::Joints& solve(const HierarchicalQP& hqp);
55
59 virtual const TasksStatus &updateTasksStatus();
60};
61
62} // namespace wbc
63
64#endif
Acceleration-based implementation of the WBC Scene. It sets up and solves the following optimization ...
Definition AccelerationScene.hpp:27
base::VectorXd robot_acc
Definition AccelerationScene.hpp:31
virtual ~AccelerationScene()
Definition AccelerationScene.hpp:42
virtual TaskPtr createTask(const TaskConfig &config)
Definition AccelerationScene.cpp:17
virtual const HierarchicalQP & update()
Update the wbc scene and return the (updated) optimization problem.
Definition AccelerationScene.cpp:31
base::Time stamp
Definition AccelerationScene.hpp:38
virtual const base::commands::Joints & solve(const HierarchicalQP &hqp)
Solve the given optimization problem.
Definition AccelerationScene.cpp:91
static SceneRegistry< AccelerationScene > reg
Definition AccelerationScene.hpp:29
AccelerationScene(RobotModelPtr robot_model, QPSolverPtr solver, const double dt)
Definition AccelerationScene.cpp:12
virtual const TasksStatus & updateTasksStatus()
evaluateTasks Evaluate the fulfillment of the tasks given the current robot state and the solver outp...
Definition AccelerationScene.cpp:111
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