Skip to content

Class robot_dart::RobotPool

ClassList > robot_dart > RobotPool

Public Types

Type Name
typedef std::function< std::shared_ptr< Robot >()> robot_creator_t

Public Functions

Type Name
RobotPool (const robot_creator_t & robot_creator, size_t pool_size=32, bool verbose=true)
RobotPool (const RobotPool &) = delete
virtual void free_robot (const std::shared_ptr< Robot > & robot)
virtual std::shared_ptr< Robot > get_robot (const std::string & name="robot")
const std::string & model_filename () const
void operator= (const RobotPool &) = delete
virtual ~RobotPool ()

Protected Attributes

Type Name
std::vector< bool > _free
std::string _model_filename
size_t _pool_size
robot_creator_t _robot_creator
std::mutex _skeleton_mutex
std::vector< dart::dynamics::SkeletonPtr > _skeletons
bool _verbose

Protected Functions

Type Name
virtual void _reset_robot (const std::shared_ptr< Robot > & robot)

Public Types Documentation

typedef robot_creator_t

using robot_dart::RobotPool::robot_creator_t =  std::function<std::shared_ptr<Robot>()>;

Public Functions Documentation

function RobotPool [½]

robot_dart::RobotPool::RobotPool (
    const robot_creator_t & robot_creator,
    size_t pool_size=32,
    bool verbose=true
) 

function RobotPool [2/2]

robot_dart::RobotPool::RobotPool (
    const RobotPool &
) = delete

function free_robot

virtual void robot_dart::RobotPool::free_robot (
    const std::shared_ptr< Robot > & robot
) 

function get_robot

virtual std::shared_ptr< Robot > robot_dart::RobotPool::get_robot (
    const std::string & name="robot"
) 

function model_filename

inline const std::string & robot_dart::RobotPool::model_filename () const

function operator=

void robot_dart::RobotPool::operator= (
    const RobotPool &
) = delete

function ~RobotPool

inline virtual robot_dart::RobotPool::~RobotPool () 

Protected Attributes Documentation

variable _free

std::vector<bool> robot_dart::RobotPool::_free;

variable _model_filename

std::string robot_dart::RobotPool::_model_filename;

variable _pool_size

size_t robot_dart::RobotPool::_pool_size;

variable _robot_creator

robot_creator_t robot_dart::RobotPool::_robot_creator;

variable _skeleton_mutex

std::mutex robot_dart::RobotPool::_skeleton_mutex;

variable _skeletons

std::vector<dart::dynamics::SkeletonPtr> robot_dart::RobotPool::_skeletons;

variable _verbose

bool robot_dart::RobotPool::_verbose;

Protected Functions Documentation

function _reset_robot

virtual void robot_dart::RobotPool::_reset_robot (
    const std::shared_ptr< Robot > & robot
) 


The documentation for this class was generated from the following file robot_dart/robot_pool.hpp