#include <eband_trajectory_controller.h>
eband_local_planner::EBandTrajectoryCtrl::EBandTrajectoryCtrl |
( |
| ) |
|
eband_local_planner::EBandTrajectoryCtrl::EBandTrajectoryCtrl |
( |
std::string |
name, |
|
|
costmap_2d::Costmap2DROS * |
costmap_ros |
|
) |
| |
Constructs the elastic band object.
- Parameters
-
name | The name to give this instance of the elastic band local planner |
costmap | The cost map to use for assigning costs to trajectories |
Definition at line 51 of file eband_trajectory_controller.cpp.
eband_local_planner::EBandTrajectoryCtrl::~EBandTrajectoryCtrl |
( |
| ) |
|
double eband_local_planner::EBandTrajectoryCtrl::getBubbleTargetVel |
( |
const int & |
target_bub_num, |
|
|
const std::vector< Bubble > & |
band, |
|
|
geometry_msgs::Twist & |
VelDir |
|
) |
| |
|
private |
gets the max velocity allowed within this bubble depending on size of the bubble and pose and size of the following bubble
- Parameters
-
number | of the bubble of interest within the band |
band | in which the bubble is in |
- Returns
- absolute value of maximum allowed velocity within this bubble
Definition at line 707 of file eband_trajectory_controller.cpp.
Transforms Pose of frame 1 and 2 into reference frame and gets difference of frame 1 and 2.
- Parameters
-
refernce | to pose of frame1 |
reference | to pose of frame2 |
reference | to pose of reference frame |
- Returns
- vector from frame1 to frame2 in coordinates of the reference frame
Definition at line 767 of file eband_trajectory_controller.cpp.
bool eband_local_planner::EBandTrajectoryCtrl::getTwist |
( |
geometry_msgs::Twist & |
twist_cmd, |
|
|
bool & |
goal_reached |
|
) |
| |
bool eband_local_planner::EBandTrajectoryCtrl::getTwistDifferentialDrive |
( |
geometry_msgs::Twist & |
twist_cmd, |
|
|
bool & |
goal_reached |
|
) |
| |
Initializes the elastic band class by accesing costmap and loading parameters.
- Parameters
-
name | The name to give this instance of the trajectory planner |
costmap | The cost map to use for assigning costs to trajectories |
Definition at line 65 of file eband_trajectory_controller.cpp.
geometry_msgs::Twist eband_local_planner::EBandTrajectoryCtrl::limitTwist |
( |
const geometry_msgs::Twist & |
twist | ) |
|
|
private |
limits the twist to the allowed range
- Parameters
-
reference | to unconstrained twist |
- Returns
- twist in allowed range
Definition at line 859 of file eband_trajectory_controller.cpp.
void eband_local_planner::EBandTrajectoryCtrl::reconfigure |
( |
EBandPlannerConfig & |
config | ) |
|
bool eband_local_planner::EBandTrajectoryCtrl::setBand |
( |
const std::vector< Bubble > & |
elastic_band | ) |
|
bool eband_local_planner::EBandTrajectoryCtrl::setOdometry |
( |
const nav_msgs::Odometry & |
odometry | ) |
|
passes a reference to the eband visualization object which can be used to visualize the band optimization
- Parameters
-
pointer | to visualization object |
Definition at line 132 of file eband_trajectory_controller.cpp.
double eband_local_planner::EBandTrajectoryCtrl::sign |
( |
double |
n | ) |
|
|
inlineprivate |
geometry_msgs::Twist eband_local_planner::EBandTrajectoryCtrl::transformTwistFromFrame1ToFrame2 |
( |
const geometry_msgs::Twist & |
curr_twist, |
|
|
const geometry_msgs::Pose & |
frame1, |
|
|
const geometry_msgs::Pose & |
frame2 |
|
) |
| |
|
private |
- Parameters
-
Transforms | twist into a given reference frame |
Twist | that shall be transformed |
refernce | to pose of frame1 |
reference | to pose of frame2 |
- Returns
- transformed twist
Definition at line 834 of file eband_trajectory_controller.cpp.
double eband_local_planner::EBandTrajectoryCtrl::acc_max_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::acc_max_rot_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::acc_max_trans_ |
|
private |
bool eband_local_planner::EBandTrajectoryCtrl::band_set_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::bubble_velocity_multiplier_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::ctrl_freq_ |
|
private |
bool eband_local_planner::EBandTrajectoryCtrl::differential_drive_hack_ |
|
private |
bool eband_local_planner::EBandTrajectoryCtrl::disallow_hysteresis_ |
|
private |
std::vector<Bubble> eband_local_planner::EBandTrajectoryCtrl::elastic_band_ |
|
private |
bool eband_local_planner::EBandTrajectoryCtrl::in_final_goal_turn_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::in_place_trans_vel_ |
|
private |
bool eband_local_planner::EBandTrajectoryCtrl::initialized_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::k_nu_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::k_p_ |
|
private |
geometry_msgs::Twist eband_local_planner::EBandTrajectoryCtrl::last_vel_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::max_vel_lin_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::max_vel_th_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::min_in_place_vel_th_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::min_vel_lin_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::min_vel_th_ |
|
private |
geometry_msgs::Twist eband_local_planner::EBandTrajectoryCtrl::odom_vel_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::rotation_correction_threshold_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::rotation_threshold_multiplier_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::tolerance_rot_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::tolerance_trans_ |
|
private |
double eband_local_planner::EBandTrajectoryCtrl::virt_mass_ |
|
private |
bool eband_local_planner::EBandTrajectoryCtrl::visualization_ |
|
private |
The documentation for this class was generated from the following files: