|
|
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. | |
| size_t | getPoolSize () const |
| VirtualRobot::RobotPtr | getRobot (int inflation=0) |
| getRobot | |
| 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.
| RobotPool | ( | VirtualRobot::RobotPtr | robot, |
| size_t | defaultSize = 1 ) |
| size_t clean | ( | ) |
Removes unused robots from the pool.
| size_t getPoolSize | ( | ) | const |
| VirtualRobot::RobotPtr getRobot | ( | int | inflation = 0 | ) |
getRobot
| inflation | inflation of collision model in mm |
| size_t getRobotsInUseCount | ( | ) | const |