#include <controller.h>
Definition at line 27 of file controller.h.
velocity_controller::Controller::Controller |
( |
| ) |
|
float velocity_controller::Controller::absolute |
( |
float |
_val | ) |
|
|
private |
bool velocity_controller::Controller::checkGoal |
( |
PathPoint |
_odom | ) |
|
|
private |
void velocity_controller::Controller::getSpeed |
( |
float * |
_v, |
|
|
float * |
_w |
|
) |
| |
Returns the current speed values.
- Parameters
-
_v | the linear speed |
_w | the rotational speed |
Definition at line 140 of file controller.cpp.
float velocity_controller::Controller::normalizeAngle |
( |
float |
_angle | ) |
|
|
private |
void velocity_controller::Controller::setGoalRadius |
( |
float |
_r | ) |
|
Set the Goal Radius.
- Parameters
-
_r | the radius which is used to marke a goal as visited |
Definition at line 21 of file controller.cpp.
void velocity_controller::Controller::setPath |
( |
std::shared_ptr< std::vector< PathPoint >> |
_path | ) |
|
Set the path the contorler has to follow.
- Parameters
-
_path | the path as std::vector of points |
Definition at line 14 of file controller.cpp.
void velocity_controller::Controller::setPID |
( |
float |
_Kp, |
|
|
float |
_Ki, |
|
|
float |
_Kd |
|
) |
| |
sets the control parameters
- Parameters
-
_Kp | the proportional part of the controller |
_Ki | the integration part of the controller |
_Kd | the differential part |
Definition at line 51 of file controller.cpp.
void velocity_controller::Controller::setSpeedParams |
( |
float |
_max_v, |
|
|
float |
_max_w |
|
) |
| |
Set the Speed Params of the controller.
- Parameters
-
_max_v | maximal linear speed |
_max_w | maximal rotational speed |
Definition at line 134 of file controller.cpp.
void velocity_controller::Controller::setState |
( |
state |
s | ) |
|
Set the State (run stop step wait_step)
- Parameters
-
s | the state (run stop wait_step step) |
Definition at line 58 of file controller.cpp.
void velocity_controller::Controller::update |
( |
PathPoint |
_odom, |
|
|
float |
_delta_t |
|
) |
| |
updates the controller with the current robot position
- Parameters
-
_odom | the current robot position |
_delta_t | the time differenz used for the pid controlelr |
Definition at line 63 of file controller.cpp.
state velocity_controller::Controller::actual_cmd_ = run |
|
private |
PathPoint velocity_controller::Controller::current_pose_ |
|
protected |
float velocity_controller::Controller::e_dot_ = 0 |
|
private |
float velocity_controller::Controller::e_last_ = 0 |
|
private |
float velocity_controller::Controller::goal_radius_ = 0.25 |
|
private |
float velocity_controller::Controller::Kd_ = 1 |
|
private |
float velocity_controller::Controller::Ki_ = 0.0 |
|
private |
float velocity_controller::Controller::Kp_ = 5 |
|
private |
float velocity_controller::Controller::max_v_ |
|
private |
float velocity_controller::Controller::max_w_ |
|
private |
std::shared_ptr<std::vector<PathPoint> > velocity_controller::Controller::path_ |
|
private |
std::vector<PathPoint>::iterator velocity_controller::Controller::path_iterator_ |
|
private |
bool velocity_controller::Controller::plan_active = false |
|
private |
float velocity_controller::Controller::v_ |
|
private |
float velocity_controller::Controller::w_ |
|
private |
The documentation for this class was generated from the following files: