|
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 40 of file RobotPool.h.
RobotPool | ( | VirtualRobot::RobotPtr | robot, |
size_t | defaultSize = 1 |
||
) |
size_t clean | ( | ) |
Removes unused robots from the pool.
Definition at line 98 of file RobotPool.cpp.
size_t getPoolSize | ( | ) | const |
Definition at line 68 of file RobotPool.cpp.
VirtualRobot::RobotPtr getRobot | ( | int | inflation = 0 | ) |
getRobot
inflation | inflation of collision model in mm |
Definition at line 45 of file RobotPool.cpp.
size_t getRobotsInUseCount | ( | ) | const |
Definition at line 80 of file RobotPool.cpp.