-
Notifications
You must be signed in to change notification settings - Fork 17
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
add jobs done file #191
add jobs done file #191
Conversation
viam-cartographer.go
Outdated
if err != nil { | ||
cartoSvc.logger.Warn(err) | ||
} | ||
jobsDone = true |
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.
- Could we talk about the requirements for this feature so I can be sure that it gets rolled into full mod?
- I don't think it works to track a given session completing at the package level, as variable is shared across viam cartographer instances & persists even after reconfiguration.
- I recommend instead (assuming this should be scoped to a given viam cartographer instance & should be reset on restart) to put it on thecartographerService struct.
- Also, should Jobs_Done.txt still persist if cartographer is reconfigured?
cc @EshaMaharishi
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.
It doesn't matter if the jobs done file persists after cartographer is reconfigured since a cloud slam session will only be configured once, but I agree for code cleanliness it's better to scope it to a single configuration
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.
moved the flag into the cartographerService
struct, but I did not handle removing the file on reconfig as that is unnecessary for the demo & usage with a replay camera, but I included it in the followup ticket for the file
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.
followed up offline, in the followup ticket we will switch to using a DoCommand
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.
Lgtm for the demo, but would you mind filing a ticket to move writing the job_done file to after the final lidar scan has been processed?
would need to do some looking to see if we have access to cartographer's queue, to see if all data has been processed, but I can make a ticket for that |
https://viam.atlassian.net/browse/RSDK-3980 ticket to move the job creation file |
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.
LGTM
adds a jobs done file when the replay camera stops. additionally prevents cartographer from repeating the warning about the job being completed.
Additional issue is this file gets created when all lidar scans are read into the job, but this does not mean that all lidar scans have been processed
unsure of interactions with full mod and interactions with a live replay camera