FSM move. More...
#include <sys/time.h>
#include <time.h>
#include "trgen.h"
#include "balet.h"
#include "robodata.h"
#include <robot.h>
#include <pthread.h>
#include <path_planner.h>
#include <signal.h>
#include <movehelper.h>
#include <sharp.h>
#include <unistd.h>
#include <map.h>
#include "robot_config.h"
#include <robomath.h>
#include "motion-control.h"
#include <hokuyo.h>
#include <ul_log.h>
Defines | |
#define | NEVER |
#define | DEBUG |
#define | FSM_MOTION |
#define | DBG(format,...) |
#define | MAX_WAIT_FOR_CLOSE_MS 2000 |
#define | TRGEN_DELAY 0.3 |
Enumerations | |
enum | target_status { TARGET_OK, TARGET_INACC, TARGET_ERROR } |
Functions | |
UL_LOG_CUST (ulogd_fsmmove) | |
void | invalidate (Point point) |
enum target_status | recalculate_trajectory (void) |
Recalculates trajectory to previous move target specified by new_target(). | |
FSM_STATE_DECL (movement) | |
FSM_STATE_DECL (close_to_target) | |
FSM_STATE_DECL (wait_for_command) | |
FSM_STATE_DECL (lost) | |
FSM_STATE_DECL (wait_and_try_again) | |
FSM_STATE (init) | |
FSM_STATE (wait_for_command) | |
FSM_STATE (movement) | |
FSM_STATE (close_to_target) | |
FSM_STATE (lost) | |
FSM_STATE (wait_and_try_again) |
FSM move.
#define DBG | ( | format, | ||
... | ||||
) |
#define DEBUG |
#define FSM_MOTION |
#define MAX_WAIT_FOR_CLOSE_MS 2000 |
#define NEVER |
#define TRGEN_DELAY 0.3 |
enum target_status |
FSM_STATE | ( | wait_and_try_again | ) |
FSM_STATE | ( | movement | ) |
FSM_STATE | ( | close_to_target | ) |
FSM_STATE | ( | lost | ) |
FSM_STATE | ( | init | ) |
FSM_STATE | ( | wait_for_command | ) |
FSM_STATE_DECL | ( | movement | ) |
FSM_STATE_DECL | ( | close_to_target | ) |
FSM_STATE_DECL | ( | wait_for_command | ) |
FSM_STATE_DECL | ( | wait_and_try_again | ) |
FSM_STATE_DECL | ( | lost | ) |
void invalidate | ( | Point | point | ) |
enum target_status recalculate_trajectory | ( | void | ) |
Recalculates trajectory to previous move target specified by new_target().
UL_LOG_CUST | ( | ulogd_fsmmove | ) |