base_local_planner
include
base_local_planner
occupancy_velocity_cost_function.h
Go to the documentation of this file.
1
/*********************************************************************
2
* Author: Rein Appeldoorn
3
*********************************************************************/
4
5
#ifndef OCCUPANCY_VELOCITY_COST_FUNCTION_H_
6
#define OCCUPANCY_VELOCITY_COST_FUNCTION_H_
7
8
#include <
base_local_planner/trajectory_cost_function.h
>
9
10
#include <
base_local_planner/costmap_model.h
>
11
#include <
costmap_2d/costmap_2d.h
>
12
13
namespace
base_local_planner
{
14
19
class
OccupancyVelocityCostFunction :
public
TrajectoryCostFunction {
20
21
public
:
22
OccupancyVelocityCostFunction
(
costmap_2d::Costmap2D
* costmap);
23
~OccupancyVelocityCostFunction
();
24
25
bool
prepare
() {
return
true
; }
26
double
scoreTrajectory
(
Trajectory
&traj);
27
28
void
setParams
(
double
max_trans_vel) {
max_trans_vel_
= max_trans_vel; }
29
void
setFootprint
(
const
std::vector<geometry_msgs::Point>
& footprint_spec) {
footprint_spec_
= footprint_spec; }
30
31
private
:
32
costmap_2d::Costmap2D
*
costmap_
;
33
std::vector<geometry_msgs::Point>
footprint_spec_
;
34
base_local_planner::WorldModel
*
world_model_
;
35
double
max_trans_vel_
;
36
};
37
38
}
/* namespace base_local_planner */
39
40
#endif
/* OCCUPANCY_VELOCITY_COST_FUNCTION_H_ */
base_local_planner::OccupancyVelocityCostFunction::world_model_
base_local_planner::WorldModel * world_model_
Definition:
occupancy_velocity_cost_function.h:38
std::vector< geometry_msgs::Point >
costmap_2d.h
base_local_planner::OccupancyVelocityCostFunction::prepare
bool prepare()
Definition:
occupancy_velocity_cost_function.h:29
base_local_planner::OccupancyVelocityCostFunction::footprint_spec_
std::vector< geometry_msgs::Point > footprint_spec_
Definition:
occupancy_velocity_cost_function.h:37
base_local_planner::OccupancyVelocityCostFunction::OccupancyVelocityCostFunction
OccupancyVelocityCostFunction(costmap_2d::Costmap2D *costmap)
Definition:
occupancy_velocity_cost_function.cpp:14
base_local_planner::OccupancyVelocityCostFunction::max_trans_vel_
double max_trans_vel_
Definition:
occupancy_velocity_cost_function.h:39
costmap_2d::Costmap2D
base_local_planner::OccupancyVelocityCostFunction::setParams
void setParams(double max_trans_vel)
Definition:
occupancy_velocity_cost_function.h:32
costmap_model.h
base_local_planner::WorldModel
An interface the trajectory controller uses to interact with the world regardless of the underlying w...
Definition:
world_model.h:87
base_local_planner::Trajectory
Holds a trajectory generated by considering an x, y, and theta velocity.
Definition:
trajectory.h:76
base_local_planner::OccupancyVelocityCostFunction::scoreTrajectory
double scoreTrajectory(Trajectory &traj)
Definition:
occupancy_velocity_cost_function.cpp:30
base_local_planner::OccupancyVelocityCostFunction::setFootprint
void setFootprint(const std::vector< geometry_msgs::Point > &footprint_spec)
Definition:
occupancy_velocity_cost_function.h:33
base_local_planner::OccupancyVelocityCostFunction::costmap_
costmap_2d::Costmap2D * costmap_
Definition:
occupancy_velocity_cost_function.h:36
base_local_planner
Definition:
alignment_cost_function.h:7
trajectory_cost_function.h
base_local_planner::OccupancyVelocityCostFunction::~OccupancyVelocityCostFunction
~OccupancyVelocityCostFunction()
Definition:
occupancy_velocity_cost_function.cpp:22
Generated on Mon Feb 24 2025 04:34:28 for base_local_planner by
1.8.17