Commit 7c76bf0
committed
Expose APIs for clearing the ECMs internal state tracking addition and removal (#3002)
This is necessary for use with the `SetState` API. This API is commonly
used to create a local version of the servers ECM that is periodically
synchronized. However, without exposing this function into our public API
additions and removals of entities or components are not reflected in the
local ECM.
Currently, we use `friend` relationships for the `GuiRunner` class to
allow it to run these functions, but this is not feasible for external
code that wants to use `SetState`.
https://github.com/gazebosim/gz-sim/blob/5ce62a8826b930078fae940288ac9677aae9ec7b/include/gz/sim/EntityComponentManager.hh#L834,
https://github.com/gazebosim/gz-sim/blob/5ce62a8826b930078fae940288ac9677aae9ec7b/src/gui/GuiRunner.cc#L316-L318
Signed-off-by: Addisu Z. Taddese <[email protected]>
(cherry picked from commit b2f3c82)1 parent daab6f2 commit 7c76bf0
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
688 | | - | |
689 | | - | |
| 687 | + | |
| 688 | + | |
690 | 689 | | |
691 | 690 | | |
692 | 691 | | |
693 | | - | |
| 692 | + | |
694 | 693 | | |
695 | 694 | | |
696 | | - | |
697 | | - | |
698 | | - | |
| 695 | + | |
| 696 | + | |
699 | 697 | | |
700 | 698 | | |
701 | | - | |
| 699 | + | |
702 | 700 | | |
703 | 701 | | |
704 | 702 | | |
| |||
0 commit comments