-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility deserialization of DiscreteTrajectory2 #3160
Conversation
physics/discrete_trajectory2.hpp
Outdated
@@ -117,6 +120,9 @@ class DiscreteTrajectory2 : public Trajectory<Frame> { | |||
typename Segments::iterator FindSegment(Instant const& t); | |||
typename Segments::const_iterator FindSegment(Instant const& t) const; | |||
|
|||
//TODO(phl): comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment?
Also, Is
suggests a boolean, IsConsistent().ok()
is weird. If we have a status, maybe it should be called Consistency
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to ValidateConsistency
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A verb phrase in the infinitive suggests void
to me, so that I might write ValidateConsistency();
and expect that to, well, validate the consistency.
A noun phrase seems better for a status.
EXPECT_THAT(log_warning.string(), | ||
AllOf(HasSubstr("pre-Ζήνων"), Not(HasSubstr("pre-Haar")))); | ||
|
||
// Note that the sizes don't have the same semantics as pre-Haar. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-Ζήνων?
retest this please |
2 similar comments
retest this please |
retest this please |
Also extracted
StringLogSink
and removed const-ness from some APIs (to make it possible to set the downsampling of a segment).#3136.