Skip to content

Commit

Permalink
[demo] Added seed for the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigul committed Nov 29, 2024
1 parent bc76292 commit 416c2ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions demos/pycram_bullet_world_demo/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
from pycram.datastructures.dataclasses import Color
from pycram.ros.viz_marker_publisher import VizMarkerPublisher
from pycrap import Robot, Apartment, Milk, Cereal, Spoon, Bowl
import numpy as np

np.random.seed(420)
extension = ObjectDescription.get_file_extension()

world = BulletWorld(WorldMode.GUI)
Expand Down
3 changes: 1 addition & 2 deletions demos/pycram_bullet_world_demo/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
try:
import demo
except Exception as e:
print(e)
World.current_world.exit()
exit(1)
raise e

0 comments on commit 416c2ef

Please sign in to comment.