Improve seeding behavior

This commit is contained in:
Michel Breyer
2021-11-04 16:48:25 +01:00
parent 3b44940e36
commit 5d635cb540
5 changed files with 59 additions and 60 deletions

View File

@@ -72,6 +72,7 @@ class BtSimNode:
def seed(self, req):
self.sim.seed(req.seed)
rospy.loginfo(f"Seeded the rng with {req.seed}.")
return SeedResponse()
def reset(self, req):

View File

@@ -7,5 +7,5 @@ rospy.init_node("test")
seed = rospy.ServiceProxy("seed", Seed)
reset = rospy.ServiceProxy("reset", Reset)
seed(SeedRequest(1))
# seed(SeedRequest(1))
reset(ResetRequest())