Skip to content

2. The robot profile and its braking model ​

2.1 The profile ​

x30_bringup/config/robot.yaml describes the X30 once for the whole stack. Its values come from Deep Robotics’ manuals and from measurements on the robot:

ParameterX30Where it comes from
kinematicsomnilegged: forward, sideways and turning at once
footprint.front, rear0.50 mstanding length 1000 mm, base_link in the middle of the body
footprint.half_width0.235 mstanding width 470 mm
base_height0.48 mbase_link above the floor when standing: measure
limits.max_vx0.75 m/sWalk gait: 1.2 m/s forward, 0.75 m/s backward
limits.max_vy0.15 m/sWalk gait sideways (L-Walk 0.5 m/s)
limits.max_wz0.45 rad/sWalk gait (L-Walk 1.2 rad/s)
limits.max_accel0.5 m/s2comfortable start
limits.max_decel0.6 m/s2braking: measure (Section 2.3)
limits.max_yaw_accel1.5 rad/s2yaw braking: measure
limits.reaction_time0.3 sa 10 Hz LiDAR, the scan, the mux, the 50 Hz axis stream

The limits are what the stack may command, so every gait the robot walks in must reach them: the Walk gait’s 0.15 m/s sideways is why max_vy is low. The profile is read-only at runtime; a change needs a restart of every host.

2.2 One braking model ​

Every speed limit of the stack (the protective field, the follower’s guard, the speed profile before a stop point, path shift) uses one model of how far the robot travels from the moment a command at speed v is sent until it stands:

(2.1)d(v)=vtr+v22a

with tr the reaction time (reaction_time: sensing, transport, the robot’s own latency) and a the braking deceleration (max_decel). Read backwards, it gives the highest speed that still stops within a free distance D:

(2.2)vmax(D)=a(−tr+tr2+2Da)

The same two equations hold for turning, with the yaw rate ω, the yaw braking α (max_yaw_accel) and the free angle θ instead: θ(ω)=ωtr+ω2/2α. At 0.45 rad/s the X30 turns another 0.20 rad (11.6 °) before it stands.

Why the reaction time matters most at low speed

At 0.25 m/s the reaction term vtr is 7.5 cm of the 12.7 cm the robot needs to stop; at 0.75 m/s it is 22.5 cm of 69 cm. An underestimated tr shortens every distance by vΔtr, an underestimated a by a share that grows with v2.

2.3 Measuring the braking ​

Measure on the substation’s own ground, with the payload mounted and a charged battery: a heavier robot or a slippery surface brakes later.

  1. Mark a straight, free 10 m lane. Record the command and the odometry:

    bash
    rosbag record -O brake.bag /x30/cmd_vel /Odometry
  2. In REMOTE, walk the robot along the lane at a steady speed v for at least 3 m, then let go of the stick at once (the command drops to zero).

  3. Repeat three times each at 0.25, 0.5 and 0.75 m/s.

  4. From the bag, for each stop: t0 the time the command dropped, t1 the time the odometry speed starts to fall, t2 the time it reaches zero, and the distance d travelled from t0 to t2.

Then tr=t1−t0, and from the model

(2.3)a=v22(d−vtr)

For example, v=0.5m/s stopping in d=0.42m with tr=0.3s gives a=0.46m/s2. Put in the profile the largest tr and the smallest a of all runs: the model must not stop shorter than the robot.

Never round the measurements toward the robot’s favour

A higher max_decel or a lower reaction_time than measured makes every safety distance of the stack too short. When in doubt, keep the larger distance.

2.4 The base height ​

base_height levels the LiDAR’s points (the height band of Chapter 5 counts from the floor) and places the near-field blind zone. Measure the height of base_link (the middle of the body, application manual 6.1) above the floor with the robot standing on level ground, to the centimetre.