Function rmf_traffic::blockade::make_participant

Function Documentation

Participant rmf_traffic::blockade::make_participant(ParticipantId participant_id, double radius, std::shared_ptr<Writer> writer, std::shared_ptr<RectificationRequesterFactory> rectifier_factory = nullptr)

Make a blockade participant.

Parameters
  • [in] participant_id: Every blockade participant must also be a schedule participant. Pass in the schedule participant ID here.

  • [in] radius: The initial default radius to use for this participant’s blockade.

  • [in] writer: The writer that this participant should interact with.

  • [in] rectifier_factory: The factory that this participant should use to create a rectifier for itself. If no factory is provided, we will assume the writer is always perfectly reliable.