Resolver¶
- class mobrob_behcon.core.resolver.Resolver[source]¶
The class Resolver
It resolves a output for the actuators from given desires. Currently it understands desires fo following type:
DesCmdVel
Methods
__init__
()Construct a new 'Resolver' object.
add_desire
(desire)Add new desire to resolver
Get current time in milliseconds
reset
()Reset all lists (desires and behaviours)
Reset all desire lists
resolveDesire
(lst_desires)function to resolve a value from a list of similar desires
runOnce
()Run one cycle of the resolver to calculate output values and publish corresponding messages
set_behaviour_lst
(behaviours)set the new active behaviour list
Details
- add_desire(desire)[source]¶
Add new desire to resolver
- Parameters
desire (Desire) – a desire to be added to the resolver
- Returns
returns nothing