willow-pr2-5cm.world 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. define block model
  2. (
  3. size [0.5 0.5 0.75]
  4. gui_nose 0
  5. )
  6. define topurg ranger
  7. (
  8. sensor(
  9. range_max 30.0
  10. fov 270.25
  11. samples 1081
  12. )
  13. # generic model properties
  14. color "black"
  15. size [ 0.05 0.05 0.1 ]
  16. )
  17. define pr2 position
  18. (
  19. size [0.65 0.65 0.25]
  20. origin [-0.05 0 0 0]
  21. gui_nose 1
  22. drive "omni"
  23. topurg(pose [ 0.275 0.000 0 0.000 ])
  24. )
  25. define floorplan model
  26. (
  27. # sombre, sensible, artistic
  28. color "gray30"
  29. # most maps will need a bounding box
  30. boundary 1
  31. gui_nose 0
  32. gui_grid 0
  33. gui_outline 0
  34. gripper_return 0
  35. fiducial_return 0
  36. ranger_return 1
  37. )
  38. # set the resolution of the underlying raytrace model in meters
  39. resolution 0.02
  40. interval_sim 100 # simulation timestep in milliseconds
  41. window
  42. (
  43. size [ 745.000 448.000 ]
  44. rotate [ 0.000 -1.560 ]
  45. scale 18.806
  46. )
  47. # load an environment bitmap
  48. floorplan
  49. (
  50. name "willow"
  51. bitmap "../maps/willow-full-0.05.pgm"
  52. size [58.25 47.25 1.0]
  53. pose [ -23.625 29.125 0 90.000 ]
  54. )
  55. # throw in a robot
  56. pr2( pose [ -28.610 13.562 0 99.786 ] name "pr2" color "blue")
  57. block( pose [ -25.062 12.909 0 180.000 ] color "red")
  58. block( pose [ -25.062 12.909 0 180.000 ] color "red")
  59. block( pose [ -25.062 12.909 0 180.000 ] color "red")