env.py 756 B

12345678910111213141516171819202122232425262728293031323334
  1. class Env:
  2. def __init__(self):
  3. self.x_range = (0, 50)
  4. self.y_range = (0, 30)
  5. self.obs_boundary = self.obs_boundary()
  6. self.obs = self.obs_circle()
  7. @staticmethod
  8. def obs_boundary():
  9. obs_boundary = [
  10. (0, 0, 1, 30),
  11. (0, 30, 50, 1),
  12. (1, 0, 50, 1),
  13. (50, 1, 1, 30),
  14. (20, 1, 1, 15),
  15. (10, 15, 10, 1),
  16. (30, 15, 1, 15),
  17. (40, 1, 1, 15)
  18. ]
  19. return obs_boundary
  20. @staticmethod
  21. def obs_circle():
  22. obs_cir = [
  23. (5, 10, 3),
  24. (10, 22, 3.5),
  25. (21, 23, 3),
  26. (34, 9, 4),
  27. (37, 23, 3),
  28. (45, 20, 2)
  29. ]
  30. return obs_cir