Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/maps/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Error handling for the `maps` crate.

use log::error;
use thiserror::Error;

use maps_io_ros::impl_error_constructors;
Expand Down
5 changes: 4 additions & 1 deletion crates/maps/src/grid_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ impl default::Default for GridOptions {
line_spacing_points: 200.,
min_line_spacing_points: 1.,
max_line_spacing_points: 1000.,
line_stroke: egui::Stroke::new(1., egui::Color32::LIGHT_BLUE),
line_stroke: egui::Stroke::new(
1.,
egui::Color32::from_rgba_unmultiplied(173, 216, 230, 90),
),
sub_lines_visible: SubLineVisibility::default(),
sub_lines_factor: 10,
sub_lines_stroke: egui::Stroke::new(
Expand Down
4 changes: 2 additions & 2 deletions crates/maps/src/wasm/async_map_io.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::path::PathBuf;
use std::path::{Path, PathBuf};
use std::sync::{Arc, Mutex};

use eframe::egui;
Expand Down Expand Up @@ -95,7 +95,7 @@ fn pick_map_files(data: Arc<Mutex<AsyncData>>) {
let expected_image = &meta.image_path;
match image_handles
.iter()
.find(|image_handle| PathBuf::from(image_handle.file_name()) == *expected_image)
.find(|image_handle| Path::new(&image_handle.file_name()) == *expected_image)
{
Some(image_file) => match load_image(image_file).await {
Ok(image) => {
Expand Down
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/aligned_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/dense_grid_precision.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/fixed_lens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/fixed_lens_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/google_cartographer_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/measurement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/nav2_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions crates/maps/tests/snapshots/pixel_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading