Ask Your Question

How to make rostest launch rosout?

asked 2020-06-01 12:37:33 -0500

JohnStechschulte gravatar image

I have a node that analyzes rosout_agg messages to benchmark the robot's performance. I'd like to incorporate these benchmarks into a test, but it seems that the rosout node is not started under rostest, and so rosout_agg is never published. (If I subscribe directly to rosout, my node works the same under rostest and roslaunch.)

Is this the intended behavior? Is there a way to tell rostest that I do want rosout launched?

edit retag flag offensive close merge delete


Well, it is starting, because when I try to start one myself in the .test file, I get the duplicate-node-name error. So I'm pretty lost at this point.

JohnStechschulte gravatar image JohnStechschulte  ( 2020-06-01 18:20:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-03 23:01:46 -0500

JohnStechschulte gravatar image

I found a workaround. In the test script, simply launch a rosout node, but with a different name:

<node name="rosout_test" pkg="rosout" type="rosout" />

This occurred to me while elbow-deep in debugging rostest and roslaunch. I'm suspicious that somehow rostest _thinks_ it launched rosout but in fact did not. If someone out there can explain all this to me, I'd really appreciate it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-06-01 12:37:33 -0500

Seen: 6 times

Last updated: Jun 01