Odin — Rqtclose
rosnode list After rqtclose fails, run again. If the rqt node still appears, it’s still alive. Force-kill it:
import rospy from python_qt_binding.QtCore import QTimer class OdinRqtPlugin: def (self, context): self._node = rospy.init_node('odin_rqt', anonymous=True) self._timer = QTimer() self._timer.timeout.connect(self._spin_ros) self._timer.start(10) # Process ROS events every 10ms odin rqtclose
Introduction: When Your ROS GUI Vanishes If you are a robotics software engineer working with the Robot Operating System (ROS), you have likely mastered the rqt suite—a powerful framework for graphical user interfaces (GUIs) that includes tools like rqt_graph , rqt_plot , and rqt_console . However, an obscure but critical error has been appearing in forums and debug logs: "odin rqtclose" . rosnode list After rqtclose fails, run again
def _spin_ros(self): rospy.rostime.wallsleep(0) # Allow ROS callbacks However, an obscure but critical error has been
def shutdown_plugin(self): rospy.loginfo("odin rqtclose: Starting shutdown sequence") # Disconnect callbacks self.pub.unregister() rospy.loginfo("odin rqtclose: Publishers unregistered") # Call parent super().shutdown_plugin() rospy.loginfo("odin rqtclose: Complete") If you see the first log but not the last, you’ve found a hang. Attach strace to the stuck rqt process (find PID via ps aux | grep rqt ):
<node name="odin_gui" pkg="odin_viz" type="odin_rqt.py" /> Check odin_rqt.py for any custom signal handling. Specifically, search for: