Skip to content

Commit

Permalink
Add missing systems for model spawning in workcell editor mode (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova authored Aug 23, 2023
1 parent 696fd3c commit 2837183
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rmf_site_editor/src/workcell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ use crate::AppState;
use crate::{
shapes::make_infinite_grid,
site::{
handle_new_mesh_primitives, make_models_selectable, update_anchor_transforms,
update_model_scenes, update_model_tentative_formats, update_transforms_for_changed_poses,
clear_model_trashcan, handle_new_mesh_primitives, handle_new_sdf_roots,
make_models_selectable, update_anchor_transforms, update_model_scales, update_model_scenes,
update_model_tentative_formats, update_transforms_for_changed_poses,
},
};

Expand Down Expand Up @@ -100,13 +101,19 @@ impl Plugin for WorkcellEditorPlugin {
.with_system(add_wireframe_to_meshes)
.with_system(update_constraint_dependents)
.with_system(update_model_scenes)
.with_system(update_model_scales)
.with_system(update_model_tentative_formats)
.with_system(make_models_selectable)
.with_system(handle_workcell_keyboard_input)
.with_system(handle_new_mesh_primitives)
.with_system(change_workcell.before(load_workcell))
.with_system(handle_new_sdf_roots)
.with_system(handle_new_urdf_roots),
)
.add_system_set_to_stage(
CoreStage::PreUpdate,
SystemSet::on_update(AppState::WorkcellEditor).with_system(clear_model_trashcan),
)
.add_system(load_workcell)
.add_system(save_workcell)
.add_system(add_workcell_visualization)
Expand Down

0 comments on commit 2837183

Please sign in to comment.