Main Page
Namespaces
Classes
Files
File List
File Members
src
step_cost_estimators
const_step_cost_estimator.cpp
Go to the documentation of this file.
1
#include <
vigir_footstep_planning_default_plugins/step_cost_estimators/const_step_cost_estimator.h
>
2
3
4
5
namespace
vigir_footstep_planning
6
{
7
ConstStepCostEstimator::ConstStepCostEstimator
()
8
: StepCostEstimatorPlugin(
"const_step_cost_estimator"
)
9
{
10
}
11
12
bool
ConstStepCostEstimator::loadParams
(
const
vigir_generic_params::ParameterSet& params)
13
{
14
if
(!StepCostEstimatorPlugin::loadParams(params))
15
return
false
;
16
17
params.getParam(
"const_step_cost_estimator/step_cost"
,
const_step_cost
, 0.1);
18
return
true
;
19
}
20
21
bool
ConstStepCostEstimator::getCost
(
const
State&
/*left_foot*/
,
const
State&
/*right_foot*/
,
const
State&
/*swing_foot*/
,
double
& cost,
double
& cost_multiplier,
double
& risk,
double
& risk_multiplier)
const
22
{
23
cost =
const_step_cost
;
24
cost_multiplier = 1.0;
25
risk = 0.0;
26
risk_multiplier = 1.0;
27
return
true
;
28
}
29
}
30
31
#include <pluginlib/class_list_macros.h>
32
PLUGINLIB_EXPORT_CLASS(
vigir_footstep_planning::ConstStepCostEstimator
, vigir_footstep_planning::StepCostEstimatorPlugin)
vigir_footstep_planning::ConstStepCostEstimator
Definition:
const_step_cost_estimator.h:38
vigir_footstep_planning::ConstStepCostEstimator::ConstStepCostEstimator
ConstStepCostEstimator()
Definition:
const_step_cost_estimator.cpp:7
vigir_footstep_planning::ConstStepCostEstimator::const_step_cost
double const_step_cost
Definition:
const_step_cost_estimator.h:49
const_step_cost_estimator.h
vigir_footstep_planning::ConstStepCostEstimator::getCost
bool getCost(const State &left_foot, const State &right_foot, const State &swing_foot, double &cost, double &cost_multiplier, double &risk, double &risk_multiplier) const override
Definition:
const_step_cost_estimator.cpp:21
vigir_footstep_planning
Definition:
dynamics_heuristic.h:39
vigir_footstep_planning::ConstStepCostEstimator::loadParams
bool loadParams(const vigir_generic_params::ParameterSet ¶ms=vigir_generic_params::ParameterSet()) override
Definition:
const_step_cost_estimator.cpp:12
vigir_footstep_planning_default_plugins
Author(s): Alexander Stumpf
autogenerated on Sun Nov 17 2019 03:30:01