#include <dock_drive.hpp>
|
void | aligned (RobotDockingState::State &state, double &vx, double &wz, const std::vector< unsigned char > &signal_filt, std::string &debug_str) |
|
void | bumped (RobotDockingState::State &nstate, double &nvx, double &nwz, int &bump_count) |
|
void | computePoseUpdate (ecl::LegacyPose2D< double > &pose_update, const ecl::LegacyPose2D< double > &pose) |
| compute pose update from previouse pose and current pose More...
|
|
RobotDockingState::State | determineRobotLocation (const std::vector< unsigned char > &signal_filt, const unsigned char &charger) |
|
void | filterIRSensor (std::vector< unsigned char > &signal_filt, const std::vector< unsigned char > &signal) |
|
void | find_stream (RobotDockingState::State &state, double &vx, double &wz, const std::vector< unsigned char > &signal_filt) |
|
void | generateDebugMessage (const std::vector< unsigned char > &signal_filt, const unsigned char &bumper, const unsigned char &charger, const ecl::LegacyPose2D< double > &pose_update, const std::string &debug_str) |
|
void | get_stream (RobotDockingState::State &state, double &vx, double &wz, const std::vector< unsigned char > &signal_filt) |
|
void | idle (RobotDockingState::State &state, double &vx, double &wz) |
|
void | processBumpChargeEvent (const unsigned char &bumper, const unsigned char &charger) |
|
void | scan (RobotDockingState::State &state, double &vx, double &wz, const std::vector< unsigned char > &signal_filt, const ecl::LegacyPose2D< double > &pose_update, std::string &debug_str) |
|
void | updateVelocity (const std::vector< unsigned char > &signal_filt, const ecl::LegacyPose2D< double > &pose_update, std::string &debug_str) |
|
bool | validateSignal (const std::vector< unsigned char > &signal_filt, const unsigned int state) |
|
|
std::string | binary (unsigned char number) const |
|
void | setVel (double v, double w) |
|
Definition at line 66 of file dock_drive.hpp.
kobuki::DockDrive::DockDrive |
( |
| ) |
|
kobuki::DockDrive::~DockDrive |
( |
| ) |
|
void kobuki::DockDrive::aligned |
( |
RobotDockingState::State & |
state, |
|
|
double & |
vx, |
|
|
double & |
wz, |
|
|
const std::vector< unsigned char > & |
signal_filt, |
|
|
std::string & |
debug_str |
|
) |
| |
|
protected |
std::string kobuki::DockDrive::binary |
( |
unsigned char |
number | ) |
const |
|
private |
bool kobuki::DockDrive::canRun |
( |
| ) |
const |
|
inline |
compute pose update from previouse pose and current pose
- Parameters
-
pose | update. this variable get filled after this function |
pose | - current pose |
Definition at line 149 of file dock_drive.cpp.
RobotDockingState::State kobuki::DockDrive::determineRobotLocation |
( |
const std::vector< unsigned char > & |
signal_filt, |
|
|
const unsigned char & |
charger |
|
) |
| |
|
protected |
void kobuki::DockDrive::disable |
( |
| ) |
|
|
inline |
void kobuki::DockDrive::enable |
( |
| ) |
|
|
inline |
void kobuki::DockDrive::filterIRSensor |
( |
std::vector< unsigned char > & |
signal_filt, |
|
|
const std::vector< unsigned char > & |
signal |
|
) |
| |
|
protected |
pushing into signal into signal window. and go through the signal window to find what has detected
- Parameters
-
signal_filt | - this get filled out after the function. |
signal | - the raw data from robot |
Definition at line 168 of file dock_drive.cpp.
void kobuki::DockDrive::find_stream |
( |
RobotDockingState::State & |
state, |
|
|
double & |
vx, |
|
|
double & |
wz, |
|
|
const std::vector< unsigned char > & |
signal_filt |
|
) |
| |
|
protected |
void kobuki::DockDrive::generateDebugMessage |
( |
const std::vector< unsigned char > & |
signal_filt, |
|
|
const unsigned char & |
bumper, |
|
|
const unsigned char & |
charger, |
|
|
const ecl::LegacyPose2D< double > & |
pose_update, |
|
|
const std::string & |
debug_str |
|
) |
| |
|
protected |
void kobuki::DockDrive::get_stream |
( |
RobotDockingState::State & |
state, |
|
|
double & |
vx, |
|
|
double & |
wz, |
|
|
const std::vector< unsigned char > & |
signal_filt |
|
) |
| |
|
protected |
std::string kobuki::DockDrive::getDebugStr |
( |
| ) |
const |
|
inline |
std::string kobuki::DockDrive::getDebugStream |
( |
| ) |
|
|
inline |
std::string kobuki::DockDrive::getStateStr |
( |
| ) |
const |
|
inline |
double kobuki::DockDrive::getVX |
( |
| ) |
const |
|
inline |
double kobuki::DockDrive::getWZ |
( |
| ) |
const |
|
inline |
bool kobuki::DockDrive::init |
( |
| ) |
|
|
inline |
bool kobuki::DockDrive::isEnabled |
( |
| ) |
const |
|
inline |
void kobuki::DockDrive::modeShift |
( |
const std::string & |
mode | ) |
|
void kobuki::DockDrive::processBumpChargeEvent |
( |
const unsigned char & |
bumper, |
|
|
const unsigned char & |
charger |
|
) |
| |
|
protected |
void kobuki::DockDrive::scan |
( |
RobotDockingState::State & |
state, |
|
|
double & |
vx, |
|
|
double & |
wz, |
|
|
const std::vector< unsigned char > & |
signal_filt, |
|
|
const ecl::LegacyPose2D< double > & |
pose_update, |
|
|
std::string & |
debug_str |
|
) |
| |
|
protected |
void kobuki::DockDrive::setMinAbsV |
( |
double |
mav | ) |
|
|
inline |
void kobuki::DockDrive::setMinAbsW |
( |
double |
maw | ) |
|
|
inline |
void kobuki::DockDrive::setVel |
( |
double |
v, |
|
|
double |
w |
|
) |
| |
|
private |
void kobuki::DockDrive::update |
( |
const std::vector< unsigned char > & |
signal, |
|
|
const unsigned char & |
bumper, |
|
|
const unsigned char & |
charger, |
|
|
const ecl::LegacyPose2D< double > & |
pose |
|
) |
| |
Updates the odometry from firmware stamps and encoders.
Really horrible - could do with an overhaul.
- Parameters
-
dock_ir | signal |
bumper | sensor |
charger | sensor |
current | pose |
Definition at line 115 of file dock_drive.cpp.
void kobuki::DockDrive::updateVelocity |
( |
const std::vector< unsigned char > & |
signal_filt, |
|
|
const ecl::LegacyPose2D< double > & |
pose_update, |
|
|
std::string & |
debug_str |
|
) |
| |
|
protected |
bool kobuki::DockDrive::validateSignal |
( |
const std::vector< unsigned char > & |
signal_filt, |
|
|
const unsigned int |
state |
|
) |
| |
|
protected |
void kobuki::DockDrive::velocityCommands |
( |
const double & |
vx, |
|
|
const double & |
wz |
|
) |
| |
int kobuki::DockDrive::bump_remainder |
|
private |
bool kobuki::DockDrive::can_run |
|
private |
std::string kobuki::DockDrive::debug_output |
|
private |
std::string kobuki::DockDrive::debug_str |
|
private |
int kobuki::DockDrive::dock_detector |
|
private |
int kobuki::DockDrive::dock_stabilizer |
|
private |
bool kobuki::DockDrive::is_enabled |
|
private |
double kobuki::DockDrive::min_abs_v |
|
private |
double kobuki::DockDrive::min_abs_w |
|
private |
std::vector<std::vector<unsigned char> > kobuki::DockDrive::past_signals |
|
private |
std::vector<std::string> kobuki::DockDrive::ROBOT_STATE_STR |
|
private |
double kobuki::DockDrive::rotated |
|
private |
unsigned int kobuki::DockDrive::signal_window |
|
private |
std::string kobuki::DockDrive::state_str |
|
private |
double kobuki::DockDrive::vx |
|
private |
double kobuki::DockDrive::wz |
|
private |
The documentation for this class was generated from the following files: