File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1818from rclpy .constants import S_TO_NS
1919from rclpy .context import Context
2020
21+ import ament_index_python
22+
2123g_default_context = None
2224g_context_lock = threading .Lock ()
2325
@@ -68,6 +70,12 @@ def get_rmw_implementation_identifier():
6870 return rclpy_implementation .rclpy_get_rmw_implementation_identifier ()
6971
7072
73+ def get_available_rmw_implementations ():
74+ """Return the set of all available RMW implementations as registered in the ament index."""
75+ rmw_implementations = ament_index_python .get_resources ('rmw_typesupport' )
76+ return {name for name in rmw_implementations if name != 'rmw_implementation' }
77+
78+
7179def timeout_sec_to_nsec (timeout_sec ):
7280 """
7381 Convert timeout in seconds to rcl compatible timeout in nanoseconds.
You can’t perform that action at this time.
0 commit comments