示例#1
0
def main():
    rospy.init_node('stringTesterNode')

    testCenter = TestCenter()
    rospy.Service('stringTest', StringTest,
                  lambda msg: (testCenter.runTest(msg.testType),))
    rospy.spin()
示例#2
0
def main(passes, testType, filename):
    rospy.init_node('testRunner')

    times = []
    testCenter = TestCenter()

    for _ in xrange(passes):
        times.append(testCenter.runTest(testType))

    with open(filename, 'w') as f:
        f.write(json.dumps(SIZES))
        f.write('\n')

        f.write(json.dumps(times))
        f.write('\n')
示例#3
0
def main(passes, testType, filename):
    rospy.init_node('testRunner')

    times = []
    testCenter = TestCenter()

    for _ in xrange(passes):
        times.append(testCenter.runTest(testType))

    with open(filename, 'w') as f:
        f.write(json.dumps(SIZES))
        f.write('\n')

        f.write(json.dumps(times))
        f.write('\n')