Skip to content

Commit

Permalink
Better check if arm is lowered
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivek T committed May 2, 2024
1 parent 779e5f0 commit 0986f40
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gps_gui/src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from copy import deepcopy
import qdarktheme
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal

import rosnode
qss = """
QPushButton {
font-size: 11pt;
Expand Down Expand Up @@ -249,9 +249,13 @@ def clearHistory():
self.sampleBtn.setStyleSheet("color: lightblue")
self.sampleBtn.clicked.connect(self.togglePxrfCollection)

while '/arm_control_node' not in rosnode.get_node_names():
rospy.loginfo("Waiting for Arm Control Node")
rospy.sleep(1)
self.is_arm_in_home_pose = rospy.get_param(
self._is_arm_in_home_pose_param_name, True
) # Arm pose flag that persists across restarts
self._is_arm_in_home_pose_param_name
) # Arm pose flag that persists across restarts

if self.is_arm_in_home_pose:
self.ArmBtn = QtWidgets.QPushButton('Lower Arm')
else:
Expand Down

0 comments on commit 0986f40

Please sign in to comment.