Improve seeding behavior
This commit is contained in:
@@ -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):
|
||||
|
@@ -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())
|
||||
|
Reference in New Issue
Block a user