Skip to content

Commit fa09146

Browse files
EricBoiseLGSVLhadiTab
authored andcommitted
[Update] [AUTO-5176] Get current scene id
1 parent eeeb3e2 commit fa09146

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lgsvl/simulator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def layers(self):
5454
def current_scene(self):
5555
return self.remote.command("simulator/current_scene")
5656

57+
@property
58+
def current_scene_id(self):
59+
return self.remote.command("simulator/current_scene_id")
60+
5761
@property
5862
def current_frame(self):
5963
return self.remote.command("simulator/current_frame")

quickstart/02-loading-scene-show-spawns.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
sim.load("BorregasAve")
2222

2323
print("Current Scene = {}".format(sim.current_scene))
24+
print("Current Scene ID = {}".format(sim.current_scene_id))
2425

2526
# This will print out the position and rotation vectors for each of the spawn points in the loaded map
2627
spawns = sim.get_spawn()

0 commit comments

Comments
 (0)