Skip to content

9. Getting past obstacles ​

A substation’s walkways are narrow and lined with energized equipment: getting past a bucket or a person must never mean walking off the walkway. The X30 has five layers, from the gentlest to the last resort:

LayerWhat it does
Path shiftslides sideways off the route and back, keeping the heading (holonomic robots)
Detourstuck: turns toward a gap and walks a short straight through it
Backing upstuck for long: backs up along the driven path and tries again
The guardthe follower stops its own command before it could hit anything
The fieldthe control mux stops whatever is left (Chapter 4)

9.1 Path shift ​

The free corridor along the route ahead (look_ahead, 2 m beyond the front edge) is evaluated in route coordinates for candidate lateral offsets every step (0.1 m) up to max_offset (0.8 m) on either side, the body plus clearance beside it. The robot takes the free offset nearest the one it holds: a new side must be clearer by switch_margin and pays switch_cost (hysteresis), so it does not hesitate between left and right. It slides onto the offset at offset_rate, and comes back onto the route once the way back has stayed free for return_delay_sec.

When no offset is free, the robot slows to the speed that stops stop_margin before the obstacle (Eq. (2.2) on the free distance less the margin) and waits. After patience_sec it searches wider, up to search_offset (1.5 m). A lane with less than centre_room beside the body is walked in its middle.

Set the offsets to the walkway

max_offset and search_offset are how far the robot may leave the taught route. Next to energized equipment they must be smaller than the room the walkway gives on either side, less the minimum approach distance. A walkway 1.5 m wide taught along its middle leaves (1.5−0.47)/2≈0.5m: set max_offset and search_offset to 0.5 m or less there, or teach the route where there is room.

9.2 Detours and backing up ​

  • Detour stuck for detour.after_sec (1.5 s) while following, the robot turns toward a gap within max_angle_deg (75°) of the route’s direction and walks straight through it, at most length (2 m) at speed, only if the run brings it min_progress along the route. A detour leaves the route more than path shift does: disable it (detour.enabled: false) where the walkway leaves no room.
  • Backing up no progress along the route for backtrack.after_sec (30 s): the robot backs up distance (1 m) along the path it walked, with the guard on the rear sectors, and tries again; after max_attempts at one place it stays BLOCKED and NETRA gets the alert.

9.3 Reactive avoidance ​

obstacle_avoidance_node reads the front sector scan and turns it into a bend of the command: a heading offset, a sideways bias and a speed scale. With avoidance_mode: reactive the follower applies them; in every mode but off, its emergency stops the forward motion: an obstacle within emergency_distance (0.75 m) in the frontal emergency_cone_deg (60°). With path shift and emergency_slide, the robot may still slide out sideways.

Every policy works on the danger of each sector, from 0 beyond safe_distance rs (1.5 m) to 1 at the robot:

(9.1)δj=clip(1−rjrs, 0, 1)
  • vfh (the X30’s) the headings whose sectors are free, in runs at least min_gap_width_deg wide; it takes the free heading nearest straight ahead and slows by the frontal danger: s=max(0,1−kvδfront).
  • follow_gap removes a bubble of bubble_radius around the nearest obstacle (half-angle arctan⁡(rb/rmin)) and aims at the centre of the widest remaining gap.
  • potential_field each obstacle inside rs pushes with F=kr(1/r−1/rs)/r2; the sideways sum steers (kθarctan⁡Fy) and pushes (lateral_gain, capped at max_lateral).
  • braitenberg the danger left and right (triangular weights around steering_zone_center_deg) steers away: Δθ=ks(δR−δL); the danger ahead and beside slows: s=max(0,1−kvδside)(1−δahead).

The outputs are smoothed with shared.smoothing toward steering and speeding up, never toward braking: a stop is never delayed.

9.4 The guard ​

Before it publishes, the follower checks its own command against the safety scan with the same braking and separation model as the field, with its own margins (safety.*, Chapter 8). The guard’s margins are at least the field’s, and the follower checks that at start: the follower stops itself before the field ever has to. A field that limits the follower’s commands in normal operation means the two are tuned apart.