Skip to content

4. The control mux and the protective field ​

control_mux_node is the only publisher of the robot’s cmd_vel. Every command, from navigation or from an operator, passes through it in this order:

4.1 Sources, silence and the e-stop ​

  • AUTO navigation drives (control/nav_cmd_vel); a silence longer than nav_timeout_sec (0.5 s) sends one zero.
  • REMOTE one operator source drives, each on control/remote/<source>/cmd_vel: handheld (the H12 gateway); dashboard is a second source nothing on the X30 publishes yet; a silence longer than remote_timeout_sec (0.3 s) sends one zero.
  • E-stop while engaged, zeros at estop_hold_hz. After the release, after a mode change or a source’s silence, the source must first send rearm_neutral_count neutral commands in a row (every axis below neutral_eps): a stick held during the release never moves the robot.

4.2 The envelope ​

The command is brought inside the profile’s limits, keeping its direction:

(4.1)s=min(1, vx,max|vx|, vy,max|vy|),(vx,vy)←s(vx,vy),ω←clip(ω,−ωmax,ωmax)

A non-finite value turns the whole command into zero. With use_health_limit, the health monitor’s speed_scale (0 to 1) multiplies every command.

4.3 The protective field ​

The field limits each command to what the robot can still stop within, on the 360° safety scan (perception/safety_scan, Chapter 5). It applies in AUTO with field.margin, and in REMOTE with field.remote_margin unless field.in_remote is false.

4.3.1 Translation ​

The footprint, grown sideways by lateral_margin, is swept along the commanded direction of travel; D is the free distance to the first obstacle point inside the swept band. The field keeps the speed and separation monitoring distance of ISO/TS 15066 inside D less the margin m: the robot’s braking (Eq. (2.1)) plus the distance a person walking toward the robot at vh (human_speed) covers until the robot stands:

(4.2)S(v)=vtr+v22a+vh(tr+va)≤D−m

Solved for the highest allowed speed:

(4.3)vallowed=a(−b+b2+2(D−m−vhtr)a),b=tr+vha

A faster command is scaled down to vallowed in the same direction; an allowed speed below min_speed stops the translation instead (a crawl into an obstacle helps no one).

With the X30’s profile (tr 0.3 s, a 0.6 m/s2, vh 0.5 m/s):

SpeedBrakingPersonField, AUTOField, REMOTE
m/smmm (m 0.15)m (m 0.10)
0.100.040.230.420.37
0.250.130.360.640.59
0.500.360.571.081.03
0.750.690.781.621.57
Free ahead DAllowed, AUTO
mm/s
0.500.16
0.750.32
1.000.46
1.250.59
1.500.70
2.000.90

4.3.2 Rotation ​

For a turn, the field finds the angle θ the footprint can rotate before it touches a point, less yaw_margin, and allows the yaw rate that stops within it:

(4.4)ωallowed=α(−tr+tr2+2θα)

Below min_yaw_rate the turn stops. A command that translates and turns at once is checked along its stopping arc: the footprint at every step of the arc until both axes stand, with the margin grown by the person’s approach during the braking time vh(tr+max(v/a,|ω|/α)), and the whole command scaled down until the arc stays clear.

4.3.3 When the scan cannot be trusted ​

StateBehaviour
STALEno scan newer than scan_timeout_sec, or its stamp older than scan_max_age_sec: AUTO stops; REMOTE creeps, the fastest point of the body at remote_degraded_speed
BLINDthe LiDAR sees too little (Chapter 5): AUTO stops; REMOTE creeps and still keeps clear of what is seen, never toward a blind sector

4.4 Tuning the field ​

  • margin what the model does not know: the scan’s motion smear and its sector discretization (Chapter 5), the robot’s sway while walking. 0.15 m covers the X30 at 0.75 m/s on a 10 Hz scan; raise it on rough ground.
  • human_speed the trade-off of the whole field. 0.5 m/s presumes trained staff who see the robot. ISO 13855 assumes 1.6 m/s for a walking person: the field at 0.75 m/s then needs 3.3 m free ahead, and the robot slows wherever people may walk. Choose it with the site’s risk assessment, never lower than the people near the robot actually walk.
  • lateral_margin the sideways allowance of the swept band; the follower’s guard must use at least the same (path_follower_node/safety/lateral_margin).
  • min_speed, min_yaw_rate below the X30’s slowest steps (Chapter 3) a command does not move the robot anyway.

The field is software

The protective field is not a certified safety function. It reduces risk; the hard emergency stop and a responsible operator stay the protection.