Crocoddyl
impulses.hpp
1
// BSD 3-Clause License
3
//
4
// Copyright (C) 2019-2020, University of Edinburgh
5
// Copyright note valid unless otherwise stated in individual files.
6
// All rights reserved.
8
9
#ifndef CROCODDYL_CORE_DATA_IMPULSES_HPP_
10
#define CROCODDYL_CORE_DATA_IMPULSES_HPP_
11
12
#include <boost/shared_ptr.hpp>
13
14
#include "crocoddyl/multibody/data/multibody.hpp"
15
#include "crocoddyl/multibody/fwd.hpp"
16
#include "crocoddyl/multibody/impulses/multiple-impulses.hpp"
17
18
namespace
crocoddyl {
19
20
template
<
typename
Scalar>
21
struct
DataCollectorImpulseTpl
:
virtual
DataCollectorAbstractTpl
<Scalar> {
22
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
23
24
DataCollectorImpulseTpl
(
25
boost::shared_ptr<
ImpulseDataMultipleTpl<Scalar>
> impulses)
26
:
DataCollectorAbstractTpl<Scalar>
(), impulses(impulses) {}
27
virtual
~
DataCollectorImpulseTpl
() {}
28
29
boost::shared_ptr<ImpulseDataMultipleTpl<Scalar> > impulses;
30
};
31
32
template
<
typename
Scalar>
33
struct
DataCollectorMultibodyInImpulseTpl
:
DataCollectorMultibodyTpl
<Scalar>,
34
DataCollectorImpulseTpl
<Scalar> {
35
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
36
37
DataCollectorMultibodyInImpulseTpl
(
38
pinocchio::DataTpl<Scalar>*
const
pinocchio,
39
boost::shared_ptr<
ImpulseDataMultipleTpl<Scalar>
> impulses)
40
:
DataCollectorMultibodyTpl<Scalar>
(pinocchio),
41
DataCollectorImpulseTpl<Scalar>
(impulses) {}
42
virtual
~
DataCollectorMultibodyInImpulseTpl
() {}
43
};
44
45
}
// namespace crocoddyl
46
47
#endif
// CROCODDYL_CORE_DATA_MULTIBODY_IN_IMPULSE_HPP_
crocoddyl::DataCollectorAbstractTpl
Definition:
data-collector-base.hpp:19
crocoddyl::DataCollectorImpulseTpl
Definition:
impulses.hpp:21
crocoddyl::DataCollectorMultibodyInImpulseTpl
Definition:
impulses.hpp:34
crocoddyl::DataCollectorMultibodyTpl
Definition:
multibody.hpp:22
crocoddyl::ImpulseDataMultipleTpl
Define the multi-impulse data.
Definition:
multiple-impulses.hpp:260
include
crocoddyl
multibody
data
impulses.hpp
Generated by
1.9.1