Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsk_topic_tools] add topic_statistics.py #1206

Merged
merged 1 commit into from
Nov 15, 2015

Conversation

furushchev
Copy link
Member

utility script for measurement of data sizes

usage:

./topic_statistics.py                          ⮂  
Usage: topic_statistics.py [options] topic_name

Options:
  -h, --help      show this help message and exit
  -w WINDOW_SIZE  
  -d DURATION

e.g.

$ ./topic_statistics.py -w 50 wide_stereo/left/image_rect
start subscribing wide_stereo/left/image_rect
waiting for 50 msgs...
received 51 messages for 2.027576924 [sec]
size amount:    15670.617 [kB]
size avg:   307.267 [kB/msg]
$ ./topic_statistics.py -d 10 wide_stereo/left/image_rect
start subscribing wide_stereo/left/image_rect
waiting for 10 [sec]...
received 280 messages for 10.014266968 [sec]
size amount:    86034.76 [kB]
size avg:   307.267 [kB/msg]
rate:       8591.21893544 [kB/sec]

@furushchev
Copy link
Member Author

test failed on indigo

rostest log file is in /workspace/jsk-ros-pkg/jsk_common/log/rostest-edb1a0e795aa-8314.log


-- run_tests.py: verify result "/workspace/ros/ws_jsk_common/build/jsk_topic_tools/test_results/jsk_topic_tools/rostest-test_test_topic_buffer_fixed_rate_and_update_rate.xml"


Built target _run_tests_jsk_topic_tools_rostest_test_test_topic_buffer_fixed_rate_and_update_rate.test


testhztest_chatter ... FAILURE!


FAILURE: test [hztest_chatter] did not generate test results


  File "/usr/lib/python2.7/unittest/case.py", line 331, in run


    testMethod()


  File "/opt/ros/indigo/lib/python2.7/dist-packages/rostest/runner.py", line 164, in fn


    self.assert_(os.path.isfile(test_file), "test [%s] did not generate test results"%test_name)


  File "/usr/lib/python2.7/unittest/case.py", line 424, in assertTrue


    raise self.failureException(msg)


--------------------------------------------------------------------------------


testhztest_chatter_buffer ... ok


testhztest_chatter_update ... ok


[ROSTEST]-----------------------------------------------------------------------





[jsk_topic_tools.rosunit-hztest_chatter_update/test_hz][passed]


[testhztest_chatter][failed]





SUMMARY


 * RESULT: FAIL


 * TESTS: 1


 * ERRORS: 0


 * FAILURES: 1





ERROR: The following tests failed to run:


 * testhztest_chatter

@furushchev
Copy link
Member Author

failed again with same error.
Seems error is in hz_measure.
@garaemon Do you know what it happens?

@wkentaro
Copy link
Member

wkentaro commented Nov 2, 2015

@furushchev

You should try running travis test with this commit to see the test output verbosely.
jsk-ros-pkg/jsk_travis@d5d1c79

@furushchev
Copy link
Member Author

now travis passed. please merge if there is no problem

k-okada added a commit that referenced this pull request Nov 15, 2015
[jsk_topic_tools] add topic_statistics.py
@k-okada k-okada merged commit 9f93218 into jsk-ros-pkg:master Nov 15, 2015
@furushchev furushchev deleted the check-data-size branch November 16, 2015 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants