Skip to content

Commit 892837e

Browse files
MagdalenaKotyniamaciejmajek
authored andcommitted
refactor: moved spawned_entities to base SimulationBridge
1 parent 5b72f7c commit 892837e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/rai_sim/rai_sim/o3de/o3de_bridge.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import subprocess
1919
import time
2020
from pathlib import Path
21-
from typing import Any, Dict, List, Optional
21+
from typing import Any, Dict, Optional
2222

2323
import yaml
2424
from geometry_msgs.msg import Point, Pose, Quaternion
@@ -58,10 +58,6 @@ def __init__(
5858
):
5959
super().__init__(logger=logger)
6060
self.connector = connector
61-
self.spawned_entities: List[
62-
SpawnedEntity
63-
] = [] # list of spawned entities with their initial poses
64-
6561
self.current_sim_process = None
6662
self.current_robotic_stack_process = None
6763
self.current_binary_path = None

src/rai_sim/rai_sim/simulation_bridge.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ class SimulationBridge(ABC, Generic[SimulationConfigT]):
9090
"""
9191

9292
def __init__(self, logger: Optional[logging.Logger] = None):
93+
self.spawned_entities: List[
94+
SpawnedEntity
95+
] = [] # list of spawned entities with their initial poses
9396
if logger is None:
9497
self.logger = logging.getLogger(__name__)
9598
else:

0 commit comments

Comments
 (0)