Skip to content
Closed
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
843 changes: 533 additions & 310 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ inherits = "release"
# Use core libs from path for local development, and version when publishing.
maps_io_ros = { path = "crates/maps_io_ros", version = "0.1.0" }
maps_rendering = { path = "crates/maps_rendering", version = "0.1.0" }
eframe = {version = "0.33.0", features = ["wgpu"] }
image = { version = "0.25.5", features = ["jpeg", "png", "pnm"] }
imageproc = "0.25.0"
lazy_static = "1.5.0"
Expand Down
12 changes: 6 additions & 6 deletions crates/maps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ default = ["kittest_snapshots"]
built = { version = "0.7.5", features = ["git2"] }

[dev-dependencies]
egui_kittest = { version = "0.32.0", features = ["wgpu", "snapshot", "eframe"] }
egui_kittest = { version = "0.33.0", features = ["wgpu", "snapshot", "eframe"] }

# Dependencies of the main app crate.
[dependencies]
maps_io_ros = { workspace = true }
maps_rendering = { workspace = true }
confy = "0.6.1"
eframe = {version = "0.32.1", features = ["wgpu"]}
egui_dnd = "0.13.0"
egui-file-dialog = "0.11.0"
egui_plot = "0.33.0"
egui_tiles = "0.13.0"
eframe = { workspace = true }
egui_dnd = "0.14.0"
egui-file-dialog = "0.12.0"
egui_plot = "0.34.0"
egui_tiles = "0.14.0"
image = { workspace = true }
lazy_static = { workspace = true }
log = { workspace = true }
Expand Down
13 changes: 7 additions & 6 deletions crates/maps/src/app_impl/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ use crate::movable::{DragDirection, Draggable, MovableAmounts, Rotatable};

impl AppState {
fn dialogs_open(&self) -> bool {
self.load_meta_file_dialog.state() == DialogState::Open
|| self.load_map_pose_file_dialog.state() == DialogState::Open
|| self.save_map_pose_file_dialog.state() == DialogState::Open
|| self.load_session_file_dialog.state() == DialogState::Open
|| self.save_session_file_dialog.state() == DialogState::Open
|| self.save_screenshot_dialog.state() == DialogState::Open
// TODO: track this in a less stupid way.
*self.load_meta_file_dialog.state() == DialogState::Open
|| *self.load_map_pose_file_dialog.state() == DialogState::Open
|| *self.save_map_pose_file_dialog.state() == DialogState::Open
|| *self.load_session_file_dialog.state() == DialogState::Open
|| *self.save_session_file_dialog.state() == DialogState::Open
|| *self.save_screenshot_dialog.state() == DialogState::Open
|| self.status.quit_modal_active
|| !self.status.error.is_empty()
}
Expand Down
4 changes: 2 additions & 2 deletions crates/maps/src/lens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ impl<'a> Lens<'a> {
fn bounce_pos(ui: &egui::Ui, pointer_pos: egui::Pos2, overlay_size: egui::Vec2) -> egui::Pos2 {
let offset = overlay_size / 2. + egui::vec2(10., 10.);
let window_uv = egui::vec2(
pointer_pos.x / ui.ctx().screen_rect().width(),
pointer_pos.y / ui.ctx().screen_rect().height(),
pointer_pos.x / ui.ctx().content_rect().width(),
pointer_pos.y / ui.ctx().content_rect().height(),
);

if window_uv.x < 0.5 && window_uv.y < 0.5 {
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/empty_start.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
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

broooken

Probably caused by emilk/egui#7602 ?

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/reload_session_config.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/stacked_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/tiles_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/value_colormap_rviz_costmap.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/value_colormap_rviz_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/value_interpretations_wiki.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion crates/maps_io_ros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version = "1.88.0"
readme = "README.md"

[dependencies]
emath = { version = "0.32.1", features = ["serde"] }
emath = { version = "0.33.0", features = ["serde"] }
image = { workspace = true }
imageproc = { workspace = true }
lazy_static = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/maps_rendering/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version = "1.88.0"
readme = "README.md"

[dependencies]
eframe = {version = "0.32.1", features = ["wgpu"]}
eframe = { workspace = true }
fast_image_resize = { version = "5.3.0", features = ["image"] }
image = { workspace = true }
imageproc = { workspace = true }
Expand Down