|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_NODE
10 #define YARP_MANAGER_NODE
47 bVirtual = virtualLink;
53 void setVirtual(
bool virtualLink) { bVirtual = virtualLink;}
82 if(szLabel) { label = szLabel; }
85 virtual ~Node() { model =
nullptr; }
92 return ((
sucCount()==0) ?
true :
false);
96 void setLabel(
const char* szLabel) {
if(szLabel) { label = szLabel; } }
97 const char*
getLabel() {
return label.c_str(); }
98 int sucCount() {
return static_cast<int>(sucessors.size()); }
102 bool addSuc(
Node* node,
float weight,
bool _virtual=
false);
131 #endif // __YARP_MANAGER_NODE_
virtual ~GraphicModel()=default
std::vector< Node * > NodePVector
void setLabel(const char *szLabel)
void setVisited(bool vis)
Node(NodeType _type, const char *szLabel)
std::vector< Link > LinkContainer
std::vector< GyPoint > points
GraphicModel * getModel()
bool addSuc(Node *node, float weight, bool _virtual=false)
class Node
Link holding all the links of a node.
void setModel(GraphicModel *mdl)
std::vector< Node * >::iterator NodePVIterator
std::vector< Link >::iterator LinkIterator
bool removeSuc(Node *node)
Link & getLinkAt(int index)
The main, catch-all namespace for YARP.
void setVirtual(bool virtualLink)
void setSatisfied(bool sat)
Link(Node *to, float weight, bool virtualLink=false)
enum yarp::manager::__NodeType NodeType