CoMTask.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
7
#include <
mc_tasks/TrajectoryTaskGeneric.h
>
8
9
namespace
mc_tasks
10
{
11
13
struct
MC_TASKS_DLLAPI
CoMTask
:
public
TrajectoryTaskGeneric
14
{
15
public
:
27
CoMTask
(
const
mc_rbdyn::Robots
& robots,
unsigned
int
robotIndex,
double
stiffness = 5.0,
double
weight = 100.);
28
29
void
reset()
override
;
30
36
void
move_com(
const
Eigen::Vector3d & com);
37
43
void
com(
const
Eigen::Vector3d & com);
44
49
const
Eigen::Vector3d & com()
const
;
50
55
const
Eigen::Vector3d & actual()
const
;
56
58
void
load(
mc_solver::QPSolver
&,
const
mc_rtc::Configuration
& config)
override
;
59
60
protected
:
61
void
addToGUI(
mc_rtc::gui::StateBuilder
&)
override
;
62
void
addToLogger(
mc_rtc::Logger
& logger)
override
;
63
64
private
:
65
unsigned
int
robot_index_;
66
};
67
68
}
// 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_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::CoMTask
Control a robot's CoM.
Definition:
CoMTask.h:13
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
include
mc_tasks
CoMTask.h
Generated by
1.8.17