예제 #1
0
 def test_rosnode_kill(self):
     import rosnode
     cmd = 'rosnode'
     for n in ['to_kill/kill1', '/to_kill/kill2']:
         self.assert_(rosnode.rosnode_ping(n, max_count=1))
         rosnode._rosnode_cmd_kill([cmd, 'kill', n])
         self.failIf(rosnode.rosnode_ping(n, max_count=1))
예제 #2
0
 def stop_node(self):
     rospy.loginfo('%s::stoped()' % self.name.text())
     rosnode._rosnode_cmd_kill(['fake', 'fake', self.name.text()])