Public Member Functions | Protected Attributes | List of all members
multi_robot_router::SpeedScheduler Class Reference

#include <speed_scheduler.h>

Public Member Functions

const std::vector< float > & getActualSpeeds ()
 returns the computed speed schedule More...
 
bool rescheduleSpeeds (const uint32_t _collidingRobot, const std::vector< uint32_t > &_collsisions, std::vector< float > &_newSchedule, int32_t &_firstRobotToReplan)
 reduces a selected robots maximum speed More...
 
void reset (const uint32_t _nrRobots)
 resets the speed rescheduler (all speeds to max) More...
 
 SpeedScheduler (const uint32_t _nrRobots)
 constructor More...
 

Protected Attributes

std::vector< float > actualSpeedSchedule_
 
std::vector< std::vector< float > > checkedSchedules_
 

Detailed Description

Definition at line 37 of file speed_scheduler.h.

Constructor & Destructor Documentation

multi_robot_router::SpeedScheduler::SpeedScheduler ( const uint32_t  _nrRobots)

constructor

Parameters
_nrRobotsthe number of robots used for speed rescheduling

Definition at line 40 of file speed_scheduler.cpp.

Member Function Documentation

const std::vector< float > & multi_robot_router::SpeedScheduler::getActualSpeeds ( )

returns the computed speed schedule

Returns
the speed schedule

Definition at line 35 of file speed_scheduler.cpp.

bool multi_robot_router::SpeedScheduler::rescheduleSpeeds ( const uint32_t  _collidingRobot,
const std::vector< uint32_t > &  _collsisions,
std::vector< float > &  _newSchedule,
int32_t &  _firstRobotToReplan 
)

reduces a selected robots maximum speed

Parameters
_collidingRobotthe robot which has failed to find a path (therefore a robot with higher priority has to reduce its speed)
_collisionsthe collisions the _collidiongRobot has encounterd with other ones
_newSchedulethe new speed Schedule
_firstRobotToReplanthe robot with reduced speed
Returns
if a new speed schedule is found

Definition at line 45 of file speed_scheduler.cpp.

void multi_robot_router::SpeedScheduler::reset ( const uint32_t  _nrRobots)

resets the speed rescheduler (all speeds to max)

Parameters
_nrRobotsthe number of robots used for speed rescheduling

Definition at line 82 of file speed_scheduler.cpp.

Member Data Documentation

std::vector<float> multi_robot_router::SpeedScheduler::actualSpeedSchedule_
protected

Definition at line 67 of file speed_scheduler.h.

std::vector<std::vector<float> > multi_robot_router::SpeedScheduler::checkedSchedules_
protected

Definition at line 66 of file speed_scheduler.h.


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


tuw_multi_robot_router
Author(s): Benjamin Binder
autogenerated on Mon Jun 10 2019 15:42:49