Parasol Planning Library (PPL)
|
A group of one or more robots. More...
#include <RobotGroup.h>
Public Types | |
Local Types | |
typedef std::vector< Robot * >::iterator | iterator |
typedef std::vector< Robot * >::const_iterator | const_iterator |
Public Member Functions | |
Construction | |
RobotGroup (MPProblem *const _problem, const std::string &_label, const std::vector< Robot * > &_robots) | |
RobotGroup (MPProblem *const _problem, XMLNode &_node) | |
Accessors | |
std::string | GetLabel () const noexcept |
Get the group label. More... | |
Robot * | GetRobot (const size_t _index) const noexcept |
Get a robot by index. More... | |
Robot * | GetRobot (const std::string &_label) const noexcept |
Get a robot by label. More... | |
const std::vector< Robot * > & | GetRobots () const noexcept |
Get all robots. More... | |
size_t | GetGroupIndex (Robot *const _robot) const noexcept |
bool | VerifyRobotInGroup (Robot *const _robot) const noexcept |
Check whether the robot is in the group or not. More... | |
size_t | Size () const noexcept |
Get the number of robots in the group. More... | |
size_t | TotalDofs () const noexcept |
Get the number of DOFs accumulated over all robots. More... | |
Iteration | |
Iterate over the robots in the group. | |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
A group of one or more robots.
typedef std::vector<Robot*>::const_iterator RobotGroup::const_iterator |
typedef std::vector<Robot*>::iterator RobotGroup::iterator |
RobotGroup::RobotGroup | ( | MPProblem *const | _problem, |
const std::string & | _label, | ||
const std::vector< Robot * > & | _robots | ||
) |
Construct a group from a set of robots.
_problem | The owning MPProblem. |
_label | The group label. |
_robot | The set of robots in this group. |
Construct a group from an XML node. The referenced robots must be specified before the group in the XML file.
_problem | The owning MPProblem. |
_node | The XML node. |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Get the group index for a robot.
|
noexcept |
Get the group label.
|
noexcept |
Get a robot by index.
|
noexcept |
Get a robot by label.
|
noexcept |
Get all robots.
|
noexcept |
Get the number of robots in the group.
|
noexcept |
Get the number of DOFs accumulated over all robots.
|
noexcept |
Check whether the robot is in the group or not.