Skip to content
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

Merged
merged 26 commits into from
Oct 22, 2021

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Oct 22, 2021

Also extracted StringLogSink and removed const-ness from some APIs (to make it possible to set the downsampling of a segment).

#3136.

@@ -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.
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to ValidateConsistency.

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-Ζήνων?

@eggrobin eggrobin added the LGTM label Oct 22, 2021
@pleroy
Copy link
Member Author

pleroy commented Oct 22, 2021

retest this please

2 similar comments
@pleroy
Copy link
Member Author

pleroy commented Oct 22, 2021

retest this please

@pleroy
Copy link
Member Author

pleroy commented Oct 22, 2021

retest this please

@pleroy pleroy merged commit 72e829f into mockingbirdnest:Ondelette Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants