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

add missing include #312

Merged
merged 2 commits into from
Dec 29, 2023
Merged

add missing include #312

merged 2 commits into from
Dec 29, 2023

Conversation

JohnN193
Copy link
Collaborator

@JohnN193 JohnN193 commented Dec 29, 2023

pr fixes missing dependency in appimage and also fixes an issue where cloudslam would hang in offline mode after reaching the end of the dataset.

tested in cloudslam to see if job would run with appimage change.
job using latest: https://console.cloud.google.com/run/jobs/details/us-central1/cloudslam-job-658ef3c5418275aba713d91a/logs?project=staging-cloud-web-app
robot fails to connect.

job using pr: https://console.cloud.google.com/run/jobs/details/us-central1/cloudslam-job-658ef005418275aba712b26c/logs?project=staging-cloud-web-app
robot successfully connects

@JohnN193 JohnN193 added the appimage-ignore-tests Build AppImage of PR and ignore tests safe to test label Dec 29, 2023
@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Dec 29, 2023
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Dec 29, 2023
@@ -34,7 +34,7 @@ func (config *Config) StartOfflineSensorProcess(ctx context.Context) bool {
lidarReading, err := config.Lidar.TimedLidarReading(ctx)
if err != nil {
config.Logger.Warn(err)
return errors.Is(err, replaypcd.ErrEndOfDataset)
return strings.Contains(err.Error(), replaypcd.ErrEndOfDataset.Error())
Copy link

Choose a reason for hiding this comment

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

okay we should totally have the end of dataset logic be handled better, this is too brittle, I'm assuming it was sent over with an rpc wrapper and couldn't be compared using `errors.Is'? I wonder if we could have replay metadata be exposed somewhere.

@JohnN193 JohnN193 merged commit d392c66 into viam-modules:main Dec 29, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appimage-ignore-tests Build AppImage of PR and ignore tests safe to test safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants