def on_stopButton_clicked(self): try: rospy.delete_param('/tracking/scenario') except KeyError: pass msg1 = SimControl() msg1.mode = "stop" self.pub_control.publish(msg1) msg2 = Bool() msg2.data = True self.pub_reset.publish(msg2)
def on_pauseButton_clicked(self): msg = SimControl() msg.mode = "pause" self.pub_control.publish(msg)
def on_nextButton_clicked(self): msg = SimControl() msg.mode = "next" self.pub_control.publish(msg)
def on_startButton_clicked(self): rospy.set_param('/tracking/scenario', self.files[self.comboBox.currentIndex()]) msg = SimControl() msg.mode ="play" self.pub_control.publish(msg)