Class MirrorManagerFuture¶
Defined in File MirrorManager.hpp
Class Documentation¶
-
class
rmf_traffic_ros2::schedule
::
MirrorManagerFuture
¶ Public Functions
-
void
wait
() const¶ Wait for the MirrorManager to finish initializing. This will block until initialization is finished.
- Note
The initialization requires some ROS2 service calls, so there needs to be a separate thread running rclcpp::spin(~) while this function blocks. Otherwise it will block forever.
-
std::future_status
wait_for
(const rmf_traffic::Duration &timeout) const¶ Wait for the MirrorManager to finish initializing. This will block until initialization is finished or until the timeout duration has passed.
- See
-
std::future_status
wait_until
(const rmf_traffic::Time &time) const¶ Wait for the MirrorManager to finish initializing. This will block until initialization is finished or until the time has been reached.
- See
-
bool
valid
() const¶ Check if this MirrorManagerFuture is still valid. This means that get() has never been called.
-
MirrorManager
get
()¶ Get the MirrorManager of this future. This will wait until the MirrorManager is initialized before returning it.
-
void