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 
9 
10 #include <math.h>
11 
12 namespace base_local_planner {
13 
15  return fabs(traj.thetav_); // add cost for making the robot spin
16 }
17 
18 } /* namespace base_local_planner */
twirling_cost_function.h
base_local_planner::TwirlingCostFunction::scoreTrajectory
double scoreTrajectory(Trajectory &traj)
Definition: twirling_cost_function.cpp:14
base_local_planner::Trajectory
Holds a trajectory generated by considering an x, y, and theta velocity.
Definition: trajectory.h:76
base_local_planner
Definition: costmap_model.h:44
base_local_planner::Trajectory::thetav_
double thetav_
The x, y, and theta velocities of the trajectory.
Definition: trajectory.h:92


base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Mon Mar 6 2023 03:50:24