Main Page
Namespaces
Classes
Files
File List
File Members
src
twirling_cost_function.cpp
Go to the documentation of this file.
1
/*
2
* twirling_cost_function.cpp
3
*
4
* Created on: Apr 20, 2016
5
* Author: Morgan Quigley
6
*/
7
8
#include <
base_local_planner/twirling_cost_function.h
>
9
10
#include <math.h>
11
12
namespace
base_local_planner
{
13
14
double
TwirlingCostFunction::scoreTrajectory
(
Trajectory
&traj) {
15
return
fabs(traj.
thetav_
);
// add cost for making the robot spin
16
}
17
18
}
/* namespace base_local_planner */
base_local_planner::TwirlingCostFunction::scoreTrajectory
double scoreTrajectory(Trajectory &traj)
Definition:
twirling_cost_function.cpp:14
base_local_planner
Definition:
costmap_model.h:44
twirling_cost_function.h
base_local_planner::Trajectory::thetav_
double thetav_
The x, y, and theta velocities of the trajectory.
Definition:
trajectory.h:60
base_local_planner::Trajectory
Holds a trajectory generated by considering an x, y, and theta velocity.
Definition:
trajectory.h:44
base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Sun Mar 3 2019 03:44:25