19 #ifndef __ICUBCLIENT_AGENT_H__ 20 #define __ICUBCLIENT_AGENT_H__ 35 std::map<std::string, yarp::sig::VectorOf<double>>
m_parts;
59 for(
auto& part : m_parts)
62 sub.addString(part.first.c_str());
63 yarp::os::Bottle position;
64 position.addDouble(part.second[0]);
65 position.addDouble(part.second[1]);
66 position.addDouble(part.second[2]);
67 sub.addList() = position;
75 for(std::map<std::string,yarp::sig::VectorOf<double>>::iterator part = m_parts.begin(); part != m_parts.end(); part++)
77 yarp::os::Bottle* position = b.find(part->first.c_str()).asList();
78 part->second[0] = position->get(0).asDouble();
79 part->second[1] = position->get(1).asDouble();
80 part->second[2] = position->get(2).asDouble();
97 std::list<Relation> m_belief;
105 virtual bool isType(std::string _entityType)
const 113 virtual yarp::os::Bottle
asBottle()
const;
114 virtual bool fromBottle(
const yarp::os::Bottle &b);
115 virtual std::string toString()
const;
127 bool removeBelief(
const Relation &r);
133 bool checkBelief(
const Relation &r)
const;
138 const std::list<Relation> &beliefs()
const;
std::map< std::string, double > m_emotions_intrinsic
Represent any physical entity (including objects and agents) that can be stored within the OPC...
virtual bool isType(std::string _entityType) const
Test if an entity is inheriting a given type.
An OPC client using the datastructures defined within the icub-client library.
bool fromBottle(const yarp::os::Bottle &b)
yarp::os::Bottle asBottle() const
Represent a relation between two entities.
Represent a the body of an agent.
std::map< std::string, yarp::sig::VectorOf< double > > m_parts
virtual bool isType(std::string _entityType) const
Test if an entity is inheriting a given type.