-
Notifications
You must be signed in to change notification settings - Fork 76
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
Set up Travis to run tests #8
Conversation
The downstream tests are failing because they're broken. |
@ahendrix , as part of ros-controls/ros_control#234 (ROS Kinetic release), I'd like to know if this PR could be close? Initially I thought this could be important for ROS Kinetic, but I've just realized that:
For me it looks like it can be close and also we don't need anything like this for FYI @bmagyar |
Essentially, all (or most) It'd be great to have the tests actually checked on Travis CI. It seems to me that this PR was testing that with the intention to apply it to all the packages in the repo. I can have a look myself, but I'd like to know the current state on this first and your thoughts? Especially for the ROS Kinetic release. |
I've just run [controller_manager_tests.rosunit-cm_msgs_utils_rostest/test_controller_lister][ERROR]
global name 'ROSException' is not defined
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 108, in test_controller_lister
self.assertTrue(self._ready())
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 50, in _ready
except ROSException:
--------------------------------------------------------------------------------
[controller_manager_tests.rosunit-cm_msgs_utils_rostest/test_controller_manager_lister][ERROR]
global name 'ROSException' is not defined
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 96, in test_controller_manager_lister
self.assertTrue(self._ready())
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 50, in _ready
except ROSException:
--------------------------------------------------------------------------------
[controller_manager_tests.rosunit-cm_msgs_utils_rostest/test_get_controller_managers][ERROR]
global name 'ROSException' is not defined
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 63, in test_get_controller_managers
self.assertTrue(self._ready())
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 50, in _ready
except ROSException:
--------------------------------------------------------------------------------
[controller_manager_tests.rosunit-cm_msgs_utils_rostest/test_is_controller_manager][ERROR]
global name 'ROSException' is not defined
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 55, in test_is_controller_manager
self.assertTrue(self._ready())
File "/ws/ros_control_ws/src/ros_control/controller_manager_tests/test/cm_msgs_utils_rostest.py", line 50, in _ready
except ROSException:
--------------------------------------------------------------------------------
SUMMARY
* RESULT: FAIL
* TESTS: 4
* ERRORS: 4
* FAILURES: 0 Looks like something easy to fix. But I don't know if it's already fix in newer versions (I'm testing with |
wow... I forgot about this one. I think I opened this specifically because some combination of conversation with other developers and discovery that this package wasn't running its tests. I don't remember the details. I don't have any particular investment in this or any reason to keep this PR open; particularly against the old Hydro branch. |
Related: ros-controls/ros_controllers#76 |
I forgot to @ahendrix Yes, |
A big 👍 for this guys
|
The doSwitch method needs to be executed in the update() method, that is, in the real-time path, which is where controller switching actually takes place. It was previously done in the switchController callback, which is non real-time. In this method controller switching is scheduled, but not actually executed. This changeset fixes a bug in which hardware interface modes could switch before controllers, leading to undefined behavior.
I'll update the |
Done in #20 |
No description provided.