diff --git a/_data/navigation.yml b/_data/navigation.yml index d979757f..d584f9d0 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -273,6 +273,8 @@ wiki: url: /wiki/state-estimation/orb-slam3-setup-and-troubleshoot-guide/ - title: Setting Up OptiTrack Mocap System url: /wiki/state-estimation/optitrack-mocap/ + - title: Radar Odometry + url: /wiki/state-estimation/radar-odometry/ - title: Programming url: /wiki/programming/ children: diff --git a/assets/images/radar-odometry/1796103056096_image.png b/assets/images/radar-odometry/1796103056096_image.png new file mode 100644 index 00000000..ea6e9218 Binary files /dev/null and b/assets/images/radar-odometry/1796103056096_image.png differ diff --git a/wiki/state-estimation/index.md b/wiki/state-estimation/index.md index b32d7560..e55598f9 100644 --- a/wiki/state-estimation/index.md +++ b/wiki/state-estimation/index.md @@ -85,6 +85,12 @@ The "State Estimation" section provides a comprehensive understanding of how to - **[Setting Up OptiTrack Mocap System](/wiki/state-estimation/optitrack-mocap/)** Setup and integration guide for OptiTrack motion capture workflows with ROS and PX4 external position estimation. +- **[Radar Odometry](/wiki/state-estimation/radar-odometry/)** + Practical guide to radar-only (IMU-free) odometry with a single 4D imaging radar, based on a ROS 2 port of Radar4Motion. Explains what radar point clouds contain, why they are sparse and noisy, and why restricting the estimator to SE(2) stabilizes odometry on ground vehicles. + - Radar point fields (range, azimuth, elevation, Doppler, RCS) and power-to-RCS conversion. + - Why elevation is the weakest measurement and how it causes out-of-plane drift. + - Planar ICP, base-frame pose projection, and evaluating radar odometry with ATE/RPE. + ## Resources - [AMCL ROS Wiki](http://wiki.ros.org/amcl) diff --git a/wiki/state-estimation/radar-odometry.md b/wiki/state-estimation/radar-odometry.md new file mode 100644 index 00000000..1b45742e --- /dev/null +++ b/wiki/state-estimation/radar-odometry.md @@ -0,0 +1,248 @@ +--- +# Jekyll 'Front Matter' goes here. Most are set by default, and should NOT be +# overwritten except in special circumstances. +date: 2026-12-01 # YYYY-MM-DD +title: "4D Imaging Radar Odometry: Point Cloud Representation, Sparsity, Elevation Noise and the Planar Simplification" +--- + +This article explains the theory and the practical lessons from building a radar-only (IMU-free) odometry pipeline for a ground vehicle with a single 4D imaging radar. The implementation followed the open-source Radar4Motion method (Doppler ego-motion estimation, polar-grid RCS feature extraction and RCS-weighted scan-to-submap ICP), ported to ROS 2. The article focuses on why radar point clouds behave so differently from LiDAR point clouds. It covers what each field of a radar point means and where sparsity and noise come from. It also explains why elevation is the weakest measurement, and why restricting the estimator from SE(3) (6-DoF) to SE(2) (x, y, yaw) made odometry much more stable. If you are adapting a LiDAR odometry stack to radar, or debugging a radar odometry run that drifts out of plane, start here. + +## Background: why radar odometry? + +Odometry estimates a vehicle's incremental motion from its own sensor data, with no global reference. Wheel encoders, IMUs, cameras and LiDAR are the usual sources, but each one fails in a different way. Wheels slip. IMU errors grow quickly when integrated twice. Cameras need light and texture. LiDAR degrades in fog, rain, snow, dust and smoke. Millimetre-wave (mmWave) radar works at wavelengths of about 4 mm (77 GHz), so it passes through most of these conditions with little loss. It also measures something no other common exteroceptive sensor measures directly: the **radial (Doppler) velocity** of every detection. This makes radar a strong candidate for an all-weather localization source, for example on mining, agricultural or construction machines that work in dust. + +The cost is data quality. A radar point cloud has orders of magnitude fewer points than a LiDAR scan, and each point is much noisier, especially in angle. Most of the engineering in radar odometry goes into extracting reliable motion information from poor geometry. + +## Radar point cloud representation + +### How a 4D radar produces a point + +Modern automotive radars are **FMCW** (frequency-modulated continuous wave) sensors. Each measurement dimension comes from a different stage of signal processing: + +| Quantity | Physical principle | Processing step | Typical resolution driver | +|---|---|---|---| +| Range $r$ | Beat frequency between transmitted and received chirp | FFT over samples within one chirp | Sweep bandwidth $B$: $\Delta r = c / 2B$ | +| Radial velocity $v_r$ | Phase change of the return across consecutive chirps | FFT over chirps (Doppler FFT) | Frame duration: $\Delta v = \lambda / 2T_f$ | +| Azimuth $\theta$ | Phase difference across horizontally spaced antennas | Angle FFT / DOA estimation over the virtual array | Horizontal aperture (number of virtual elements) | +| Elevation $\phi$ | Phase difference across vertically spaced antennas | Angle FFT / DOA estimation | Vertical aperture (usually much smaller) | +| Power / RCS | Received signal strength | Peak magnitude after detection | SNR, target material, geometry | + +After these FFTs, a **CFAR** (constant false-alarm rate) detector finds peaks that stand out from local noise. Each surviving peak becomes one "point". So a radar point is not a sample of a surface, as a LiDAR return is. It is a *detection*: a cell in range–Doppler–angle space whose energy beat a threshold. This difference explains most of what follows. + +"3D" automotive radars measure range, azimuth and Doppler. "4D imaging" radars use cascaded MIMO (multiple-input, multiple-output) chips to build large virtual antenna arrays, which adds a usable **elevation** measurement. + +### The fields of a point + +The sensor measures natively in spherical coordinates: $(r, \theta, \phi, v_r, P)$. Drivers usually publish Cartesian points, giving the common layout `[x, y, z, power, doppler]`: + +$$x = r\cos\phi\cos\theta,\qquad y = r\cos\phi\sin\theta,\qquad z = r\sin\phi$$ + +It helps to keep the unit line-of-sight vector of each point: + +$$\mathbf{d} = [\cos\phi\cos\theta,\ \cos\phi\sin\theta,\ \sin\phi]^T$$ + +because the Doppler measurement is a projection of relative velocity onto $\mathbf{d}$ (see the ego-motion section). + +**Power versus RCS.** Many drivers report received *power* (often in dB). Algorithms such as Radar4Motion expect **radar cross-section (RCS)**, an intrinsic property of the target (how "radar-bright" it is). The radar equation links the two: + +$$P_r = \frac{P_t G^2 \lambda^2 \sigma}{(4\pi)^3 r^4 L} \quad\Rightarrow\quad \sigma_{\text{dB}} \approx P_{r,\text{dB}} + 40\log_{10} r + C$$ + +Received power falls with $r^4$. If raw power is used as if it were RCS, every nearby point looks "important" and every distant point looks weak. An adapter that converts power to RCS should therefore include the range compensation, unless the driver has already applied it (check the datasheet). The constant $C$ does not matter when RCS is only used for *relative* weighting or local normalization. + +**Doppler sign.** There is no universal sign convention. Some sensors report approaching targets as negative range-rate, others as positive. In this project a single flag (`flip_doppler_sign`) decided whether the estimated forward velocity came out positive or negative. A simple test is to drive straight forward slowly and check that the estimated $v_x$ of the radar is positive and close to the vehicle's speed. + +### Mapping driver fields to algorithm fields + +A small adapter node usually sits between the radar driver and the odometry. In this project it did three things: remapped the topic, renamed and converted fields (`power → RCS`, `doppler → vel` with the sign fix), and kept the radar's own `frame_id` so that TF could place the cloud on the vehicle. Most "the algorithm doesn't work on my radar" problems are adapter problems: a wrong field name, a missing sign flip, or the wrong frame. Check these first. + +## Sparsity and noise + +### Sparsity + +A single 4D radar scan usually contains a few hundred to a few thousand points, while a 64-beam LiDAR produces well over 100,000. There are several reasons: + +- **Detection, not sampling.** CFAR keeps only cells with enough SNR. Smooth surfaces that reflect specularly (away from the sensor) return almost nothing, so walls viewed at a shallow angle and flat ground can be invisible. +- **Resolution cells are coarse.** Several physical reflectors inside one range–angle cell merge into a single detection. +- **Limited field of view.** Typical vertical FoV is narrow (on the order of ±15°), so very little of the scene above or below the sensor's horizon is seen. + +Consequences for odometry: + +- Local surface normals cannot be estimated reliably, so point-to-plane ICP and normal-based features (common in LiDAR odometry) are fragile. +- Overlap between consecutive scans is low, especially during turns, when much of the scene leaves the FoV. +- Single-scan registration is under-constrained. This is why Radar4Motion **accumulates several scans** and matches them to a **submap** instead of matching scan-to-scan. + +### Noise + +Radar noise is both *larger* and *more structured* than LiDAR noise: + +- **Angular noise is much larger than range noise.** Range is precise (centimetres), but angle is limited by antenna aperture. Cross-range position error grows linearly with distance: $\sigma_\perp \approx r\,\sigma_\text{angle}$. At 30 m, a 1° angle error is already about 0.5 m of lateral error. The 3D uncertainty of each point is therefore a thin, wide "pancake": tight along the line of sight and wide across it. +- **Multipath and ghost targets.** Signals bounce off the ground, guard rails or the vehicle's own body before returning. This creates detections at false positions, typically mirrored below the ground plane or behind walls. +- **Sidelobes and clutter.** Strong reflectors (vehicles, metal poles) leak energy into neighbouring angle bins, creating false points around them. +- **Dynamic objects.** Moving cars and people produce valid detections with the wrong motion for ego-motion estimation. Unlike with LiDAR, they can be identified directly from Doppler (see below). + +Two principles follow. (1) Do not treat all points as equally trustworthy. Weight them by quality cues such as RCS. (2) Use isotropic (equal-in-all-directions) residuals with care, because error is not equal in all directions. + +## Elevation: the weakest measurement + +This was the most important practical lesson of the project. + +### Why elevation is noisy + +Angular resolution scales with the antenna aperture in that direction. Radar boards are packaged into bumpers and housings that are much wider than they are tall, and most virtual channels are spent on azimuth, because azimuth matters most for driving. So even "imaging" radars typically have **elevation resolution and accuracy several times worse than azimuth**. Ground multipath adds to this: it creates mirror-image points below the road surface, which corrupts the height channel specifically. + +The same $r\,\sigma_\phi$ rule turns this into large height errors. At 30 m a 2° elevation error is about 1 m of $z$ error, comparable to the height of the objects being observed. In the test recording used here, the raw point heights stayed in a plausible band (about 0–4 m), but individual points were scattered widely within it. + +### Why it matters for Doppler ego-velocity + +For a static point, the measured Doppler is the projection of the sensor's velocity onto the line of sight: + +$$v_{r,i} = -\mathbf{d}_i^T \mathbf{v}_s$$ + +(the sign depends on convention). Stacking all static points gives a linear least-squares problem $\mathbf{v}_r = -D\,\mathbf{v}_s$, with $D$ the $N\times 3$ matrix of line-of-sight vectors. The covariance of the estimate is $\sigma^2 (D^TD)^{-1}$, and the $z$-related term of $D^TD$ is $\sum_i \sin^2\phi_i$. + +For a ground vehicle, almost all static points lie close to the sensor's horizon, so $\sin\phi_i$ is tiny. A worked example: points spread uniformly over ±60° azimuth and ±5° elevation. Then $E[\cos^2\theta]\approx0.71$ while $E[\sin^2\phi]\approx0.0025$, so the standard deviation of $v_z$ is roughly $\sqrt{0.71/0.0025}\approx 17$ times larger than that of $v_x$. On top of that, $\phi_i$ itself is the noisiest input. **Vertical velocity is poorly observable from Doppler on a ground vehicle**, even before considering registration. + +### Why it matters for scan registration + +Write the small-motion displacement of a point $\mathbf{p}=(x,y,z)$ under a 6-DoF perturbation (translation $t_x,t_y,t_z$; roll $\alpha$, pitch $\beta$, yaw $\gamma$): + +$$\delta\mathbf{p} \approx \begin{bmatrix} t_x + \beta z - \gamma y \\ t_y + \gamma x - \alpha z \\ t_z + \alpha y - \beta x \end{bmatrix}$$ + +The six degrees of freedom split cleanly: + +- **x, y and yaw** show up mainly in the horizontal residuals, which depend on range and azimuth, the *good* measurements. +- **z, roll and pitch** show up mainly in the vertical residual (the $\beta z$ and $\alpha z$ terms are small, because point heights relative to the sensor are small). They are therefore estimated almost entirely from **elevation**, the *worst* measurement. + +So the out-of-plane half of SE(3) is both weakly constrained (little vertical structure in a parking lot or road scene) and estimated from the noisiest data. In practice ICP will accept a tilted solution almost as readily as the correct one. + +### How out-of-plane errors turn into height drift + +A small pitch error is not harmless, because pitch couples forward motion into height. If the estimated pose is pitched by $\beta$, each metre of forward travel is integrated as $\sin\beta$ metres of vertical motion. In the failing run of this project, diagnostic plots showed: + +- raw point heights roughly 0–4 m and Doppler $v_z \approx 0$ (the *input* was not drifting); +- estimated pitch reaching about −55° and roll/pitch swings near 100° (physically impossible for a car); +- estimated height reaching about 50 m. + +With $\sin 55^\circ \approx 0.82$, roughly 60 m of driving at that tilt is enough to produce about 50 m of false climb. The drift came from the **estimator**, not the data. + +Two causes reinforced each other: + +1. **A bad rotational prior.** The upstream motion prediction inferred angular rates from the radar's velocity and its lever arm (mounting offset) from the vehicle centre, using the rigid-body relation $\mathbf{v}_s = \mathbf{v}_b + \boldsymbol{\omega}\times\mathbf{r}$. With one radar this is ill-posed: one 3-vector measurement cannot separate 3 linear plus 3 angular unknowns without extra assumptions. Because angular rate is roughly velocity error divided by lever-arm length, a sub-metre lever arm amplifies small velocity or extrinsic errors into large rates. For the mounting offset in this project ($\mathbf{r} \approx (-0.565, 0.205, 0.091)$ m), an illustrative pure-forward 3 m/s gave spurious rates of about 48°/s in pitch and 98°/s in yaw. (Kellner et al. show that a single radar can only recover yaw rate under a vehicle-model assumption, and that multiple radars are needed otherwise. See Further Reading.) +2. **ICP that could not correct it.** For the reasons above, 6-DoF ICP had too little out-of-plane information to pull a tilted initial guess back to level, especially in turns where scan overlap dropped. It kept, and sometimes amplified, the tilt. + +## The planar (SE(2)) simplification + +### What was changed + +The fix was to make the estimator match the vehicle: a car on a parking lot moves in a plane. The constraint was enforced **inside the estimation**, not just by flattening the displayed trajectory: + +1. **Planar ICP.** Each Gauss–Newton update solves only for $\boldsymbol{\xi} = (t_x, t_y, \gamma)$. For a correspondence $(\mathbf{p}_i, \mathbf{q}_i)$ the residual and Jacobian (at the current estimate) are + $$\mathbf{e}_i = R(\gamma)\mathbf{p}_i^{xy} + \mathbf{t} - \mathbf{q}_i^{xy},\qquad J_i = \begin{bmatrix} 1 & 0 & -p'_{y} \\ 0 & 1 & p'_{x} \end{bmatrix}$$ + where $\mathbf{p}'$ is the transformed point. The weighted normal equations become $\left(\sum_i w_i J_i^TJ_i\right)\delta\boldsymbol{\xi} = -\sum_i w_i J_i^T\mathbf{e}_i$, with $w_i$ combining the RCS weight and the robust kernel. The optimizer can no longer introduce vertical translation, roll or pitch. +2. **Pose projection.** A `ProjectToPlane()` step converts the pose to the vehicle base frame, keeps x, y and yaw, and resets z, roll and pitch to the reference plane. It is applied to **both** the pre-ICP initial guess and the refined result, so tilt cannot build up between scans. Yaw should be taken from the heading of the rotated x-axis, $\gamma = \operatorname{atan2}(R_{10}, R_{00})$, rather than from an Euler decomposition that can flip near large pitch angles. +3. **A new motion prior.** The lever-arm angular-rate heuristic was replaced. Doppler ego-velocity still provides the in-plane translation prior, and the previous estimated motion provides the yaw prior (a constant-velocity model, as in KISS-ICP). + +| Property | 6-DoF (before) | Planar mode (after) | +|---|---|---| +| Motion model | SE(3) | SE(2) | +| Estimated variables | x, y, z, roll, pitch, yaw | x, y, yaw | +| Fixed variables | none | z = roll = pitch = 0 (relative to the reference plane) | +| Measurements driving the estimate | range, azimuth **and elevation** | mainly range and azimuth | + +The reference plane was fixed from the vehicle pose at the first scan. The constraint applies to **vehicle motion only**. The radar points keep their 3D coordinates, and the URDF mounting transform (including the radar's own tilt) is unchanged. + +### Why projecting in the right frame matters + +The radar is not level and not at the vehicle origin, so projection has to happen in the **base frame**, not the radar frame. Odometry is computed for the radar and then converted: + +$$T_{\text{map,base}} = T_{\text{map,radar}}\; T_{\text{base,radar}}^{-1}$$ + +where $T_{A,B}$ maps coordinates from frame B into frame A. If the radar pose itself were flattened, a radar that is legitimately pitched a few degrees on its bracket would be forced level. That would tilt the whole vehicle in the estimate and bring the coupling problem back. + +### Why it helps so much + +- **It removes the unobservable directions.** The three dropped DoF were exactly the ones estimated from elevation. The remaining problem uses the precise measurements (range, azimuth, Doppler in the horizontal plane), and its Hessian is well conditioned. +- **It breaks the error coupling.** With pitch fixed at zero, forward motion can no longer leak into height, so a 50 m climb becomes impossible by construction. +- **It makes the prior consistent.** A prior and an estimator that live in the same 3-DoF space cannot fight each other through unconstrained directions. +- **It improves the submap.** Scans inserted at the wrong tilt corrupt the submap, which corrupts the next registration. The Radar4Motion stages cascade (Doppler gives the initial pose and static points, RCS filtering gives reliable features, matching refines the pose and builds the submap), so stabilizing the pose improves every later iteration. + +After the change, trajectories on a parking-lot recording were smooth and continuous through straight sections and turns, and qualitatively matched the route seen in a time-synchronized camera feed and the shape of the accumulated radar map. + +### Limits: what the constraint costs + +This is a modelling **assumption**, and it trades variance for bias: + +- On a slope of angle $\alpha$, the planar model sees only the horizontal component of travel. The horizontal scale error is $1-\cos\alpha$, about 0.4% at 5° and 1.5% at 10°, but height is not tracked at all. +- Uneven ground, ramps, speed bumps and body roll in hard turns are all unmodelled. Off-road and mining vehicles can break the assumption seriously. +- Zero z/roll/pitch drift is a **consequence of the constraint**, not evidence of 3D accuracy. Do not report it as a result. + +Middle-ground options if the vehicle does not stay on flat ground: + +- **2.5D / soft constraints.** Keep 6-DoF, but add a strong prior or penalty on roll, pitch and z velocity (for example the non-holonomic and "ground vehicle" constraints used in radar–inertial work) instead of hard-zeroing them. +- **Ground-plane estimation.** Fit the ground from radar or LiDAR returns and track the plane slowly over time. +- **A gravity reference.** Even a cheap IMU makes roll and pitch observable through gravity. This is the main reason radar–*inertial* odometry is popular. +- **Uncertainty-aware registration.** Model each point's anisotropic covariance (large in elevation) as in GICP-style methods, instead of using isotropic point-to-point residuals. 4DRadarSLAM's adaptive probability-distribution GICP is an example. + +## The rest of the pipeline in brief + +![Overview of the Radar4Motion pipeline: IMU-free ego-motion estimation, polar-grid local RCS feature extraction, and RCS-weighted accumulated scans-to-submap matching (pipeline figure adapted from Kim et al., Radar4Motion)](/assets/images/radar-odometry/1796103056096_image.png) + +**1. IMU-free ego-motion estimation (ME-LSQ).** Fit $\mathbf{v}_s$ to the Doppler model with an outlier-robust least-squares scheme. Points whose measured Doppler disagrees with the fitted ego-velocity are moving objects (or noise) and are removed. Outputs: a static point cloud and an initial transform (velocity × $\Delta t$). This is radar's big advantage over LiDAR: dynamic-object removal comes almost free, within a single scan. + +**2. Polar-grid local RCS feature extraction.** Bin the static points into a polar grid (range × azimuth cells) and keep only the locally highest-RCS points in each cell, followed by local RCS normalization. A polar grid fits the sensor: cell width grows with range, as the angular uncertainty does, so near and far regions are treated fairly. Keeping local maxima (rather than a global RCS threshold) avoids keeping only a few very bright objects and keeps spatial coverage. + +**3. RCS-weighted accumulated scans-to-submap matching.** Accumulate several recent motion-compensated scans, then register them to a local voxel submap with point-to-point ICP built on KISS-ICP (adaptive correspondence threshold, robust kernel, voxel hash map). Each correspondence is weighted by RCS, so strong, stable reflectors dominate the solution. The refined pose updates the submap and the trajectory. There is no loop closure, so this is odometry and local mapping, not SLAM. + +## Implementation insights (ROS 2) + +- **Port, then verify the interface before touching the math.** The upstream code is ROS 1 (catkin). Porting the build, launch files and visualization to ROS 2 / RViz2 was routine. The time-consuming part was proving that the input was right: topic remapping, field names, Doppler sign, and frame id. Change one thing at a time, so that estimator changes are not confused with interface bugs. +- **Have one TF authority per transform.** Following REP-105, the odometry node should be the only publisher of the moving transform (here `map → base_link`), and the URDF / robot_state_publisher should own the fixed `base_link → radar` mounting. A leftover static placeholder transform from a demo launch file will create a competing parent and produce confusing jumps in RViz. Also note that the "map" frame of an odometry-only system is really an odometry frame: it drifts without bound. +- **Plot inputs and outputs on a common time axis.** The decisive diagnostic was a single figure with raw point XYZ, Doppler ego-velocity, and estimated x/y/z plus roll/pitch/yaw. If the inputs are steady while the estimate diverges, the bug is in prediction or registration, not in the sensor or adapter. +- **Use the other sensors to check, not to fuse.** Replaying a bag with camera and LiDAR displayed next to the radar trajectory is a cheap sanity check for route shape and turn timing, while keeping the odometry radar-only. +- **Replay specific bags.** When a bag folder holds several recordings, point `ros2 bag play` at the directory that contains `metadata.yaml`, not its parent. + +## Evaluating radar odometry properly + +A smooth trajectory and a good-looking map are **not** accuracy measurements. A drifting estimate can still look smooth. Proper evaluation needs a reference trajectory (RTK-GNSS/INS, motion capture, or at least LiDAR odometry from the same rig) and standard metrics: + +- **Absolute Trajectory Error (ATE/APE):** RMSE of position after aligning the two trajectories. Measures global consistency. +- **Relative Pose Error (RPE):** error of relative motion over fixed distances or time windows (for example per 100 m, KITTI-style). Measures local drift, which is what odometry should be judged on. + +The `evo` package computes both directly from ROS 2 bags or TUM/KITTI files. Public datasets with 4D radar and ground truth (View-of-Delft, NTU4DRadLM) let you compare against published numbers before collecting your own data. + +## Summary + +A 4D radar point is a CFAR detection with range, azimuth, elevation, Doppler and power, not a surface sample. It is sparse, and its noise is strongly anisotropic. Range and Doppler are precise, azimuth is moderate, and **elevation is the weakest channel**. For a ground vehicle, z, roll and pitch are estimated almost entirely from that weak channel, both in Doppler ego-velocity and in ICP. As a result, a 6-DoF radar odometry can rotate out of plane and turn forward motion into tens of metres of false height. Constraining the estimator to SE(2), with planar ICP, base-frame pose projection and a velocity-based yaw prior, removes those unobservable directions. In this project it turned an unstable pipeline into smooth, continuous radar-only odometry. The cost is an explicit flat-ground assumption, which must be validated with ground-truth metrics and revisited (soft constraints, ground estimation or an IMU) on uneven terrain. + +## See Also: +- [Registration Techniques in Robotics](/wiki/math/registration-techniques/) +- [LIO-SAM with Velocity Undistortion & Dynamic Obstacle Filtering](/wiki/state-estimation/lio-sam-velocity-undistortion-and-dynamic-filtering/) +- [Radar-Camera Sensor Fusion](/wiki/state-estimation/radar-camera-sensor-fusion/) +- [Setting up the ROS Navigation Stack for Custom Robots](/wiki/state-estimation/ros-navigation/) (TF tree setup) + +## Further Reading +- [Radar4Motion source code (ailab-hanyang/Radar4Motion)](https://github.com/ailab-hanyang/Radar4Motion) – The open-source implementation this work is based on. It contains the ego-motion, preprocessing and registration code (`odometry.cpp`, `preprocessing.cpp`) discussed above, plus a View-of-Delft example setup. Read it alongside this article to see where the planar changes would go (registration update, pose prediction, pose projection). +- [Radar4Motion paper, IEEE Transactions on Intelligent Vehicles (DOI 10.1109/TIV.2024.3477445)](https://doi.org/10.1109/TIV.2024.3477445) – The method description: ME-LSQ ego-motion estimation, polar-grid local RCS features and RCS-weighted accumulated scan-to-submap matching. Useful for the motivation behind each stage and for the authors' quantitative results on public datasets, which this article does not reproduce. +- [KISS-ICP (PRBonn/kiss-icp)](https://github.com/PRBonn/kiss-icp) and its [paper on arXiv](https://arxiv.org/abs/2209.15397) – Radar4Motion's registration builds on KISS-ICP's point-to-point ICP (adaptive threshold, robust kernel, voxel hash map, constant-velocity prior). Understanding KISS-ICP makes the radar-specific changes (RCS weights, accumulation, planar mode) easy to follow. It has a ROS 2 wrapper, so it is also a convenient LiDAR baseline on the same recording. +- [Kellner et al., "Instantaneous ego-motion estimation using Doppler radar" (ITSC 2013)](https://doi.org/10.1109/ITSC.2013.6728341) – The classic paper on estimating vehicle velocity and yaw rate from the Doppler of a single radar scan. It shows why a single radar needs a vehicle-model assumption (Ackermann / single-track) to recover yaw rate. That is the theory behind why inferring angular rates from radar velocity and a lever arm alone is fragile. The [multi-radar follow-up (ICRA 2014)](https://doi.org/10.1109/ICRA.2014.6907064) shows how two or more sensors remove that assumption. +- [REVE – Radar Ego Velocity Estimator (christopherdoer/reve)](https://github.com/christopherdoer/reve) – A compact, well-tested C++/ROS implementation of 3D radar ego-velocity estimation with RANSAC outlier rejection. Useful as a reference or drop-in for the Doppler least-squares stage, and to compare its $v_z$ noise against $v_x$/$v_y$ on your own data, which illustrates the elevation conditioning problem. +- [RAVE: A Framework for Radar Ego-Velocity Estimation (arXiv 2406.18850)](https://arxiv.org/abs/2406.18850) – A systematic comparison of outlier-rejection schemes and loss functions for Doppler ego-velocity, including zero-velocity detection and rejection of infeasible estimates. Helpful when tuning the ego-motion stage in start-stop or low-speed driving, where Doppler estimates are least reliable. +- [4D Millimeter-Wave Radar in Autonomous Driving: A Survey (arXiv 2306.04242)](https://arxiv.org/abs/2306.04242) – A broad review of 4D radar signal processing, MIMO resolution improvements, calibration and point cloud generation. It explains in more depth why the point clouds are sparse and noisy and why aperture limits elevation resolution. Good background for the representation section. +- [Radar Odometry for Autonomous Ground Vehicles: A Survey of Methods and Datasets (arXiv 2307.07861)](https://arxiv.org/abs/2307.07861) – Surveys Doppler-based, registration-based and learning-based radar odometry and lists datasets. Use it to place Radar4Motion among other approaches and to find alternatives if planar ICP is not enough. +- [4D iRIOM: 4D Imaging Radar Inertial Odometry and Mapping (arXiv 2303.13962)](https://arxiv.org/abs/2303.13962) – A radar–inertial system that notes 4D radar scans are still very sparse (on the order of 400 points per scan) and that scan matching is noise-sensitive. Read it as the "add an IMU" alternative to the planar constraint: it shows how gravity and inertial data restore roll and pitch observability. +- [EFEAR-4D (CLASS-Lab/EFEAR-4D) and paper (arXiv 2405.09780)](https://github.com/CLASS-Lab/EFEAR-4D) – Another learning-free 4D radar odometry that combines Doppler ego-velocity filtering with region-wise feature extraction and point-to-point matching. It also tests how radar mounting height changes point cloud quality, which is directly relevant when choosing where to mount the sensor. +- [4DRadarSLAM (zhuge2333/4DRadarSLAM)](https://github.com/zhuge2333/4DRadarSLAM) – A ROS 6-DoF radar SLAM system using adaptive probability-distribution GICP, which models each point's anisotropic uncertainty, plus loop closure. It is the main example of the "uncertainty-aware registration" route mentioned above, and the next step if you need drift correction beyond odometry. +- [evo – Python package for evaluating odometry and SLAM (MichaelGrupp/evo)](https://github.com/MichaelGrupp/evo) – The standard tool for computing ATE/APE and RPE, aligning trajectories and plotting them. It reads ROS bags directly. Use it to turn "the trajectory looks smooth" into numbers once you have a reference trajectory. +- [View-of-Delft dataset (tudelft-iv/view-of-delft-dataset)](https://github.com/tudelft-iv/view-of-delft-dataset) and [NTU4DRadLM (junzhang2016/NTU4DRadLM)](https://github.com/junzhang2016/NTU4DRadLM) – Public datasets with 4D radar, LiDAR, cameras and pose references. Radar4Motion's demo uses View-of-Delft, and NTU4DRadLM was built for radar localization and mapping. Test your pipeline here first, so that problems with your own sensor setup are not confused with algorithm problems. +- [TI mmWave training series: Introduction to mmWave Sensing – FMCW Radars](https://training.ti.com/mmwave-training-series) – Short video modules on range, velocity and angle estimation in FMCW radar. They are the clearest explanation of where each field of a radar point comes from, and why angular resolution depends on the number of antennas. +- [REP-105: Coordinate Frames for Mobile Platforms](https://reps.openrobotics.org/rep-0105/) – The ROS convention for `map`, `odom` and `base_link`, and for which node owns which transform. Read it before integrating any odometry into an existing TF tree, to avoid duplicate publishers and wrong parent frames. + +## References +- AI LAB, Hanyang University, Radar4Motion source repository, https://github.com/ailab-hanyang/Radar4Motion +- M. Grupp, "evo: Python package for the evaluation of odometry and SLAM," https://github.com/MichaelGrupp/evo +- Z. Han et al., "4D Millimeter-Wave Radar in Autonomous Driving: A Survey," arXiv:2306.04242. +- D. Kellner, M. Barjenbruch, J. Klappstein, J. Dickmann, and K. Dietmayer, "Instantaneous ego-motion estimation using Doppler radar," *IEEE ITSC*, 2013, pp. 869–874. doi:10.1109/ITSC.2013.6728341 +- S. Kim, J. Seok, J. Lee, and K. Jo, "Radar4Motion: IMU-Free 4D Radar Odometry With Robust Dynamic Filtering and RCS-Weighted Matching," *IEEE Transactions on Intelligent Vehicles*, 2024. doi:10.1109/TIV.2024.3477445 +- W. Meeussen, "REP-105: Coordinate Frames for Mobile Platforms," ROS Enhancement Proposals. +- I. Vizzo, T. Guadagnino, B. Mersch, L. Wiesmann, J. Behley, and C. Stachniss, "KISS-ICP: In Defense of Point-to-Point ICP – Simple, Accurate, and Robust Registration If Done the Right Way," *IEEE Robotics and Automation Letters*, vol. 8, no. 2, 2023. doi:10.1109/LRA.2023.3236571 +- J. Zhang et al., "4DRadarSLAM: A 4D Imaging Radar SLAM System for Large-scale Environments based on Pose Graph Optimization," *IEEE ICRA*, 2023. doi:10.1109/ICRA48891.2023.10160670