icub-client
|
Contains classes to represent entities and relations between them. More...
Classes | |
class | icubclient::Action |
Represents an action, whether composite or not. More... | |
struct | icubclient::Body |
Represent a the body of an agent. More... | |
class | icubclient::Agent |
Represent an agent. More... | |
class | icubclient::Bodypart |
Represents a body part of the robot. More... | |
class | icubclient::Entity |
Represent any entity that can be stored within the OPC. More... | |
class | icubclient::Object |
Represent any physical entity (including objects and agents) that can be stored within the OPC. More... | |
class | icubclient::Relation |
Represent a relation between two entities. More... | |
Contains classes to represent entities and relations between them.
Those classes are meant to be accessed through the opcClient.
class icubclient::Action |
Represents an action, whether composite or not.
Stores as well the expected impact on the drives.
Public Member Functions | |
Action () | |
Action (const Action &b) | |
virtual bool | isType (std::string _entityType) const |
Test if an entity is inheriting a given type. More... | |
void | setInitialDescription (const Relation &r) |
Relation | description () const |
Return initialDescription as Relation. More... | |
Action | express (const Relation &r) const |
void | append (Action &a) |
Append a subaction to create a composite one. More... | |
virtual std::list< Action > | asPlan () const |
Get an unrolled plan description. More... | |
virtual std::list< Action > | asPlan (const Relation &newDescription) const |
Get an unrolled plan description based on new arguments. More... | |
virtual bool | isComposite () |
Is an action composite or not? More... | |
int | size () |
Number of subactions composing this one. More... | |
virtual yarp::os::Bottle | asBottle () const |
Number of subactions composing this one. More... | |
virtual bool | fromBottle (const yarp::os::Bottle &b) |
Fill entity fields from a bottle representation. More... | |
virtual std::string | toString () const |
Return a human readable description of the entity. More... | |
virtual void | getPlanDrivesEffect (std::map< std::string, double > &driveEffects) |
Estimate the effect of this plan on a specific drive, by summing all the effects of subplans to this specific plan effect. More... | |
virtual std::string | toString (const Relation &newRelation) const |
Gives the string according to a current situation. More... | |
Public Member Functions inherited from icubclient::Entity | |
Entity () | |
Entity (const Entity &b) | |
Entity (yarp::os::Bottle &b) | |
virtual | ~Entity () |
std::string | name () const |
Return the name of an entity (which has to be unique within the OPC) More... | |
int | opc_id () const |
Return the id of an entity (which has to be unique within the OPC) Typically, modules should employ the name() instead. More... | |
std::string | properties (const std::string &p) const |
Returns the name of an entity contained in a property, returns the string "NULL" if property is not set Deprecated, do not use! More... | |
std::string | entity_type () const |
Return the specific type of an entity. More... | |
bool | operator== (const Entity &b) const |
bool | operator< (const Entity &b) const |
bool | operator> (const Entity &b) const |
Public Attributes | |
std::map< std::string, double > | estimatedDriveEffects |
Estimated effects on the drive. More... | |
Friends | |
class | OPCClient |
Additional Inherited Members | |
Protected Member Functions inherited from icubclient::Entity | |
void | changeName (std::string sName) |
Protected Attributes inherited from icubclient::Entity | |
std::string | m_entity_type |
Action::Action | ( | ) |
Definition at line 27 of file action.cpp.
Action::Action | ( | const Action & | b | ) |
Definition at line 32 of file action.cpp.
void Action::append | ( | Action & | a | ) |
Append a subaction to create a composite one.
a | The subaction |
Definition at line 131 of file action.cpp.
|
virtual |
Number of subactions composing this one.
Reimplemented from icubclient::Entity.
Definition at line 39 of file action.cpp.
|
virtual |
Get an unrolled plan description.
Definition at line 136 of file action.cpp.
Get an unrolled plan description based on new arguments.
newDescription | The new arguments |
Definition at line 151 of file action.cpp.
Relation Action::description | ( | ) | const |
Return initialDescription as Relation.
Definition at line 124 of file action.cpp.
Definition at line 104 of file action.cpp.
|
virtual |
Fill entity fields from a bottle representation.
b | a pointer to the bottle containing the entity representation |
Reimplemented from icubclient::Entity.
Definition at line 68 of file action.cpp.
|
virtual |
Estimate the effect of this plan on a specific drive, by summing all the effects of subplans to this specific plan effect.
Definition at line 158 of file action.cpp.
|
inlinevirtual |
|
inlinevirtual |
Test if an entity is inheriting a given type.
Reimplemented from icubclient::Entity.
void Action::setInitialDescription | ( | const Relation & | r | ) |
Definition at line 99 of file action.cpp.
|
inline |
|
virtual |
Return a human readable description of the entity.
Reimplemented from icubclient::Entity.
Definition at line 172 of file action.cpp.
|
virtual |
Gives the string according to a current situation.
newRelation | The new arguments |
Definition at line 177 of file action.cpp.
struct icubclient::Body |
Represent a the body of an agent.
Joints are stored as a dictionnary of string, position
Public Member Functions | |
Body () | |
yarp::os::Bottle | asBottle () const |
bool | fromBottle (const yarp::os::Bottle &b) |
Public Attributes | |
std::map< std::string, yarp::sig::VectorOf< double > > | m_parts |
|
inline |
class icubclient::Agent |
Represent an agent.
An agent is a Object which possesses emotions and beliefs. Beliefs are encoded as a list of relations.
Public Member Functions | |
Agent () | |
Agent (const Agent &b) | |
virtual bool | isType (std::string _entityType) const |
Test if an entity is inheriting a given type. More... | |
virtual yarp::os::Bottle | asBottle () const |
Return the entity as a bottle. More... | |
virtual bool | fromBottle (const yarp::os::Bottle &b) |
Fill entity fields from a bottle representation. More... | |
virtual std::string | toString () const |
Return a human readable description of the entity. More... | |
bool | addBelief (const Relation &r) |
Add the belief of a relation to the agent. More... | |
bool | removeBelief (const Relation &r) |
Remove the belief of a relation from the agent. More... | |
bool | checkBelief (const Relation &r) const |
Check if some relation is believed by an agent. More... | |
const std::list< Relation > & | beliefs () const |
Get a read-only copy of the agent believes. More... | |
Public Member Functions inherited from icubclient::Object | |
Object () | |
Object (const Object &b) | |
yarp::sig::VectorOf< double > | getSelfRelativePosition (const yarp::sig::VectorOf< double > &vInitialRoot) const |
Express a point given in the initial ego-centered reference frame in respect to the object reference frame. More... | |
std::string | objectAreaAsString () const |
double | saliency () const |
Get saliency of object. More... | |
void | setSaliency (double saliency) |
Set saliency of object. More... | |
double | value () const |
Get value of object. More... | |
void | setValue (double value) |
Set value of object. More... | |
Public Member Functions inherited from icubclient::Entity | |
Entity () | |
Entity (const Entity &b) | |
Entity (yarp::os::Bottle &b) | |
virtual | ~Entity () |
std::string | name () const |
Return the name of an entity (which has to be unique within the OPC) More... | |
int | opc_id () const |
Return the id of an entity (which has to be unique within the OPC) Typically, modules should employ the name() instead. More... | |
std::string | properties (const std::string &p) const |
Returns the name of an entity contained in a property, returns the string "NULL" if property is not set Deprecated, do not use! More... | |
std::string | entity_type () const |
Return the specific type of an entity. More... | |
bool | operator== (const Entity &b) const |
bool | operator< (const Entity &b) const |
bool | operator> (const Entity &b) const |
Public Attributes | |
std::map< std::string, double > | m_emotions_intrinsic |
Body | m_body |
Public Attributes inherited from icubclient::Object | |
yarp::sig::VectorOf< double > | m_ego_position |
Position of the Object, in the initial ego-centered reference frame of the agent mainting the OPC (initial root of the iCub). More... | |
yarp::sig::VectorOf< double > | m_ego_orientation |
Orientation of the Object, in the initial ego-centered reference frame of the agent mainting the OPC (initial root of the iCub). More... | |
yarp::sig::VectorOf< double > | m_dimensions |
Dimensions of the Object, in meters. More... | |
yarp::sig::VectorOf< double > | m_color |
Mean color of the object (r,g,b) used mainly for debugging/displaying purposes in the iCubGUI. More... | |
double | m_present |
Is the object present in the scene A value of 1.0 means that the object currently is in the scene A value of 0.5 means that the object is likely to be in the scene, but not currently visible by the iCub A value of 0.0 means that the object is currently not in the scene. More... | |
double | m_saliency |
A measurement of the object saliency [0,1]. More... | |
ObjectArea | m_objectarea |
Whether the object is accessible by only the robot, only the human, both or neither agent. More... | |
double | m_value |
A measurement of the object subjective value [0,1]. More... | |
Friends | |
class | OPCClient |
Additional Inherited Members | |
Static Public Member Functions inherited from icubclient::Object | |
static std::string | objectAreaAsString (const icubclient::ObjectArea &o) |
static icubclient::ObjectArea | stringToObjectArea (const std::string &o) |
Protected Member Functions inherited from icubclient::Entity | |
void | changeName (std::string sName) |
Protected Attributes inherited from icubclient::Entity | |
std::string | m_entity_type |
bool Agent::addBelief | ( | const Relation & | r | ) |
|
virtual |
Return the entity as a bottle.
Reimplemented from icubclient::Object.
const std::list< Relation > & Agent::beliefs | ( | ) | const |
bool Agent::checkBelief | ( | const Relation & | r | ) | const |
|
virtual |
Fill entity fields from a bottle representation.
b | a pointer to the bottle containing the entity representation |
Reimplemented from icubclient::Object.
|
inlinevirtual |
Test if an entity is inheriting a given type.
Reimplemented from icubclient::Object.
bool Agent::removeBelief | ( | const Relation & | r | ) |
|
virtual |
Return a human readable description of the entity.
Reimplemented from icubclient::Object.
class icubclient::Bodypart |
Represents a body part of the robot.
Definition at line 29 of file bodypart.h.
Public Member Functions | |
Bodypart () | |
Bodypart (const Bodypart &b) | |
virtual bool | isType (std::string _entityType) const |
Test if an entity is inheriting a given type. More... | |
virtual yarp::os::Bottle | asBottle () const |
Return the entity as a bottle. More... | |
virtual bool | fromBottle (const yarp::os::Bottle &b) |
Fill entity fields from a bottle representation. More... | |
virtual std::string | toString () const |
Return a human readable description of the entity. More... | |
Public Member Functions inherited from icubclient::Object | |
Object () | |
Object (const Object &b) | |
yarp::sig::VectorOf< double > | getSelfRelativePosition (const yarp::sig::VectorOf< double > &vInitialRoot) const |
Express a point given in the initial ego-centered reference frame in respect to the object reference frame. More... | |
std::string | objectAreaAsString () const |
double | saliency () const |
Get saliency of object. More... | |
void | setSaliency (double saliency) |
Set saliency of object. More... | |
double | value () const |
Get value of object. More... | |
void | setValue (double value) |
Set value of object. More... | |
Public Member Functions inherited from icubclient::Entity | |
Entity () | |
Entity (const Entity &b) | |
Entity (yarp::os::Bottle &b) | |
virtual | ~Entity () |
std::string | name () const |
Return the name of an entity (which has to be unique within the OPC) More... | |
int | opc_id () const |
Return the id of an entity (which has to be unique within the OPC) Typically, modules should employ the name() instead. More... | |
std::string | properties (const std::string &p) const |
Returns the name of an entity contained in a property, returns the string "NULL" if property is not set Deprecated, do not use! More... | |
std::string | entity_type () const |
Return the specific type of an entity. More... | |
bool | operator== (const Entity &b) const |
bool | operator< (const Entity &b) const |
bool | operator> (const Entity &b) const |
Public Attributes | |
int | m_joint_number |
Joint number of the represented body part. More... | |
int | m_tactile_number |
Tactile number of the represented body part. More... | |
std::string | m_part |
The part itself, e.g. More... | |
std::string | m_kinectNode |
The string labelling the kinect node (of a human kinematic structure, one of the ICUBCLIENT_OPC_BODY_PART_TYPE_XXX) that corresponds to the iCub's joint. More... | |
Public Attributes inherited from icubclient::Object | |
yarp::sig::VectorOf< double > | m_ego_position |
Position of the Object, in the initial ego-centered reference frame of the agent mainting the OPC (initial root of the iCub). More... | |
yarp::sig::VectorOf< double > | m_ego_orientation |
Orientation of the Object, in the initial ego-centered reference frame of the agent mainting the OPC (initial root of the iCub). More... | |
yarp::sig::VectorOf< double > | m_dimensions |
Dimensions of the Object, in meters. More... | |
yarp::sig::VectorOf< double > | m_color |
Mean color of the object (r,g,b) used mainly for debugging/displaying purposes in the iCubGUI. More... | |
double | m_present |
Is the object present in the scene A value of 1.0 means that the object currently is in the scene A value of 0.5 means that the object is likely to be in the scene, but not currently visible by the iCub A value of 0.0 means that the object is currently not in the scene. More... | |
double | m_saliency |
A measurement of the object saliency [0,1]. More... | |
ObjectArea | m_objectarea |
Whether the object is accessible by only the robot, only the human, both or neither agent. More... | |
double | m_value |
A measurement of the object subjective value [0,1]. More... | |
Friends | |
class | OPCClient |
Additional Inherited Members | |
Static Public Member Functions inherited from icubclient::Object | |
static std::string | objectAreaAsString (const icubclient::ObjectArea &o) |
static icubclient::ObjectArea | stringToObjectArea (const std::string &o) |
Protected Member Functions inherited from icubclient::Entity | |
void | changeName (std::string sName) |
Protected Attributes inherited from icubclient::Entity | |
std::string | m_entity_type |
Bodypart::Bodypart | ( | ) |
Definition at line 25 of file bodypart.cpp.
Bodypart::Bodypart | ( | const Bodypart & | b | ) |
Definition at line 36 of file bodypart.cpp.
|
virtual |
Return the entity as a bottle.
Reimplemented from icubclient::Object.
Definition at line 46 of file bodypart.cpp.
|
virtual |
Fill entity fields from a bottle representation.
b | a pointer to the bottle containing the entity representation |
Reimplemented from icubclient::Object.
Definition at line 87 of file bodypart.cpp.
|
inlinevirtual |
Test if an entity is inheriting a given type.
Reimplemented from icubclient::Object.
Definition at line 55 of file bodypart.h.
|
virtual |
Return a human readable description of the entity.
Reimplemented from icubclient::Object.
Definition at line 72 of file bodypart.cpp.
|
friend |
Definition at line 31 of file bodypart.h.
int icubclient::Bodypart::m_joint_number |
Joint number of the represented body part.
Definition at line 38 of file bodypart.h.
std::string icubclient::Bodypart::m_kinectNode |
The string labelling the kinect node (of a human kinematic structure, one of the ICUBCLIENT_OPC_BODY_PART_TYPE_XXX) that corresponds to the iCub's joint.
Definition at line 53 of file bodypart.h.
std::string icubclient::Bodypart::m_part |
int icubclient::Bodypart::m_tactile_number |
Tactile number of the represented body part.
Definition at line 43 of file bodypart.h.
class icubclient::Entity |
Represent any entity that can be stored within the OPC.
All representations derive from entities.
Public Member Functions | |
Entity () | |
Entity (const Entity &b) | |
Entity (yarp::os::Bottle &b) | |
virtual | ~Entity () |
virtual bool | isType (std::string _entityType) const |
Test if an entity is inheriting a given type. More... | |
virtual yarp::os::Bottle | asBottle () const |
Return the entity as a bottle. More... | |
virtual bool | fromBottle (const yarp::os::Bottle &b) |
Fill entity fields from a bottle representation. More... | |
virtual std::string | toString () const |
Return a human readable description of the entity. More... | |
std::string | name () const |
Return the name of an entity (which has to be unique within the OPC) More... | |
int | opc_id () const |
Return the id of an entity (which has to be unique within the OPC) Typically, modules should employ the name() instead. More... | |
std::string | properties (const std::string &p) const |
Returns the name of an entity contained in a property, returns the string "NULL" if property is not set Deprecated, do not use! More... | |
std::string | entity_type () const |
Return the specific type of an entity. More... | |
bool | operator== (const Entity &b) const |
bool | operator< (const Entity &b) const |
bool | operator> (const Entity &b) const |
Protected Member Functions | |
void | changeName (std::string sName) |
Protected Attributes | |
std::string | m_entity_type |
Friends | |
class | OPCClient |
Entity::Entity | ( | ) |
Definition at line 31 of file entity.cpp.
Entity::Entity | ( | const Entity & | b | ) |
Definition at line 38 of file entity.cpp.
Entity::Entity | ( | yarp::os::Bottle & | b | ) |
Definition at line 25 of file entity.cpp.
|
virtual |
Return the entity as a bottle.
Reimplemented in icubclient::Agent, icubclient::Object, icubclient::Action, and icubclient::Bodypart.
Definition at line 45 of file entity.cpp.
|
protected |
Definition at line 149 of file entity.cpp.
|
inline |
|
virtual |
Fill entity fields from a bottle representation.
b | a pointer to the bottle containing the entity representation |
Reimplemented in icubclient::Agent, icubclient::Object, icubclient::Action, and icubclient::Bodypart.
Definition at line 95 of file entity.cpp.
|
inlinevirtual |
Test if an entity is inheriting a given type.
Reimplemented in icubclient::Agent, icubclient::Object, icubclient::Bodypart, and icubclient::Action.
|
inline |
|
inline |
bool Entity::operator< | ( | const Entity & | b | ) | const |
Definition at line 137 of file entity.cpp.
bool Entity::operator== | ( | const Entity & | b | ) | const |
Definition at line 131 of file entity.cpp.
bool Entity::operator> | ( | const Entity & | b | ) | const |
Definition at line 143 of file entity.cpp.
|
inline |
|
virtual |
Return a human readable description of the entity.
Reimplemented in icubclient::Agent, icubclient::Object, icubclient::Action, and icubclient::Bodypart.
Definition at line 116 of file entity.cpp.
class icubclient::Object |
Represent any physical entity (including objects and agents) that can be stored within the OPC.
Public Member Functions | |
Object () | |
Object (const Object &b) | |
virtual bool | isType (std::string _entityType) const |
Test if an entity is inheriting a given type. More... | |
virtual yarp::os::Bottle | asBottle () const |
Return the entity as a bottle. More... | |
virtual bool | fromBottle (const yarp::os::Bottle &b) |
Fill entity fields from a bottle representation. More... | |
virtual std::string | toString () const |
Return a human readable description of the entity. More... | |
yarp::sig::VectorOf< double > | getSelfRelativePosition (const yarp::sig::VectorOf< double > &vInitialRoot) const |
Express a point given in the initial ego-centered reference frame in respect to the object reference frame. More... | |
std::string | objectAreaAsString () const |
double | saliency () const |
Get saliency of object. More... | |
void | setSaliency (double saliency) |
Set saliency of object. More... | |
double | value () const |
Get value of object. More... | |
void | setValue (double value) |
Set value of object. More... | |
Public Member Functions inherited from icubclient::Entity | |
Entity () | |
Entity (const Entity &b) | |
Entity (yarp::os::Bottle &b) | |
virtual | ~Entity () |
std::string | name () const |
Return the name of an entity (which has to be unique within the OPC) More... | |
int | opc_id () const |
Return the id of an entity (which has to be unique within the OPC) Typically, modules should employ the name() instead. More... | |
std::string | properties (const std::string &p) const |
Returns the name of an entity contained in a property, returns the string "NULL" if property is not set Deprecated, do not use! More... | |
std::string | entity_type () const |
Return the specific type of an entity. More... | |
bool | operator== (const Entity &b) const |
bool | operator< (const Entity &b) const |
bool | operator> (const Entity &b) const |
Static Public Member Functions | |
static std::string | objectAreaAsString (const icubclient::ObjectArea &o) |
static icubclient::ObjectArea | stringToObjectArea (const std::string &o) |
Public Attributes | |
yarp::sig::VectorOf< double > | m_ego_position |
Position of the Object, in the initial ego-centered reference frame of the agent mainting the OPC (initial root of the iCub). More... | |
yarp::sig::VectorOf< double > | m_ego_orientation |
Orientation of the Object, in the initial ego-centered reference frame of the agent mainting the OPC (initial root of the iCub). More... | |
yarp::sig::VectorOf< double > | m_dimensions |
Dimensions of the Object, in meters. More... | |
yarp::sig::VectorOf< double > | m_color |
Mean color of the object (r,g,b) used mainly for debugging/displaying purposes in the iCubGUI. More... | |
double | m_present |
Is the object present in the scene A value of 1.0 means that the object currently is in the scene A value of 0.5 means that the object is likely to be in the scene, but not currently visible by the iCub A value of 0.0 means that the object is currently not in the scene. More... | |
double | m_saliency |
A measurement of the object saliency [0,1]. More... | |
ObjectArea | m_objectarea |
Whether the object is accessible by only the robot, only the human, both or neither agent. More... | |
double | m_value |
A measurement of the object subjective value [0,1]. More... | |
Friends | |
class | OPCClient |
Additional Inherited Members | |
Protected Member Functions inherited from icubclient::Entity | |
void | changeName (std::string sName) |
Protected Attributes inherited from icubclient::Entity | |
std::string | m_entity_type |
Object::Object | ( | ) |
Definition at line 28 of file object.cpp.
Object::Object | ( | const Object & | b | ) |
Definition at line 45 of file object.cpp.
|
virtual |
Return the entity as a bottle.
Reimplemented from icubclient::Entity.
Reimplemented in icubclient::Agent, and icubclient::Bodypart.
Definition at line 78 of file object.cpp.
|
virtual |
Fill entity fields from a bottle representation.
b | a pointer to the bottle containing the entity representation |
Reimplemented from icubclient::Entity.
Reimplemented in icubclient::Agent, and icubclient::Bodypart.
Definition at line 169 of file object.cpp.
Vector Object::getSelfRelativePosition | ( | const yarp::sig::VectorOf< double > & | vInitialRoot | ) | const |
Express a point given in the initial ego-centered reference frame in respect to the object reference frame.
vInitialRoot | the point to transform |
Definition at line 236 of file object.cpp.
|
inlinevirtual |
Test if an entity is inheriting a given type.
Reimplemented from icubclient::Entity.
Reimplemented in icubclient::Agent, and icubclient::Bodypart.
|
inline |
|
static |
Definition at line 254 of file object.cpp.
double Object::saliency | ( | ) | const |
void Object::setSaliency | ( | double | saliency | ) |
Set saliency of object.
saliency | - New saliency value |
Definition at line 72 of file object.cpp.
void Object::setValue | ( | double | value | ) |
|
static |
Definition at line 269 of file object.cpp.
|
virtual |
Return a human readable description of the entity.
Reimplemented from icubclient::Entity.
Reimplemented in icubclient::Agent, and icubclient::Bodypart.
Definition at line 213 of file object.cpp.
double Object::value | ( | ) | const |
yarp::sig::VectorOf<double> icubclient::Object::m_color |
yarp::sig::VectorOf<double> icubclient::Object::m_dimensions |
yarp::sig::VectorOf<double> icubclient::Object::m_ego_orientation |
yarp::sig::VectorOf<double> icubclient::Object::m_ego_position |
ObjectArea icubclient::Object::m_objectarea |
double icubclient::Object::m_present |
Is the object present in the scene A value of 1.0 means that the object currently is in the scene A value of 0.5 means that the object is likely to be in the scene, but not currently visible by the iCub A value of 0.0 means that the object is currently not in the scene.
double icubclient::Object::m_saliency |
class icubclient::Relation |
Represent a relation between two entities.
Definition at line 31 of file relation.h.
Public Member Functions | |
Relation () | |
Relation (yarp::os::Bottle &b) | |
Relation (std::string subject, std::string verb, std::string object="none", std::string complement_place="none", std::string complement_time="none", std::string complement_manner="none") | |
Relation (Entity *subject, Entity *verb, Entity *object=nullptr, Entity *complement_place=nullptr, Entity *complement_time=nullptr, Entity *complement_manner=nullptr) | |
virtual | ~Relation () |
yarp::os::Bottle | asBottle (bool ignoreID=false) const |
yarp::os::Bottle | asLightBottle () const |
Return the relation as a bottle without the argument to "none". More... | |
void | fromBottle (const yarp::os::Bottle &b) |
Create a Relation from a Bottle. More... | |
virtual std::string | toString () const |
Return string representation of this Relation. More... | |
int | ID () const |
Get the opc ID of the relation. More... | |
std::string | subject () const |
Get the name of the relation's subject. More... | |
std::string | object () const |
Get the name of the relation's object. More... | |
std::string | verb () const |
Get the type of the relation. More... | |
std::string | complement_place () const |
Get the complement of place of the relation. More... | |
std::string | complement_time () const |
Get the complement of time of the relation. More... | |
std::string | complement_manner () const |
Get the complement of manner of the relation. More... | |
bool | operator== (const Relation &b) const |
bool | operator< (const Relation &b) const |
bool | operator> (const Relation &b) const |
Public Attributes | |
std::string | m_verb |
std::string | m_subject |
std::string | m_object |
std::string | m_complement_place |
std::string | m_complement_time |
std::string | m_complement_manner |
Friends | |
class | OPCClient |
|
inline |
Definition at line 46 of file relation.h.
Relation::Relation | ( | yarp::os::Bottle & | b | ) |
Definition at line 85 of file relation.cpp.
Relation::Relation | ( | std::string | subject, |
std::string | verb, | ||
std::string | object = "none" , |
||
std::string | complement_place = "none" , |
||
std::string | complement_time = "none" , |
||
std::string | complement_manner = "none" |
||
) |
Definition at line 27 of file relation.cpp.
Relation::Relation | ( | Entity * | subject, |
Entity * | verb, | ||
Entity * | object = nullptr , |
||
Entity * | complement_place = nullptr , |
||
Entity * | complement_time = nullptr , |
||
Entity * | complement_manner = nullptr |
||
) |
Definition at line 44 of file relation.cpp.
|
inlinevirtual |
Definition at line 67 of file relation.h.
Bottle Relation::asBottle | ( | bool | ignoreID = false | ) | const |
Definition at line 90 of file relation.cpp.
Bottle Relation::asLightBottle | ( | ) | const |
Return the relation as a bottle without the argument to "none".
Definition at line 132 of file relation.cpp.
string Relation::complement_manner | ( | ) | const |
Get the complement of manner of the relation.
Definition at line 236 of file relation.cpp.
string Relation::complement_place | ( | ) | const |
Get the complement of place of the relation.
Definition at line 226 of file relation.cpp.
string Relation::complement_time | ( | ) | const |
Get the complement of time of the relation.
Definition at line 231 of file relation.cpp.
void Relation::fromBottle | ( | const yarp::os::Bottle & | b | ) |
Create a Relation from a Bottle.
b | The Bottle representation of a Relation |
Definition at line 179 of file relation.cpp.
int Relation::ID | ( | ) | const |
Get the opc ID of the relation.
Definition at line 206 of file relation.cpp.
string Relation::object | ( | ) | const |
Get the name of the relation's object.
Definition at line 216 of file relation.cpp.
bool Relation::operator< | ( | const Relation & | b | ) | const |
Definition at line 275 of file relation.cpp.
bool Relation::operator== | ( | const Relation & | b | ) | const |
Definition at line 280 of file relation.cpp.
bool Relation::operator> | ( | const Relation & | b | ) | const |
Definition at line 241 of file relation.cpp.
string Relation::subject | ( | ) | const |
Get the name of the relation's subject.
Definition at line 211 of file relation.cpp.
|
virtual |
Return string representation of this Relation.
Definition at line 190 of file relation.cpp.
string Relation::verb | ( | ) | const |
Get the type of the relation.
Definition at line 221 of file relation.cpp.
|
friend |
Definition at line 33 of file relation.h.
std::string icubclient::Relation::m_complement_manner |
Definition at line 44 of file relation.h.
std::string icubclient::Relation::m_complement_place |
Definition at line 42 of file relation.h.
std::string icubclient::Relation::m_complement_time |
Definition at line 43 of file relation.h.
std::string icubclient::Relation::m_object |
Definition at line 41 of file relation.h.
std::string icubclient::Relation::m_subject |
Definition at line 40 of file relation.h.
std::string icubclient::Relation::m_verb |
Definition at line 39 of file relation.h.