humoto
modules
pepper_mpc
include
pepper_mpc
configurable_optimization_problem.h
Go to the documentation of this file.
1
/**
2
@file
3
@author Alexander Sherikov
4
@copyright 2014-2017 INRIA. Licensed under the Apache License, Version 2.0.
5
(see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
6
7
@brief
8
*/
9
10
#pragma once
11
12
13
namespace
humoto
14
{
15
namespace
pepper_mpc
16
{
17
/**
18
* @brief Class representing the hierarchy of the problem
19
*/
20
class
HUMOTO_LOCAL
ConfigurableOptimizationProblem
21
:
public
humoto::ConfigurableOptimizationProblem
22
{
23
protected
:
24
/**
25
* @brief Fill map with all pointers to all tasks for given module
26
*/
27
humoto::TaskSharedPointer
getTask
(
const
std::string &string_id)
const
28
{
29
if
(string_id ==
"TaskBaseAccelerationBounds"
)
30
{
31
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBaseAccelerationBounds
));
32
}
33
if
(string_id ==
"TaskBaseJerkMinimization"
)
34
{
35
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBaseJerkMinimization
));
36
}
37
if
(string_id ==
"TaskBasePositionReference"
)
38
{
39
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBasePositionReference
));
40
}
41
if
(string_id ==
"TaskBaseVelocityBounds"
)
42
{
43
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBaseVelocityBounds
));
44
}
45
if
(string_id ==
"TaskBaseVelocityReference"
)
46
{
47
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBaseVelocityReference
));
48
}
49
if
(string_id ==
"TaskBodyJerkMinimization"
)
50
{
51
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBodyJerkMinimization
));
52
}
53
if
(string_id ==
"TaskBodyPositionBounds"
)
54
{
55
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBodyPositionBounds
));
56
}
57
if
(string_id ==
"TaskBodyPositionReference"
)
58
{
59
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskBodyPositionReference
));
60
}
61
if
(string_id ==
"TaskCoPCentering"
)
62
{
63
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskCoPCentering
));
64
}
65
if
(string_id ==
"TaskCoPPositionBounds"
)
66
{
67
return
(
humoto::TaskSharedPointer
(
new
humoto::pepper_mpc::TaskCoPPositionBounds
));
68
}
69
70
return
(
humoto::ConfigurableOptimizationProblem::getTask
(string_id));
71
}
72
};
73
}
74
}
humoto::pepper_mpc::TaskBasePositionReference
Task for minimizing base position against base reference position.
Definition:
task_basepositionref.h:20
HUMOTO_LOCAL
#define HUMOTO_LOCAL
Definition:
export_import.h:26
humoto::pepper_mpc::TaskCoPPositionBounds
CoP position bounding task.
Definition:
task_coppositionbounds.h:20
humoto::pepper_mpc::TaskBaseVelocityReference
Task for minimizing base velocity against base reference velocity.
Definition:
task_basevelocityref.h:20
humoto::ConfigurableOptimizationProblem::getTask
virtual humoto::TaskSharedPointer getTask(const std::string &string_id) const
Fill map with all pointers to all tasks for given module.
Definition:
configurable_optimization_problem.h:93
humoto::pepper_mpc::TaskBaseJerkMinimization
base jerk minimization task
Definition:
task_basejerkminimization.h:20
humoto::pepper_mpc::TaskBodyPositionReference
Definition:
task_bodypositionref.h:17
humoto::pepper_mpc::TaskBaseVelocityBounds
Task for bounding base velocity to a square.
Definition:
task_basevelocitybounds.h:20
humoto::pepper_mpc::TaskBaseAccelerationBounds
base acceleration bounding task
Definition:
task_baseaccelerationbounds.h:20
humoto::TaskSharedPointer
boost::shared_ptr< humoto::TaskBase > TaskSharedPointer
Definition:
task.h:584
humoto::pepper_mpc::TaskCoPCentering
base and body jerk minimization task
Definition:
task_copcentering.h:20
humoto::pepper_mpc::ConfigurableOptimizationProblem
Class representing the hierarchy of the problem.
Definition:
configurable_optimization_problem.h:20
humoto::pepper_mpc::TaskBodyJerkMinimization
[task_cop.m]
Definition:
task_bodyjerkminimization.h:19
humoto::pepper_mpc::TaskBodyPositionBounds
Task for bounding body position to a square.
Definition:
task_bodypositionbounds.h:20
humoto
The root namespace of HuMoTo.
Definition:
config.h:12
humoto::ConfigurableOptimizationProblem
Class representing the hierarchy of the problem.
Definition:
configurable_optimization_problem.h:19
humoto::pepper_mpc::ConfigurableOptimizationProblem::getTask
humoto::TaskSharedPointer getTask(const std::string &string_id) const
Fill map with all pointers to all tasks for given module.
Definition:
configurable_optimization_problem.h:27
Generated on Fri Sep 29 2017 16:44:40 for humoto by
1.8.13