BehStop¶
- class mobrob_behcon.behaviours.beh_stop.BehStop(name, stopdistance=0.3)[source]¶
- The class BehStop - This class is a child of the class Behaviour representing a behaviour which stops the robot when some obstacle from any side is approaching. - Attributes - Methods - __init__(name[, stopdistance])- constructor - add_desire(desire)- Send desire to resolver. - error([code])- Raise an error about the behaviour. - fire()- The fire()-method, which is necessary in every Behaviour, will be called by resolver in every polling cycle. - set_current_beh_group(beh_group)- Set current active behaviourgroup - set_percept_space(percept_space)- Set the reference to percept_space - set_priority(priority)- Set current priority of the behaviour, can be changed during runtime - set_resolver(resolver)- Set the reference to resolver - success([code])- Set the behaviour as successful ended. - Details - __init__(name, stopdistance=0.3)[source]¶
- constructor - Parameters
- name (string) – name of behaviour 
- stopdistance (float, optional) – distance on with the robot should stop, defaults to 0.30 
 
 
 - add_desire(desire)¶
- Send desire to resolver. - Parameters
- desire (Desire) – a desire to be added to the resolver 
 
 - error(code=0)¶
- Raise an error about the behaviour. With the error code some more information about the error can be given to the behaviourgroup - Parameters
- code (int, optional) – error code, defaults to 0 
 
 - fire()[source]¶
- The fire()-method, which is necessary in every Behaviour, will be called by resolver in every polling cycle. 
 - set_current_beh_group(beh_group)¶
- Set current active behaviourgroup - Parameters
- beh_group (BehaviourGroup) – the currently active behaviour group 
 
 - set_percept_space(percept_space)¶
- Set the reference to percept_space - Parameters
- percept_space (PerceptualSpace) – relevant percept_space object 
 
 - set_priority(priority)¶
- Set current priority of the behaviour, can be changed during runtime - Parameters
- priority ([type]) – [description]