Classes | Macros | Functions | Variables
atlasmv.h File Reference

Includes, global vars, funtion prototypes, etc. More...

#include "c_atlasmv.h"
#include <pthread.h>
#include <strings.h>
#include <math.h>
#include <queue>
#include <vector>
#include <atlasmv_base/AtlasmvLightsCommand.h>
#include <atlasmv_base/AtlasmvVertSignsCommand.h>
#include <atlasmv_base/AtlasmvMotionCommand.h>
#include <atlasmv_base/AtlasmvStatus.h>
Include dependency graph for atlasmv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  command_queue_priority< cmd_type >
 
struct  t_motion_model
 

Macros

#define _DO_NOT_USE_CARMEN_   0
 
#define _DO_NOT_USE_OPENCV_   0
 

Functions

void atlasmv_help (bool debug)
 writes used flags for help. More...
 
void atlasmv_shutdown_module (int x)
 
int increment_motion_model (t_motion_model *model, double dt)
 Increments motion model based on the current available information. More...
 
int initialize_motion_model (t_motion_model *model, double X0, double Y0, double orientation, double wheelbase)
 Initialize car motion model. More...
 
int main (int argc, char **argv)
 
double percentage2real_velocity (double percentage)
 
int update_motion_model (t_motion_model *model, double velocity, double steering_angle)
 Updates velocity and steering variables. More...
 

Variables

c_atlasmvatlasmv
 
TYPE_atlasmv_public_params atlasmv_details
 
atlasmv_base::AtlasmvLightsCommandPtr atlasmv_lights
 
atlasmv_base::AtlasmvMotionCommandPtr atlasmv_motion
 
atlasmv_base::AtlasmvStatusPtr atlasmv_status
 
atlasmv_base::AtlasmvVertSignsCommandPtr atlasmv_vert_signs
 
double brake
 
int brake_check
 
pthread_mutex_t brake_check_mutex
 
pthread_mutex_t brk_mutex = PTHREAD_MUTEX_INITIALIZER
 
pthread_mutex_t command_mutex = PTHREAD_MUTEX_INITIALIZER
 
command_queue_priority
< atlasmv_base::AtlasmvMotionCommandPtr > 
command_queue
 
int count_des_errors
 
pthread_mutex_t count_des_errors_mutex
 
int des_iret
 
pthread_t des_thread
 
int dioc_iret
 
pthread_mutex_t dioc_mutex = PTHREAD_MUTEX_INITIALIZER
 
pthread_t dioc_thread
 
double dir
 
pthread_mutex_t dir_mutex = PTHREAD_MUTEX_INITIALIZER
 
t_motion_model motion_model
 
char new_command_received
 
TYPE_atlasmv_public_params params
 
int servos_iret
 
pthread_t servos_thread
 
double speed
 
int speed_check
 
pthread_mutex_t speed_check_mutex
 
pthread_mutex_t speed_mutex = PTHREAD_MUTEX_INITIALIZER
 
c_timer timer
 

Detailed Description

Includes, global vars, funtion prototypes, etc.

Definition in file atlasmv.h.

Macro Definition Documentation

#define _DO_NOT_USE_CARMEN_   0

Definition at line 36 of file atlasmv.h.

#define _DO_NOT_USE_OPENCV_   0

Definition at line 35 of file atlasmv.h.

Function Documentation

void atlasmv_help ( bool  help)

writes used flags for help.

Parameters
helptrue if we want to show the help, false if not

Definition at line 595 of file atlasmv.cpp.

void atlasmv_shutdown_module ( int  x)
int increment_motion_model ( t_motion_model model,
double  dt 
)

Increments motion model based on the current available information.

Parameters
modelMotion model to use
dttime lapse since last iteration
Returns
error code

Definition at line 561 of file atlasmv.cpp.

int initialize_motion_model ( t_motion_model model,
double  X0,
double  Y0,
double  orientation,
double  wheelbase 
)

Initialize car motion model.

Parameters
modelMotion model to use
X0initial x position
Y0initial y position
orientationinitial orientation
wheelbasewheelbase of the car
Returns
error code

Definition at line 530 of file atlasmv.cpp.

int main ( int  argc,
char **  argv 
)

ROS INIT

Ir buscar os parametros

Definition at line 328 of file atlasmv.cpp.

double percentage2real_velocity ( double  percentage)
int update_motion_model ( t_motion_model model,
double  velocity,
double  steering_angle 
)

Updates velocity and steering variables.

Parameters
modelMotion model to use
velocitycurrent velocity
steering_anglecurrent steering angle
Returns
error code

Definition at line 548 of file atlasmv.cpp.

Variable Documentation

c_atlasmv* atlasmv

Definition at line 193 of file atlasmv.h.

TYPE_atlasmv_public_params atlasmv_details

Definition at line 192 of file atlasmv.h.

atlasmv_base::AtlasmvLightsCommandPtr atlasmv_lights

Definition at line 188 of file atlasmv.h.

atlasmv_base::AtlasmvMotionCommandPtr atlasmv_motion

Definition at line 186 of file atlasmv.h.

atlasmv_base::AtlasmvStatusPtr atlasmv_status

Definition at line 185 of file atlasmv.h.

atlasmv_base::AtlasmvVertSignsCommandPtr atlasmv_vert_signs

Definition at line 187 of file atlasmv.h.

double brake

Definition at line 182 of file atlasmv.h.

int brake_check

Definition at line 174 of file atlasmv.h.

pthread_mutex_t brake_check_mutex

Definition at line 173 of file atlasmv.h.

pthread_mutex_t brk_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 167 of file atlasmv.h.

pthread_mutex_t command_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 169 of file atlasmv.h.

command_queue_priority<atlasmv_base::AtlasmvMotionCommandPtr> command_queue

Definition at line 195 of file atlasmv.h.

int count_des_errors

Definition at line 175 of file atlasmv.h.

pthread_mutex_t count_des_errors_mutex

Definition at line 170 of file atlasmv.h.

int des_iret

Definition at line 164 of file atlasmv.h.

pthread_t des_thread

Definition at line 163 of file atlasmv.h.

int dioc_iret

Definition at line 164 of file atlasmv.h.

pthread_mutex_t dioc_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 168 of file atlasmv.h.

pthread_t dioc_thread

Definition at line 163 of file atlasmv.h.

double dir

Definition at line 182 of file atlasmv.h.

pthread_mutex_t dir_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 166 of file atlasmv.h.

t_motion_model motion_model

Definition at line 180 of file atlasmv.h.

char new_command_received

Definition at line 183 of file atlasmv.h.

Definition at line 178 of file atlasmv.h.

int servos_iret

Definition at line 164 of file atlasmv.h.

pthread_t servos_thread

Definition at line 163 of file atlasmv.h.

double speed

Definition at line 182 of file atlasmv.h.

int speed_check

Definition at line 172 of file atlasmv.h.

pthread_mutex_t speed_check_mutex

Definition at line 171 of file atlasmv.h.

pthread_mutex_t speed_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 165 of file atlasmv.h.

c_timer timer

Definition at line 179 of file atlasmv.h.



atlasmv_base
Author(s): David Gameiro, Jorge Almeida
autogenerated on Mon Mar 2 2015 01:31:28