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

c++ replay: send frames based on custom encodeIdx packet #22364

Closed
wants to merge 2 commits into from

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Sep 28, 2021

No description provided.

@deanlee deanlee marked this pull request as ready for review September 28, 2021 19:16
@deanlee deanlee marked this pull request as draft September 28, 2021 19:25
@deanlee
Copy link
Contributor Author

deanlee commented Sep 28, 2021

there are no ROAD_ENCODE_IDX in the qlogs of demo_route and (a8e8bf6a3864361b|2021-01-04--03-01-18). I don't know why.

@deanlee deanlee marked this pull request as ready for review September 28, 2021 19:54
@pd0wm
Copy link
Contributor

pd0wm commented Sep 29, 2021

They are present on more recent routes. It's fine if replay on qlog doesn't work with old routes.

};

kj::ArrayPtr<const capnp::word> words((const capnp::word *)raw_.data(), raw_.size() / sizeof(capnp::word));
while (words.size() > 0) {
try {
std::unique_ptr<Event> evt = std::make_unique<Event>(words);
switch (evt->which) {
case cereal::Event::ROAD_CAMERA_STATE:
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need all this extra tracking of the camera state timestamp. In the rare cases that neither EOF or SOF are set we can just use the logMonoTime of the encode packet.

@deanlee deanlee closed this Sep 29, 2021
@pd0wm
Copy link
Contributor

pd0wm commented Sep 29, 2021

Also saw some weird skipping around, so decided to just steal your idea of a isCustomEvent flag on the event and apply it to the PR I already made.

@deanlee deanlee deleted the replay_eidx branch September 29, 2021 15:46
@deanlee deanlee restored the replay_eidx branch September 29, 2021 15:46
@deanlee deanlee deleted the replay_eidx branch September 29, 2021 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants