//--------------------------------------------------- // Helm Behavior file initialize DEPLOY = false initialize RETURN = false initialize LOITER = true set MODE = ACTIVE { DEPLOY = true } INACTIVE set MODE = RETURNING { MODE = ACTIVE RETURN = true } PARTOLLING set MODE = CHASING { MODE = ACTIVE:PARTOLLING LOITER = false } LOITERING Behavior = BHV_Confines { name = stay_in_area pwt = 300 // perpetual = true //behavior specific configuration condition = MODE==ACTIVE polygon = -15.50,-8.00 : -86.00,-41.00 : -54.20,-108.93 : 16.30,-75.93: label,defenseIN lookahead_secs = 3.0 show_closest_pt = true use_zero_cone = true should_normalize = true } //---------------------------------------------- Behavior = BHV_Waypoint { name = waypt_survey pwt = 100 perpetual = true condition = MODE==LOITERING speed = 3 // meters per second radius = 5.0 slip_radius = 15.0 lead = 10 points = format=lawnmower,label=patrol,x=-40,y=-60,height=30,width=30,lane_width=5,rows=sn,degs=45 visual_hints = vertex_color=yellow, edge_color=green visual_hints = nextpt_color=red, nextpt_lcolor=green visual_hints = vertex_size=1, edge_size=1 } Behavior = BHV_CutRange { // General Behavior Parameters // --------------------------- name = cutrange_chaser // example pwt = 100 // example perpetual = true condition = MODE==CHASING updates = CONTACT_INFO // example // endflag = LOITER=true // idleflag = LOITER=fasle // General Contact Behavior Parameters // ----------------------------------- bearing_lines = white:0, green:0.65, yellow:0.8, red:1.0 // example contact = chaser1 // example decay = 15,30 // default (seconds) extrapolate = true // default on_no_contact_ok = true // default time_on_leg = 60 // default (seconds) // Parameters specific to this behavior // ------------------------------------ giveup_dist = 0 // default (meters) patience = 50 // default [0,100] pwt_inner_dist = 12 // default [0,inf] pwt_outer_dist = 20 // default [0,inf] } //---------------------------------------------- Behavior = BHV_Waypoint { name = waypt_return pwt = 100 perpetual = true condition = MODE==RETURNING updates = RETURN_UPDATES endflag = DEPLOY = false speed = 5 capture_radius = 10.0 slip_radius = 10.0 points = $(START_POS) }