The Task Waypoint Behavior


Maintained by: mikerb@mit.edu         Get PDF


src: project-pavlab/bhvdocs/bhv_task_wpt


1  The Task Waypoint Behavior
     1.1 Configuration Parameters
     1.2 Publications
     1.3 Flags and Macros

1   The Task Waypoint Behavior


The Task Waypoint behavior is a behavior for participating in a decentralized auction among a group of vehicles, to determine which vehicle is most appropriate to transit to a given waypoint. In this simple behavior the auction bit is solely based on linear distance to the waypoint. Most of the functionality of this behavior is comprised of the IvPTaskBehavior superclass.

Figure 1.1: Task Behaviors: A task behavior are behaviors of the helm just like any other behavior. They all have the IvPTaskBehavior superclass to support the common components needed to participate in inter-vehicle auctions.

The primary function of a task behavior, like the TaskWaypoint behavior, is to participate in an inter-vehicle auction. The high-level view of an auction is shown in Figure ??? below.

Figure 1.2: Task Behavior Progression: A task behavior proceeds through the states shown, beginning from initial spawning by the task manager, and generation of bids to collaborators. Depending on ownship bid compared to collaborators, the task behavior will generate further publications, i.e., flags, that will spawn the appropriate behavior to perform the task. The primary difference between different task behaviors is in the implementation of bid generation.

1.1   Configuration Parameters    [top]


Certain configuration parameters available to LegRun behavior are are unique to the LegRun behavior and others are inherited from the IvPBehavior superclass. Here parameters unique to the LegRun behavior are presented.

The set of configuration parameters is long, and split into two groups. The first group deals mainly with the shape of the leg, including position, angle, length and nature of the Williamson turn. The LegRun behavior maintains an instance of a LegRun C++ class, and these parameters are essentially passed directly to that class. The remainder of the configuration parameters relate to the operation of the behavior.

Listing 1.1 - Configuration Parameters for the TaskBehavior Superclass.

ParameterDescription
id:TBD
src:TBD
hash:TBD
time:TBD
type:TBD
exempt:TBD
max_bid_wins:If true, then highest bid wins.
time_range:TBD
team_by_group:TBD
bidwonflag:Posted when/if the behavior wins its auction.
bidlostflag:Posted when/if the behavior loses its auction.
xbidwonflag:TBD
xbidlostflag:TBD
bid_value_var:TBD
task_state_var:TBD

Listing 1.2 - Configuration Parameters for TaskWaypoint Behavior.

ParameterDescription
waypt:The x-y location of the waypoint.

Listing 1.3 - Example Configuration Block.

 Behavior = BHV_TaskWaypoint
 {
        name = twpt_
     updates = TASK_WPT
  templating = spawn

          type = waypoint
  max_bid_wins = false

    team_range = 5000

   team_by_group = true

   bidwonflag = TRANSIT = true
   bidwonflag = STATION = false
   bidwonflag = RETURN  = false
   bidwonflag = CONVOY  = false
   xbidwonflag = MISSION_TASK = type=convoy,id=convoy$[ID+1],contact=$[OWNSHIP], [=\=] 
                 exempt=$[OWNSHIP],task_time=$[UTC] 

   // Typically set/overridden upon spawning event                               
   waypt   = 0,0
 }

1.2   Publications    [top]


Listing 1.4 - Configuration Parameters for the LegRun Behavior.

VariableDescription
TM_ALERT_REQUEST: 

1.3   Flags and Macros    [top]


The TaskWaypoint behavior supports the below set of event flags in addition to the standard behavior flags, e.g., endflags, runflags. These are:

  • bidwonflag: Posted when/if the behavior wins its auction.
  • bidlostflag: Posted when/if the behavior loses its auction.

The following macros are supported in the TaskWaypoint behavior. These macros will be expanded in any event flag, including event flags defined for all IvP behaviors as well as event flags defined only for the TaskWaypoint behavior.

  • PTX: The x location of the waypoint.
  • PTY: The y location of the waypoint.

Document Maintained by: mikerb@mit.edu        
Page built from LaTeX source using texwiki, developed at MIT. Errata to issues@moos-ivp.org. Get PDF