MomentumTask.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2022 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
6 
8 
9 namespace mc_tasks
10 {
11 
14 {
15 public:
27  MomentumTask(const mc_rbdyn::Robots & robots, unsigned int robotIndex, double stiffness = 2.0, double weight = 500);
28 
34  void reset() override;
35 
37  sva::ForceVecd momentum() const;
38 
44  void momentum(const sva::ForceVecd & mom);
45 
46  void addToLogger(mc_rtc::Logger & logger) override;
47 
49  void load(mc_solver::QPSolver & solver, const mc_rtc::Configuration & config) override;
50 
51 protected:
52  void addToGUI(mc_rtc::gui::StateBuilder & gui) override;
53 };
54 
55 } // namespace mc_tasks
mc_rtc::Configuration
Simplify access to values hold within a JSON file.
Definition: Configuration.h:165
mc_rbdyn::Robots
Definition: Robots.h:15
MC_TASKS_DLLAPI
#define MC_TASKS_DLLAPI
Definition: api.h:50
mc_tasks::MomentumTask
Control the momentum of a robot.
Definition: MomentumTask.h:13
mc_solver::QPSolver
Definition: QPSolver.h:85
mc_rtc::Logger
Logs controller data to disk.
Definition: Logger.h:29
mc_rtc::gui::StateBuilder
Definition: StateBuilder.h:27
mc_tasks
Definition: StabilizerStandingState.h:11
TrajectoryTaskGeneric.h
mc_tasks::TrajectoryTaskGeneric
Generic wrapper for a trajectory dynamic over an error function.
Definition: TrajectoryTaskGeneric.h:26