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:
| Layer | What it does |
|---|---|
| Path shift | slides sideways off the route and back, keeping the heading (holonomic robots) |
| Detour | stuck: turns toward a gap and walks a short straight through it |
| Backing up | stuck for long: backs up along the driven path and tries again |
| The guard | the follower stops its own command before it could hit anything |
| The field | the 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 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 withinmax_angle_deg(75°) of the route’s direction and walks straight through it, at mostlength(2 m) atspeed, only if the run brings itmin_progressalong 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 updistance(1 m) along the path it walked, with the guard on the rear sectors, and tries again; aftermax_attemptsat 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
vfh(the X30’s) the headings whose sectors are free, in runs at leastmin_gap_width_degwide; it takes the free heading nearest straight ahead and slows by the frontal danger:. follow_gapremoves a bubble ofbubble_radiusaround the nearest obstacle (half-angle) and aims at the centre of the widest remaining gap. potential_fieldeach obstacle insidepushes with ; the sideways sum steers ( ) and pushes ( lateral_gain, capped atmax_lateral).braitenbergthe danger left and right (triangular weights aroundsteering_zone_center_deg) steers away:; the danger ahead and beside slows: .
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.