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: stealth_relay add options as dynamic_reconfigure #1568

Merged
merged 5 commits into from
Nov 8, 2017

Conversation

furushchev
Copy link
Member

This pull request is for updating jsk_topic_tools/StealthRelay nodelet:

  • Support dynamic reconfigure
  • Keep consistency with upstream (param name etc..)
  • Cleanup internal function
  • Add option enable_monitor to toggle monitoring
  • update test codes

@furushchev furushchev changed the title jsk_topic_tools: add options as dynamic_reconfigure jsk_topic_tools: stealth_relay add options as dynamic_reconfigure Oct 31, 2017
@furushchev furushchev added this to the 2.2.6 milestone Oct 31, 2017
@k-okada
Copy link
Member

k-okada commented Oct 31, 2017

Can we remove this node if ros/ros_comm#1155 is merged? if so, we will add

ROS_WARN('Will be deprecated when https://github.com/ros/ros_comm/pull/1155 is merged")

@furushchev
Copy link
Member Author

@k-okada Added. 👍

@k-okada
Copy link
Member

k-okada commented Nov 3, 2017

https://travis-ci.org/jsk-ros-pkg/jsk_common/jobs/296166269#L4767

rostest log file is in /workspace/jsk-ros-pkg/jsk_common/log/rostest-0225cf33e2bf-21373.log
+ '[' 0 '!=' 0 ']'
+ for test_file in '$rostest_files'
+ echo '[jsk_topic_tools] Testing install/share/jsk_topic_tools/test/test_stealth_relay.test'
[jsk_topic_tools] Testing install/share/jsk_topic_tools/test/test_stealth_relay.test
+ rostest install/share/jsk_topic_tools/test/test_stealth_relay.test
Traceback (most recent call last):
  File "/workspace/ros/ws_jsk_common/install/share/jsk_topic_tools/test/test_stealth_relay.py", line 61, in <module>
    rostest.rosrun("jsk_topic_tools", "test_stealth_relay", TestStealthRelay)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rostest/__init__.py", line 146, in rosrun
    result = rosunit.create_xml_runner(package, test_name, result_file).run(suite)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosunit/xmlrunner.py", line 233, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/case.py", line 395, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/workspace/ros/ws_jsk_common/install/share/jsk_topic_tools/test/test_stealth_relay.py", line 51, in test_stealth_relay
    client.update_configuration({'enable_monitor': False, 'monitor_topic': ''})
  File "/opt/ros/indigo/lib/python2.7/dist-packages/dynamic_reconfigure/client.py", line 219, in update_configuration
    msg    = self._set_service(config).config
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 435, in __call__
    return self.call(*args, **kwds)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 523, in call
    raise rospy.exceptions.ROSInterruptException("node shutdown interrupted service call")
rospy.exceptions.ROSInterruptException: node shutdown interrupted service call
... logging to /workspace/jsk-ros-pkg/jsk_common/log/rostest-0225cf33e2bf-21486.log
[ROSUNIT] Outputting test results to /workspace/.ros/test_results/jsk_topic_tools/rostest-test_test_stealth_relay.xml
testtest_stealth_relay ... ERROR!
ERROR: max time [40.0s] allotted for test [test_stealth_relay] of type [jsk_topic_tools/test_stealth_relay.py]
  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 148, in fn
    self.test_parent.run_test(test)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rostest/rostest_parent.py", line 132, in run_test
    return self.runner.run_test(test)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 681, in run_test
    (test.time_limit, test.test_name, test.package, test.type))

@furushchev
Copy link
Member Author

furushchev commented Nov 3, 2017 via email

@furushchev
Copy link
Member Author

@k-okada Please review & merge if it's ok for you! 👍

@k-okada k-okada merged commit c449215 into jsk-ros-pkg:master Nov 8, 2017
@furushchev furushchev deleted the update-stealth-relay branch November 8, 2017 22:25
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.

None yet

2 participants