Repository navigation
fix(autoware_gnss_poser): publish no pose for the first position with orientation_source motion - #23
Open
kentdotn wants to merge 1 commit into
Conversation
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
October 28, 2026 01:50
1511070 to
49eaf0b
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
2 times, most recently
from
October 29, 2026 06:47
80752b2 to
b721d6f
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
2 times, most recently
from
October 29, 2026 07:45
8fc1d71 to
87a3703
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
2 times, most recently
from
October 30, 2026 02:05
53853d8 to
e38c50d
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
2 times, most recently
from
November 2, 2026 10:21
94351ff to
58c2764
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
2 times, most recently
from
November 2, 2026 11:01
52d5713 to
8ad9242
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 2, 2026 11:01
58c2764 to
f490a0c
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 2, 2026 11:42
8ad9242 to
f3bae4f
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
2 times, most recently
from
November 4, 2026 06:11
1674619 to
8efcc3d
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 4, 2026 06:11
f3bae4f to
9c5d7fe
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 5, 2026 05:43
8efcc3d to
d916617
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
2 times, most recently
from
November 5, 2026 10:30
0044ca2 to
51e5933
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 5, 2026 10:30
d916617 to
4374040
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 5, 2026 11:25
51e5933 to
dba8681
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
2 times, most recently
from
November 6, 2026 08:46
6937aec to
ac3f81d
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 6, 2026 08:46
dba8681 to
94af64f
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 9, 2026 07:53
ac3f81d to
9d332c3
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 9, 2026 07:53
94af64f to
916b996
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 16, 2026 05:22
9d332c3 to
d82136a
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 16, 2026 05:22
916b996 to
a090dd6
Compare
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
1 similar comment
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 17, 2026 05:08
a090dd6 to
ef2b433
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 17, 2026 05:08
d82136a to
a52c8a9
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 30, 2026 07:08
a52c8a9 to
ab9016a
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 30, 2026 07:08
ef2b433 to
7088738
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 30, 2026 07:50
ab9016a to
501a2bf
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 30, 2026 07:50
7088738 to
d981286
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 30, 2026 08:48
501a2bf to
85e3e79
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
November 30, 2026 08:48
d981286 to
23875f5
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
November 30, 2026 09:05
85e3e79 to
5dfcb97
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
2 times, most recently
from
December 1, 2026 05:00
21b38a1 to
dfd7f2a
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
December 1, 2026 05:00
5dfcb97 to
bb7acc5
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
December 2, 2026 07:41
dfd7f2a to
f136bf7
Compare
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
December 2, 2026 07:41
bb7acc5 to
1ab6273
Compare
… orientation_source motion With orientation_source motion (use_gnss_ins_orientation = false) the heading is the direction of the displacement from the previous position. The first position has none, so it was given a zero displacement and published heading east (atan2(0, 0) = 0) with the same covariance as a real heading. A consumer could not tell that pose from one that was actually heading east. Publish no pose for it instead: input_fix() returns Outcome::NoOrientation with gnss_fixed only, and keeps the position as the previous one, so the second position gets the heading of the first step. With a buffer the first position is the first reduced one, as before. The heading itself (atan2 of the latest step, east when standing still, constant covariance) is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kentaro NAGATOMO <kentaro.nagatomo@tier4.jp>
kentdotn
force-pushed
the
fix/gnss-poser-motion-waits-for-second-fix
branch
from
December 2, 2026 08:03
1ab6273 to
c2affd5
Compare
kentdotn
force-pushed
the
feat/gnss-poser-orientation-source
branch
from
December 2, 2026 08:03
f136bf7 to
15cc34e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Purpose
With
orientation_source: motion(formerlyuse_gnss_ins_orientation: false) the heading is the direction of the displacement from the previous position. The first position has no previous one, so it was given a zero displacement and published heading east (atan2(0, 0) = 0), with the same covariance as a real heading. A consumer cannot tell that pose from one that is actually heading east, and the east heading also enters the antenna ->base_linklever-arm correction.As agreed with the localization maintainers,
motionpublishes nothing until the second position.What this changes
GnssPoser::input_fix()withOrientationSource::Motion: the first position yieldsOutcome::NoOrientation(introduced in the previous PR forins) withgnss_fixedonly, and is kept as the previous position. The second position gets the heading of the first step.buff_epoch = Nthe first pose now comes with the (N+1)-th fix instead of the N-th.NoOrientationnames both reasons; the README and schema say thatmotionhas no pose for the first position.The heading algorithm itself is unchanged (atan2 of the latest step, east when standing still, constant covariance 0.1 / 0.1 / 1.0); improving it was agreed to be a separate topic.
Tests changed on purpose
MotionOrientation_FirstFix_IdentityAndConstantCovariance(unit)MotionOrientation_FirstFix_PublishesOnlyGnssFixed; it fails against the previous behavior (the outcome isPublishedand a pose is present)MotionOrientation_CardinalDirection_YawFromDisplacement, on the second fixConstruct_OrientationSourceParameters_SelectsTheSource/Motion,/LegacyFalse(integration)motionpublishes only the second pose of the scenarioRelated links
orientation_source) in this series.How was this PR tested?
colcon test: 45 unit + 42 node instances pass, plus the ament linters.clang-format21.1.8,cpplint2.0.2 andprettieron the README and schema pass.Interface changes
None (no parameter, topic or message change).
orientation_source: motionpublishes one pose less at start-up.Effects on system behavior
With
orientation_source: motion, oruse_gnss_ins_orientation: false, the first pose after start-up (the first after the buffer fills, with average / median) is no longer published. Every later pose is unchanged. Other sources are not affected.🤖 Generated with Claude Code