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 ffe93910a55e328b05a73742bc054688f694726e Mon Sep 17 00:00:00 2001 From: PRANETALLU <92874312+PRANETALLU@users.noreply.github.com> Date: Tue, 13 Jun 2023 23:32:44 -0400 Subject: [PATCH 3/3] changed to raise exception --- .../sub8_thrust_and_kill_board/simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SubjuGator/drivers/sub8_thrust_and_kill_board/sub8_thrust_and_kill_board/simulation.py b/SubjuGator/drivers/sub8_thrust_and_kill_board/sub8_thrust_and_kill_board/simulation.py index faedf386c..08bb954e4 100644 --- a/SubjuGator/drivers/sub8_thrust_and_kill_board/sub8_thrust_and_kill_board/simulation.py +++ b/SubjuGator/drivers/sub8_thrust_and_kill_board/sub8_thrust_and_kill_board/simulation.py @@ -152,4 +152,4 @@ def on_data(self, data: bytes, can_id: int) -> None: packet = HeartbeatMessage.from_bytes(data) self._last_heartbeat = rospy.Time.now() else: - assert False, "No recognized identifier" + raise Exception("No recognized identifier")