19 #ifndef __ICUBCLIENT_ACTION_H__ 20 #define __ICUBCLIENT_ACTION_H__ 38 std::list<Action> subActions;
49 virtual bool isType(std::string _entityType)
const 70 virtual std::list<Action>
asPlan()
const;
76 virtual std::list<Action>
asPlan(
const Relation& newDescription)
const;
86 int size(){
return subActions.size(); }
91 virtual yarp::os::Bottle
asBottle()
const;
92 virtual bool fromBottle(
const yarp::os::Bottle &b);
93 virtual std::string
toString()
const;
virtual yarp::os::Bottle asBottle() const
Number of subactions composing this one.
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 ...
Represent any entity that can be stored within the OPC.
void append(Action &a)
Append a subaction to create a composite one.
int size()
Number of subactions composing this one.
virtual bool isType(std::string _entityType) const
Test if an entity is inheriting a given type.
virtual std::list< Action > asPlan() const
Get an unrolled plan description.
Represents an action, whether composite or not.
Relation description() const
Return initialDescription as Relation.
An OPC client using the datastructures defined within the icub-client library.
virtual bool fromBottle(const yarp::os::Bottle &b)
Fill entity fields from a bottle representation.
virtual bool isComposite()
Is an action composite or not?
void setInitialDescription(const Relation &r)
Represent a relation between two entities.
std::map< std::string, double > estimatedDriveEffects
Estimated effects on the drive.
virtual bool isType(std::string _entityType) const
Test if an entity is inheriting a given type.
virtual std::string toString() const
Return a human readable description of the entity.
Action express(const Relation &r) const