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

Fix the test so it works with 'colcon test' #11

Merged
merged 7 commits into from
Mar 26, 2020
Merged

Fix the test so it works with 'colcon test' #11

merged 7 commits into from
Mar 26, 2020

Conversation

clalancette
Copy link
Collaborator

@clalancette clalancette commented Feb 17, 2020

The last commit has the explanation, but essentially we had to change the idea of how we do the test a bit. I also did a bunch of cleanup of the test. In my testing, this now works for both ros2 test and colcon test.

This should fix #10

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This should make it a bit more suitable for "standalone"
testing.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
It seems that 'colcon test' has a different execution path
than 'ros2 test', so we can't rely on the launch_ros_node
being available.  Make sure to create our own node, and then
use that for the subscriptions.  This also necessitated a
change in how the checking loop was done.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Collaborator Author

@stonier Friendly ping here, any chance to review and merge this?

test/test_translational_smoothing.py Show resolved Hide resolved
test/test_translational_smoothing.py Outdated Show resolved Hide resolved
clalancette and others added 4 commits March 24, 2020 14:27
We actually don't need to do anything exotic with matplotlib
as long as we aren't trying to display to the screen.  So
restore the useful functionality.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Needed on the buildfarm.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette merged commit 5ba9989 into devel Mar 26, 2020
@clalancette clalancette deleted the fix-test branch March 26, 2020 17:05
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.

Launch test not running on CI
2 participants