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 {
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  bool prune_plan;
65 
67 
69  double nmax_vel_trans,
70  double nmin_vel_trans,
71  double nmax_vel_x,
72  double nmin_vel_x,
73  double nmax_vel_y,
74  double nmin_vel_y,
75  double nmax_vel_theta,
76  double nmin_vel_theta,
77  double nacc_lim_x,
78  double nacc_lim_y,
79  double nacc_lim_theta,
80  double nacc_lim_trans,
81  double nxy_goal_tolerance,
82  double nyaw_goal_tolerance,
83  bool nprune_plan = true,
84  double ntrans_stopped_vel = 0.1,
85  double ntheta_stopped_vel = 0.1):
86  max_vel_trans(nmax_vel_trans),
87  min_vel_trans(nmin_vel_trans),
88  max_vel_x(nmax_vel_x),
89  min_vel_x(nmin_vel_x),
90  max_vel_y(nmax_vel_y),
91  min_vel_y(nmin_vel_y),
92  max_vel_theta(nmax_vel_theta),
93  min_vel_theta(nmin_vel_theta),
94  acc_lim_x(nacc_lim_x),
95  acc_lim_y(nacc_lim_y),
96  acc_lim_theta(nacc_lim_theta),
97  acc_lim_trans(nacc_lim_trans),
98  prune_plan(nprune_plan),
99  xy_goal_tolerance(nxy_goal_tolerance),
100  yaw_goal_tolerance(nyaw_goal_tolerance),
101  trans_stopped_vel(ntrans_stopped_vel),
102  theta_stopped_vel(ntheta_stopped_vel) {}
103 
105 
110  Eigen::Vector3f getAccLimits() {
111  Eigen::Vector3f acc_limits;
112  acc_limits[0] = acc_lim_x;
113  acc_limits[1] = acc_lim_y;
114  acc_limits[2] = acc_lim_theta;
115  return acc_limits;
116  }
117 
118 };
119 
120 }
121 #endif // __LOCALPLANNERLIMITS_H__
Eigen::Vector3f getAccLimits()
Get the acceleration limits of the robot.
LocalPlannerLimits(double nmax_vel_trans, double nmin_vel_trans, double nmax_vel_x, double nmin_vel_x, double nmax_vel_y, double nmin_vel_y, double nmax_vel_theta, double nmin_vel_theta, double nacc_lim_x, double nacc_lim_y, double nacc_lim_theta, double nacc_lim_trans, double nxy_goal_tolerance, double nyaw_goal_tolerance, bool nprune_plan=true, double ntrans_stopped_vel=0.1, double ntheta_stopped_vel=0.1)


base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Wed Jun 22 2022 02:07:08