VisuBehCon

class mobrob_behcon.visu.visu_behcon.VisuBehCon(behconnode)[source]

The class VisuBehCon

This class visualizes the current software configuration of the behaviour based control of the robot. This includes the strategy and all behaviours with their priorities.

During runtime, it will also update the current state of strategy and the output to the resolver.

Methods

__init__(behconnode)

constructor

create_box_w_lbl(pt, width, height, color, text)

Creates a box with text

draw()

This function draws the whole configuration in a tkinter window.

update()

This function will update the state of Strategy and number of Desires in Resolver.

Details

__init__(behconnode)[source]

constructor

Parameters

behconnode (BehConNode) – the BehConNode to be visulatized

create_box_w_lbl(pt, width, height, color, text)[source]

Creates a box with text

Parameters
  • pt (Point) – position of rectangle (left top corner)

  • width (int) – width of rectangle

  • height (int) – height of rectangle

  • color (string) – color of rectangle

  • text (string) – text

Returns

tkinter rectangle and text object

Return type

Rectangle, Text

draw()[source]

This function draws the whole configuration in a tkinter window.

update()[source]

This function will update the state of Strategy and number of Desires in Resolver.