/home/laradmin/lar/bases/atlasmv_base/include/atlasmv.h File Reference

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

#include "c_atlasmv.h"
#include <pthread.h>
#include <string.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <cmath>
#include <stdexcept>
#include "duration.h"
#include <boost/math/special_functions/round.hpp>
#include "rostime_decl.h"
#include <sys/time.h>
#include "ros/time.h"
#include <cstdio>
#include <sstream>
#include <cstdarg>
#include <log4cxx/logger.h>
#include "ros/console.h"
#include <boost/static_assert.hpp>
#include <ros/platform.h>
#include <stdint.h>
#include <assert.h>
#include <stddef.h>
#include "ros/assert.h"
#include <vector>
#include <map>
#include <set>
#include <list>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/function.hpp>
#include <ros/macros.h>
#include "exceptions.h"
#include "roscpp_serialization_macros.h"
#include <boost/shared_array.hpp>
#include "ros/forwards.h"
#include "ros/common.h"
#include <boost/array.hpp>
#include <ros/types.h>
#include "serialized_message.h"
#include "message_forward.h"
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/remove_const.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include "message_traits.h"
#include "ros/exception.h"
#include <boost/call_traits.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/or.hpp>
#include <boost/mpl/not.hpp>
#include <cstring>
#include <boost/bind.hpp>
#include "common.h"
#include <typeinfo>
#include <ros/message_traits.h>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/make_shared.hpp>
#include <ros/static_assert.h>
#include "ros/builtin_message_traits.h"
#include "ros/serialization.h"
#include "ros/message_event.h"
#include "forwards.h"
#include "timer_options.h"
#include "ros/rate.h"
#include "wall_timer_options.h"
#include "ros/message.h"
#include "ros/service_traits.h"
#include <boost/lexical_cast.hpp>
#include "subscription_callback_helper.h"
#include "ros/spinner.h"
#include <time.h>
#include "ros/publisher.h"
#include <boost/utility.hpp>
#include "ros/service_server.h"
#include "ros/subscriber.h"
#include "ros/node_handle.h"
#include "ros/init.h"
#include "XmlRpcValue.h"
#include "node_handle.h"
#include "ros/names.h"
#include <signal.h>
#include <timer.h>
#include <math.h>
#include <fstream>
#include <class_dioc.h>
#include <des70_10.h>
#include <atlasmv_base/AtlasmvLightsCommand.h>
#include <atlasmv_base/AtlasmvMotionCommand.h>
#include <atlasmv_base/AtlasmvVertSignsCommand.h>
#include <atlasmv_base/AtlasmvStatus.h>
#include <strings.h>
#include <queue>
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

Defines

#define _DO_NOT_USE_CARMEN_   0
#define _DO_NOT_USE_OPENCV_   0

Functions

void atlasmv_help (bool debug)
 writes used flags for help.
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.
int initialize_motion_model (t_motion_model *model, double X0, double Y0, double orientation, double wheelbase)
 Initialize car motion model.
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.

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.


Define 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:
help true 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:
model Motion model to use
dt time 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:
model Motion model to use
X0 initial x position
Y0 initial y position
orientation initial orientation
wheelbase wheelbase 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:
model Motion model to use
velocity current velocity
steering_angle current steering angle
Returns:
error code

Definition at line 548 of file atlasmv.cpp.


Variable Documentation

Definition at line 193 of file atlasmv.h.

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.

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.

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.

Definition at line 180 of file atlasmv.h.

Definition at line 183 of file atlasmv.h.

Definition at line 178 of file atlasmv.h.

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.

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.

Definition at line 179 of file atlasmv.h.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


atlasmv_base
Author(s): David Gameiro, Jorge Almeida
autogenerated on Wed Jul 23 04:34:43 2014