Closed linZHank closed 5 years ago
figure out if this is related to rosservice?
In crib_task_env
, When setting goals at the beginning of every episode, make sure the codes resetting goal when it too close to robot are all included in the while loop.
while np.linalg.norm(self.goal_position - self.init_position) <= 0.5:
rospy.logerr("Goal was set too close to the robot, reset the goal...")
goal_x = random.uniform(self.low[0]+.5, self.high[0]-.5)
goal_y = random.uniform(self.low[1]+.5, self.high[1]-.5)
self.goal_position = np.array([goal_x, goal_y])
Log info as follows