Function rmf_traffic_ros2::schedule::reconnect_schedule(std::optional<rmf_traffic_msgs::msg::ScheduleIdentity>&, const rmf_traffic_msgs::msg::ScheduleIdentity&)

Function Documentation

bool rmf_traffic_ros2::schedule::reconnect_schedule(std::optional<rmf_traffic_msgs::msg::ScheduleIdentity> &previous, const rmf_traffic_msgs::msg::ScheduleIdentity &incoming)

Same as its overload, but it accepts an optional for previous. When previous is nullopt, this will save incoming and return true.