From 672f18b37c992374b2ae5646e27c85ce0ad1d9ba Mon Sep 17 00:00:00 2001 From: PRANETALLU <92874312+PRANETALLU@users.noreply.github.com> Date: Thu, 19 Jan 2023 22:15:55 -0500 Subject: [PATCH 1/3] Types and Docstring update --- .../navigator_emergency_control/nodes/navigator_emergency.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py b/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py index 165a89cb1..57cae7bf6 100755 --- a/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py +++ b/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py @@ -38,7 +38,8 @@ def reset(self) -> None: self.active = False self.remote.clear_wrench() - def check_for_timeout(self, joy): + def check_for_timeout(self, joy: Joy): + """ This checks a particular duration when the controller times out. """ if self.last_joy is None: self.last_joy = joy return @@ -60,6 +61,7 @@ def check_for_timeout(self, joy): self.last_joy = joy def joy_recieved(self, joy: Joy) -> None: + "Several actions are being deployed or being kept track of in the process." self.last_time = rospy.Time.now() self.check_for_timeout(joy) From da91b17222522a1a85ad173c8e9796c992be4a65 Mon Sep 17 00:00:00 2001 From: PRANETALLU <92874312+PRANETALLU@users.noreply.github.com> Date: Thu, 19 Jan 2023 23:05:07 -0500 Subject: [PATCH 2/3] Update navigator_emergency.py --- .../navigator_emergency_control/nodes/navigator_emergency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py b/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py index 57cae7bf6..73a30a4d8 100755 --- a/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py +++ b/NaviGator/utils/remote_control/navigator_emergency_control/nodes/navigator_emergency.py @@ -39,7 +39,7 @@ def reset(self) -> None: self.remote.clear_wrench() def check_for_timeout(self, joy: Joy): - """ This checks a particular duration when the controller times out. """ + """ This checks for a particular duration when the controller times out. """ if self.last_joy is None: self.last_joy = joy return From 8f20ceb87606e1cd406a5fb618adb419f05b74c8 Mon Sep 17 00:00:00 2001 From: PRANETALLU <92874312+PRANETALLU@users.noreply.github.com> Date: Mon, 19 Jun 2023 12:38:45 -0400 Subject: [PATCH 3/3] error exception added --- .../perception/mil_vision/mil_vision_tools/color_classifier.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mil_common/perception/mil_vision/mil_vision_tools/color_classifier.py b/mil_common/perception/mil_vision/mil_vision_tools/color_classifier.py index 6c53bd7ea..da1e7a9b8 100755 --- a/mil_common/perception/mil_vision/mil_vision_tools/color_classifier.py +++ b/mil_common/perception/mil_vision/mil_vision_tools/color_classifier.py @@ -210,6 +210,8 @@ def read_from_csv(self, training_file: Optional[str] = None): Args: training_file (Optional[str]): The name of the training file. """ + if training_file is None: + raise NotImplementedError("Cannot read without any training file.") training_file = _get_param(training_file, self.training_file) df = pandas.read_csv(training_file) classes = df.values[:, 1]