KinematicsConstraint.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_rbdyn/Robots.h
>
8
#include <
mc_solver/ConstraintSet.h
>
9
10
#include <
mc_rtc/void_ptr.h
>
11
12
namespace
mc_solver
13
{
14
19
struct
MC_SOLVER_DLLAPI
KinematicsConstraint
:
public
ConstraintSet
20
{
21
public
:
30
KinematicsConstraint
(
const
mc_rbdyn::Robots
& robots,
unsigned
int
robotIndex,
double
timeStep);
31
42
KinematicsConstraint
(
const
mc_rbdyn::Robots
& robots,
43
unsigned
int
robotIndex,
44
double
timeStep,
45
const
std::array<double, 3> & damper,
46
double
velocityPercent = 0.5);
47
48
protected
:
50
void
addToSolverImpl(
mc_solver::QPSolver
& solver)
override
;
52
void
removeFromSolverImpl(
mc_solver::QPSolver
& solver)
override
;
64
mc_rtc::void_ptr
constraint_
;
65
};
66
67
}
// namespace mc_solver
mc_rbdyn::Robots
Definition:
Robots.h:15
void_ptr.h
ConstraintSet.h
mc_solver::QPSolver
Definition:
QPSolver.h:85
mc_solver::ConstraintSet
This class is a basis to wrap Constraint functions from Tasks. The aim of such wrappers should be two...
Definition:
ConstraintSet.h:20
mc_solver::KinematicsConstraint::constraint_
mc_rtc::void_ptr constraint_
Definition:
KinematicsConstraint.h:64
mc_solver::KinematicsConstraint
Definition:
KinematicsConstraint.h:19
mc_rtc::void_ptr
std::unique_ptr< void, void(*)(void *)> void_ptr
Definition:
void_ptr.h:14
Robots.h
mc_solver
Definition:
Contact.h:17
MC_SOLVER_DLLAPI
#define MC_SOLVER_DLLAPI
Definition:
api.h:50
include
mc_solver
KinematicsConstraint.h
Generated by
1.8.17