base_local_planner
local_planner_limits.h
Go to the documentation of this file.
1 /***********************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2008, Willow Garage, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * Neither the name of the Willow Garage nor the names of its
18  * contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  ***********************************************************/
34 
35 
36 #ifndef __base_local_planner__LOCALPLANNERLIMITS_H__
37 #define __base_local_planner__LOCALPLANNERLIMITS_H__
38 
39 #include <Eigen/Core>
40 
41 namespace base_local_planner
42 {
43 class LocalPlannerLimits
44 {
45 public:
46 
47  double max_vel_trans;
48  double min_vel_trans;
49  double max_vel_x;
50  double min_vel_x;
51  double max_vel_y;
52  double min_vel_y;
53  double max_vel_theta;
54  double min_vel_theta;
55  double acc_lim_x;
56  double acc_lim_y;
57  double acc_lim_theta;
58  double acc_lim_trans;
59  double deacc_lim_trans;
60  bool prune_plan;
61  double xy_goal_tolerance;
62  double yaw_goal_tolerance;
63  double trans_stopped_vel;
64  double theta_stopped_vel;
66  bool restore_defaults;
67 
69 
71  double nmax_vel_trans,
72  double nmin_vel_trans,
73  double nmax_vel_x,
74  double nmin_vel_x,
75  double nmax_vel_y,
76  double nmin_vel_y,
77  double nmax_vel_theta,
78  double nmin_vel_theta,
79  double nacc_lim_x,
80  double nacc_lim_y,
81  double nacc_lim_theta,
82  double nacc_lim_trans,
83  double ndeacc_lim_trans,
84  double nxy_goal_tolerance,
85  double nyaw_goal_tolerance,
86  bool nprune_plan = true,
87  double ntrans_stopped_vel = 0.1,
88  double ntheta_stopped_vel = 0.1,
89  double nmin_lookahead_distance = 1):
90  max_vel_trans(nmax_vel_trans),
91  min_vel_trans(nmin_vel_trans),
92  max_vel_x(nmax_vel_x),
93  min_vel_x(nmin_vel_x),
94  max_vel_y(nmax_vel_y),
95  min_vel_y(nmin_vel_y),
96  max_vel_theta(nmax_vel_theta),
97  min_vel_theta(nmin_vel_theta),
98  acc_lim_x(nacc_lim_x),
99  acc_lim_y(nacc_lim_y),
100  acc_lim_theta(nacc_lim_theta),
101  acc_lim_trans(nacc_lim_trans),
102  deacc_lim_trans(ndeacc_lim_trans),
103  prune_plan(nprune_plan),
104  xy_goal_tolerance(nxy_goal_tolerance),
105  yaw_goal_tolerance(nyaw_goal_tolerance),
106  trans_stopped_vel(ntrans_stopped_vel),
107  theta_stopped_vel(ntheta_stopped_vel),
108  min_lookahead_distance(nmin_lookahead_distance){}
109 
111 
116  Eigen::Vector3f getAccLimits() {
117  Eigen::Vector3f acc_limits;
118  acc_limits[0] = acc_lim_x;
119  acc_limits[1] = acc_lim_y;
120  acc_limits[2] = acc_lim_theta;
121  return acc_limits;
122  }
123 
124 };
125 
126 }
127 #endif // __LOCALPLANNERLIMITS_H__
base_local_planner::LocalPlannerLimits::prune_plan
bool prune_plan
Definition: local_planner_limits.h:124
base_local_planner::LocalPlannerLimits::xy_goal_tolerance
double xy_goal_tolerance
Definition: local_planner_limits.h:125
base_local_planner::LocalPlannerLimits::min_vel_x
double min_vel_x
Definition: local_planner_limits.h:114
base_local_planner::LocalPlannerLimits::acc_lim_y
double acc_lim_y
Definition: local_planner_limits.h:120
base_local_planner::LocalPlannerLimits::min_vel_y
double min_vel_y
Definition: local_planner_limits.h:116
base_local_planner::LocalPlannerLimits::restore_defaults
bool restore_defaults
Definition: local_planner_limits.h:130
base_local_planner::LocalPlannerLimits::max_vel_theta
double max_vel_theta
Definition: local_planner_limits.h:117
base_local_planner::LocalPlannerLimits::max_vel_x
double max_vel_x
Definition: local_planner_limits.h:113
base_local_planner::LocalPlannerLimits::theta_stopped_vel
double theta_stopped_vel
Definition: local_planner_limits.h:128
base_local_planner::LocalPlannerLimits::max_vel_trans
double max_vel_trans
Definition: local_planner_limits.h:111
base_local_planner::LocalPlannerLimits::getAccLimits
Eigen::Vector3f getAccLimits()
Get the acceleration limits of the robot.
Definition: local_planner_limits.h:180
base_local_planner::LocalPlannerLimits::min_vel_theta
double min_vel_theta
Definition: local_planner_limits.h:118
base_local_planner::LocalPlannerLimits::~LocalPlannerLimits
~LocalPlannerLimits()
Definition: local_planner_limits.h:174
base_local_planner::LocalPlannerLimits::LocalPlannerLimits
LocalPlannerLimits()
Definition: local_planner_limits.h:132
base_local_planner::LocalPlannerLimits::trans_stopped_vel
double trans_stopped_vel
Definition: local_planner_limits.h:127
base_local_planner::LocalPlannerLimits::acc_lim_trans
double acc_lim_trans
Definition: local_planner_limits.h:122
base_local_planner::LocalPlannerLimits::deacc_lim_trans
double deacc_lim_trans
Definition: local_planner_limits.h:123
base_local_planner::LocalPlannerLimits::min_vel_trans
double min_vel_trans
Definition: local_planner_limits.h:112
base_local_planner::LocalPlannerLimits::acc_lim_x
double acc_lim_x
Definition: local_planner_limits.h:119
base_local_planner
Definition: alignment_cost_function.h:7
base_local_planner::LocalPlannerLimits::max_vel_y
double max_vel_y
Definition: local_planner_limits.h:115
base_local_planner::LocalPlannerLimits::yaw_goal_tolerance
double yaw_goal_tolerance
Definition: local_planner_limits.h:126
base_local_planner::LocalPlannerLimits::acc_lim_theta
double acc_lim_theta
Definition: local_planner_limits.h:121
base_local_planner::LocalPlannerLimits::min_lookahead_distance
double min_lookahead_distance
Definition: local_planner_limits.h:129