From 416c2efe49798b89e7b0501b92fae8eb3f14cda3 Mon Sep 17 00:00:00 2001 From: Jonas Dech Date: Fri, 29 Nov 2024 15:42:14 +0100 Subject: [PATCH] [demo] Added seed for the demo --- demos/pycram_bullet_world_demo/demo.py | 2 ++ demos/pycram_bullet_world_demo/test_demo.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/demos/pycram_bullet_world_demo/demo.py b/demos/pycram_bullet_world_demo/demo.py index be65018a4..16aba3828 100644 --- a/demos/pycram_bullet_world_demo/demo.py +++ b/demos/pycram_bullet_world_demo/demo.py @@ -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) diff --git a/demos/pycram_bullet_world_demo/test_demo.py b/demos/pycram_bullet_world_demo/test_demo.py index 7114e0960..9bd26c9cc 100644 --- a/demos/pycram_bullet_world_demo/test_demo.py +++ b/demos/pycram_bullet_world_demo/test_demo.py @@ -3,6 +3,5 @@ try: import demo except Exception as e: - print(e) World.current_world.exit() - exit(1) \ No newline at end of file + raise e \ No newline at end of file