From cba6b58fdc530112ce710145cbfbf80b9990c608 Mon Sep 17 00:00:00 2001 From: Daniel Parra Date: Fri, 30 Aug 2024 18:14:11 -0700 Subject: [PATCH] mil_poi: Rename TxPOIClient to AsyncPOIClient --- .../navigator_missions/navigator_missions/navigator.py | 4 ++-- docs/reference/poi.rst | 6 +++--- mil_common/utils/mil_poi/mil_poi/__init__.py | 2 +- .../mil_poi/mil_poi/{tx_interface.py => async_interface.py} | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename mil_common/utils/mil_poi/mil_poi/{tx_interface.py => async_interface.py} (99%) diff --git a/NaviGator/mission_control/navigator_missions/navigator_missions/navigator.py b/NaviGator/mission_control/navigator_missions/navigator_missions/navigator.py index 5bba58fc9..36c78fcbc 100644 --- a/NaviGator/mission_control/navigator_missions/navigator_missions/navigator.py +++ b/NaviGator/mission_control/navigator_missions/navigator_missions/navigator.py @@ -21,7 +21,7 @@ from mil_msgs.srv import ObjectDBQuery, ObjectDBQueryRequest from mil_passive_sonar import TxHydrophonesClient from mil_pneumatic_actuator.srv import SetValve, SetValveRequest -from mil_poi import TxPOIClient +from mil_poi import AsyncPOIClient from nav_msgs.msg import Odometry from navigator_path_planner.msg import MoveAction, MoveGoal from navigator_tools import MissingPerceptionObject @@ -192,7 +192,7 @@ def enu_odom_set(odom): cls.hydrophones = TxHydrophonesClient(cls.nh) - cls.poi = TxPOIClient(cls.nh) + cls.poi = AsyncPOIClient(cls.nh) await cls.poi.setup() cls._grinch_lower_time = await cls.nh.get_param("~grinch_lower_time") diff --git a/docs/reference/poi.rst b/docs/reference/poi.rst index 5aa81479b..aad175d22 100644 --- a/docs/reference/poi.rst +++ b/docs/reference/poi.rst @@ -36,9 +36,9 @@ POIServer .. autoclass:: mil_poi.POIServer :members: -TxPOIClient +AsyncPOIClient ^^^^^^^^^^^ -.. attributetable:: mil_poi.TxPOIClient +.. attributetable:: mil_poi.AsyncPOIClient -.. autoclass:: mil_poi.TxPOIClient +.. autoclass:: mil_poi.AsyncPOIClient :members: diff --git a/mil_common/utils/mil_poi/mil_poi/__init__.py b/mil_common/utils/mil_poi/mil_poi/__init__.py index c45bf6184..dd0410a26 100644 --- a/mil_common/utils/mil_poi/mil_poi/__init__.py +++ b/mil_common/utils/mil_poi/mil_poi/__init__.py @@ -37,5 +37,5 @@ Markers panel needs to be set to this topic. """ +from .async_interface import AsyncPOIClient from .server import POIServer -from .tx_interface import TxPOIClient diff --git a/mil_common/utils/mil_poi/mil_poi/tx_interface.py b/mil_common/utils/mil_poi/mil_poi/async_interface.py similarity index 99% rename from mil_common/utils/mil_poi/mil_poi/tx_interface.py rename to mil_common/utils/mil_poi/mil_poi/async_interface.py index 206b4eaa3..4ffa8b349 100644 --- a/mil_common/utils/mil_poi/mil_poi/tx_interface.py +++ b/mil_common/utils/mil_poi/mil_poi/async_interface.py @@ -10,7 +10,7 @@ from mil_poi.msg import POIArray -class TxPOIClient: +class AsyncPOIClient: """ Client for getting the positions of POIs in a POI server. """