Repository navigation
One fix, to dual-antenna heading at startup. No parameter, default or message changes. If you use gnss.heading_topic or gnss.azimuth_topic, upgrade: on 0.5.0 a robot that did not start roughly facing east could have its heading rejected for a minute or more, or never accepted.
What was wrong
update_gnss_heading() ran the chi-squared outlier gate on every heading, the first one included. The filter starts at yaw 0, and nothing measured that zero, so the first heading's innovation was the robot's whole starting heading, tested against a prior that never claimed to know it. The gate's job is to catch a heading that disagrees with what the filter knows. Before the first heading, the filter knows nothing about heading, so there is nothing to disagree with.
Measured through the ROS node on 0.5.0, synthetic sensors at wall clock (still IMU at 100 Hz, wheel odometry at 50 Hz, heading at 5 Hz declaring 0.02 rad, parked 5 s then 1 m/s straight):
start yaw first heading accepted yaw at the end of the run
0 deg immediately 0.00 deg off
120 deg 55.70 s 1.47 deg off (75 s run)
170 deg never, in 75 s 170.00 deg off
Every rejection logs GNSS heading update rejected (throttled to one per 5 s), so if you saw a run of those at startup, this was the cause.
What changed
While no heading source has been established, the first valid heading now sets yaw directly. Roll and pitch are kept, because gravity already observes them and a heading says nothing about either. From the second heading on, the gate works as before, and a new test pins that an outlier after heading is established is still rejected. This is what the magnetometer path has done since 614c3ca, for the same reason, and the GPS track heading and rotation bootstrap paths already skip their gate on first use. The dual-antenna path was the one that did not.
Same probe on 0.5.1: the 120 and 170 degree starts are within 1.15 degrees of the true heading from the first heading onwards, with no rejections.
How it was found
From a user's fork that seeded yaw from the first heading in the node to work around it. Thank you.
What this is and is not
- Four new tests in
test_gnss_manager.cpp(every 10 degrees from -180 to 180; the parked-then-driving case at six angles; roll and pitch untouched; an outlier after heading is established still rejected). All four fail on 0.5.0. 413 tests, 0 failures, 7 skipped (the deliberately disabled #150 criteria). - The probes are in the repository:
tools/repro/heading_start_angle.cpp(core library) andtools/repro/node_heading_probe.py(drives the real node). - Not measured on hardware or on a dataset. The numbers above come from synthetic input with a perfect heading.
- Also in this release: the support page now offers a free review of one recorded log as the first step, and
docs/how-it-works.mdno longer says the encoder yaw-rate bias converges on its own (it only separates from the true turn rate while an absolute heading or a stop is being fused).
apt packages follow at the next ROS sync after the rosdistro update. Full detail in the CHANGELOG.