Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def on_pauseButton_clicked(self):
     msg = SimControl()
     msg.mode = "pause"
     self.pub_control.publish(msg)
Exemplo n.º 3
0
 def on_nextButton_clicked(self):
     msg = SimControl()
     msg.mode = "next"
     self.pub_control.publish(msg)
Exemplo n.º 4
0
 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)