test_rosbag: changed output paths to /tmp from test_rosbag package

This commit is contained in:
Tim Field 2010-06-03 00:29:16 +00:00
parent de9ce21483
commit 74b3305e55
2 changed files with 4 additions and 2 deletions

View File

@ -83,8 +83,10 @@ class RandomPlay(unittest.TestCase):
for (topic, msg_class) in rmg.topics():
subscribers[topic] = rospy.Subscriber(topic, msg_class, self.msg_cb_topic(topic))
bagpath = os.path.join(roslib.rospack.rospackexec(['find', 'test_rosbag']), 'test', 'recording_%d.bag'%seed)
bagpath = os.path.join('/tmp', 'test_rosbag_random_record_%d.bag'%seed)
cmd = ['rosbag', 'play', '-d', str(DELAY), '-r', str(scale)]
rospy.loginfo(str(cmd))
if (self.use_clock):
cmd += ['--clock', '--hz', '100']

View File

@ -68,7 +68,7 @@ class RandomRecord(unittest.TestCase):
for (topic, msg_class) in rmg.topics():
publishers[topic] = rospy.Publisher(topic, msg_class)
bagpath = os.path.join(roslib.rospack.rospackexec(['find', 'test_rosbag']), 'test', 'recording_%d'%seed)
bagpath = os.path.join('/tmp', 'test_rosbag_random_record_%d'%seed)
cmd = ['rosbag', 'record', '-a', '-O', bagpath]
f1 = subprocess.Popen(cmd)