wbc
VelocityScene.hpp
Go to the documentation of this file.
1#ifndef VELOCITYSCENE_HPP
2#define VELOCITYSCENE_HPP
3
5
6namespace wbc{
7
25class VelocityScene : public Scene{
26protected:
28
29 base::VectorXd q, qd, qdd;
30
34 virtual TaskPtr createTask(const TaskConfig &config);
35
36public:
38 virtual ~VelocityScene(){
39 }
40
44 virtual const HierarchicalQP& update();
45
50 virtual const base::commands::Joints& solve(const HierarchicalQP& hqp);
51
57 virtual const TasksStatus &updateTasksStatus();
58};
59
60} // namespace wbc
61
62#endif
HierarchicalQP hqp
Definition Scene.hpp:23
RobotModelPtr robot_model
Definition Scene.hpp:18
Scene(RobotModelPtr robot_model, QPSolverPtr solver, const double dt)
Definition Scene.cpp:8
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
base::VectorXd q
Definition VelocityScene.hpp:29
virtual TaskPtr createTask(const TaskConfig &config)
Create a task and add it to the WBC scene.
Definition VelocityScene.cpp:18
virtual const base::commands::Joints & solve(const HierarchicalQP &hqp)
Solve the given optimization problem.
Definition VelocityScene.cpp:86
virtual ~VelocityScene()
Definition VelocityScene.hpp:38
base::VectorXd qd
Definition VelocityScene.hpp:29
virtual const TasksStatus & updateTasksStatus()
Compute y and y_solution for each task. y_solution denotes the task velocity that can be achieved wit...
Definition VelocityScene.cpp:109
VelocityScene(RobotModelPtr robot_model, QPSolverPtr solver, const double dt)
Definition VelocityScene.cpp:13
base::VectorXd qdd
Definition VelocityScene.hpp:29
static SceneRegistry< VelocityScene > reg
Definition VelocityScene.hpp:27
virtual const HierarchicalQP & update()
Update the wbc scene and setup the optimization problem.
Definition VelocityScene.cpp:32
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