|
This class holds a pool of local VirtualRobots for multi threaded applications that can be requested by the user. More...
#include <RobotAPI/libraries/core/RobotPool.h>
Public Member Functions | |
size_t | clean () |
Removes unused robots from the pool. More... | |
size_t | getPoolSize () const |
VirtualRobot::RobotPtr | getRobot (int inflation=0) |
getRobot More... | |
size_t | getRobotsInUseCount () const |
RobotPool (VirtualRobot::RobotPtr robot, size_t defaultSize=1) | |
This class holds a pool of local VirtualRobots for multi threaded applications that can be requested by the user.
When calling getRobot() it is guaranteed that that robot is not requested by any other user/thread. When the return shared ptr goes out of the, the robot is available again.
Definition at line 39 of file RobotPool.h.
RobotPool | ( | VirtualRobot::RobotPtr | robot, |
size_t | defaultSize = 1 |
||
) |
size_t clean | ( | ) |
Removes unused robots from the pool.
Definition at line 92 of file RobotPool.cpp.
size_t getPoolSize | ( | ) | const |
Definition at line 64 of file RobotPool.cpp.
VirtualRobot::RobotPtr getRobot | ( | int | inflation = 0 | ) |
getRobot
inflation | inflation of collision model in mm |
Definition at line 44 of file RobotPool.cpp.
size_t getRobotsInUseCount | ( | ) | const |
Definition at line 75 of file RobotPool.cpp.