Classes | Public Types | Public Member Functions | Public Attributes | List of all members
FollowPedestrian Class Reference

Classes

class  SafetyZone
 
class  SearchArea
 
class  Status
 
class  Targets
 

Public Types

enum  enum_state {
  SEARCHING, TRACKING, TRACKING_NOT_SAFE, TARGET_LOST,
  INITIALISE
}
 
enum  t_transitions {
  SEARCHING_2_TRACKING =88, SEARCHING_2_TRACKING_NOT_SAFE, TRACKING_2_TARGET_LOST, TRACKING_2_TRACKING_NOT_SAFE,
  TRACKING_NOT_SAFE_2_TRACKING, TRACKING_NOT_SAFE_2_TARGET_LOST, NONE
}
 

Public Member Functions

void createMarkers (std::vector< visualization_msgs::Marker > &marker_vec)
 
 FollowPedestrian (ros::NodeHandle nh_)
 
void foveationcontrol (const Status &status)
 
void foveationcontrolHome (void)
 
void foveationcontrolSweeping (void)
 
bool getNewTargetInformation (Targets &targets, Status &status)
 
bool isSafe (const SafetyZone zone, const Targets targets)
 
bool isSafeUsingLasers (void)
 
bool loop ()
 
void playSound (int sit, int mandatory, double num_h=5)
 
void printStatus ()
 
bool searchForNewTarget (const Targets &targets, Status &status, const SearchArea &area)
 
void sleepok (int t)
 
void stateMachine (void)
 
void targetsHandler (const mtt::TargetList &targetlist)
 

Public Attributes

double a_h
 
ros::Publisher command_publisher
 
bool FLAG_LASER_SAFE_TO_DRIVE
 
ros::Publisher marker_publisher
 
ros::NodeHandle nh
 
SafetyZone safety_zone
 
SearchArea search_area
 
sound_play::SoundClient sound_client
 
Status status
 
ros::Publisher target_publisher
 
Targets targets
 
ros::Subscriber targets_subscriber
 
tf::TransformListener transform_listener
 

Detailed Description

Definition at line 38 of file follow_pedestrian.cpp.

Member Enumeration Documentation

Enumerator
SEARCHING 
TRACKING 
TRACKING_NOT_SAFE 
TARGET_LOST 
INITIALISE 

Definition at line 41 of file follow_pedestrian.cpp.

Enumerator
SEARCHING_2_TRACKING 
SEARCHING_2_TRACKING_NOT_SAFE 
TRACKING_2_TARGET_LOST 
TRACKING_2_TRACKING_NOT_SAFE 
TRACKING_NOT_SAFE_2_TRACKING 
TRACKING_NOT_SAFE_2_TARGET_LOST 
NONE 

Definition at line 46 of file follow_pedestrian.cpp.

Constructor & Destructor Documentation

FollowPedestrian::FollowPedestrian ( ros::NodeHandle  nh_)
inline

Definition at line 290 of file follow_pedestrian.cpp.

Member Function Documentation

void FollowPedestrian::createMarkers ( std::vector< visualization_msgs::Marker > &  marker_vec)
inline

Definition at line 104 of file follow_pedestrian.cpp.

void FollowPedestrian::foveationcontrol ( const Status status)
inline

Definition at line 421 of file follow_pedestrian.cpp.

void FollowPedestrian::foveationcontrolHome ( void  )
inline

Definition at line 377 of file follow_pedestrian.cpp.

void FollowPedestrian::foveationcontrolSweeping ( void  )
inline

Definition at line 390 of file follow_pedestrian.cpp.

bool FollowPedestrian::getNewTargetInformation ( Targets targets,
Status status 
)
inline

Definition at line 515 of file follow_pedestrian.cpp.

bool FollowPedestrian::isSafe ( const SafetyZone  zone,
const Targets  targets 
)
inline

Definition at line 275 of file follow_pedestrian.cpp.

bool FollowPedestrian::isSafeUsingLasers ( void  )
inline

Definition at line 498 of file follow_pedestrian.cpp.

bool FollowPedestrian::loop ( )
inline

Definition at line 776 of file follow_pedestrian.cpp.

void FollowPedestrian::playSound ( int  sit,
int  mandatory,
double  num_h = 5 
)
inline

Definition at line 434 of file follow_pedestrian.cpp.

void FollowPedestrian::printStatus ( )
inline

Definition at line 535 of file follow_pedestrian.cpp.

bool FollowPedestrian::searchForNewTarget ( const Targets targets,
Status status,
const SearchArea area 
)
inline

If the object meets all requeriments we put his information on the current target

Definition at line 472 of file follow_pedestrian.cpp.

void FollowPedestrian::sleepok ( int  t)
inline

Definition at line 466 of file follow_pedestrian.cpp.

void FollowPedestrian::stateMachine ( void  )
inline

Tracking state machine


STATE MACHINE


STATE INITIALIZE


— TIMER UPDATES — //

— STATE ACTIONS —//

— TRANSITIONS —//

— TRANSITION ACTIONS —//


STATE SEARCHING


— TIMER UPDATES — //

— STATE ACTIONS —//

— TRANSITIONS —//

— TRANSITION ACTIONS —//

— TRANSITION ACTIONS —//


STATE TRACKING


— TIMER UPDATES — //

— STATE ACTIONS —//

— TRANSITIONS —//

— TRANSITION ACTIONS —//

— TRANSITION ACTIONS —//

— TRANSITION ACTIONS —//


TRACKING_NOT_SAFE


— TIMER UPDATES — //

— STATE ACTIONS —//

— TRANSITIONS —//

— TRANSITION ACTIONS —//

— TRANSITION ACTIONS —//

— TRANSITION ACTIONS —//


TARGET_LOST


— TIMER UPDATES — //

— STATE ACTIONS —//

— TRANSITIONS —//


UNKNOWN STATE


Definition at line 561 of file follow_pedestrian.cpp.

void FollowPedestrian::targetsHandler ( const mtt::TargetList &  targetlist)
inline

Definition at line 319 of file follow_pedestrian.cpp.

Member Data Documentation

double FollowPedestrian::a_h

Definition at line 800 of file follow_pedestrian.cpp.

ros::Publisher FollowPedestrian::command_publisher

Definition at line 811 of file follow_pedestrian.cpp.

bool FollowPedestrian::FLAG_LASER_SAFE_TO_DRIVE

Definition at line 799 of file follow_pedestrian.cpp.

ros::Publisher FollowPedestrian::marker_publisher

Definition at line 812 of file follow_pedestrian.cpp.

ros::NodeHandle FollowPedestrian::nh

Definition at line 807 of file follow_pedestrian.cpp.

SafetyZone FollowPedestrian::safety_zone

Definition at line 803 of file follow_pedestrian.cpp.

SearchArea FollowPedestrian::search_area

Definition at line 802 of file follow_pedestrian.cpp.

sound_play::SoundClient FollowPedestrian::sound_client

Definition at line 809 of file follow_pedestrian.cpp.

Status FollowPedestrian::status

Definition at line 805 of file follow_pedestrian.cpp.

ros::Publisher FollowPedestrian::target_publisher

Definition at line 810 of file follow_pedestrian.cpp.

Targets FollowPedestrian::targets

Definition at line 804 of file follow_pedestrian.cpp.

ros::Subscriber FollowPedestrian::targets_subscriber

Definition at line 813 of file follow_pedestrian.cpp.

tf::TransformListener FollowPedestrian::transform_listener

Definition at line 808 of file follow_pedestrian.cpp.


The documentation for this class was generated from the following file:


follow_pedestrian
Author(s): Miguel Oliveira, Jorge Almeida
autogenerated on Mon Mar 2 2015 01:31:38