3

How can one remove a Parcel object from a Depot such that we can pick it up with a Vehicle? There is a method called addParcelIn(), but we cannot find its counterpart. Thanks!

blah_crusader
  • 424
  • 1
  • 5
  • 14

1 Answers1

0

The current version (RinSim 4.4.3) doesn't support picking up a Parcel inside a Depot. A workaround is to add the parcel to the RoadModel at the same location as the depot, take a look at RoadModel.addObjectAtSamePosition(..). Pickups can then be done via PDPModel.pickup(..).

rinde
  • 1,181
  • 1
  • 8
  • 20