ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rostest console output

asked 2019-07-18 14:37:27 -0600

amstrudy gravatar image

I just started using rostest with gtest, and have encountered the problem that only ROS_ERROR() messages are displaying. According to the documentation, you can change the rostest output with the --text command, but that doesn't help me since I am running the tests via catkin_make run_tests. I found this thread, but adding ros::start() did not help either.

Any help is appreciated!

edit retag flag offensive close merge delete


did not help either

What do you mean? What was the result?

jayess gravatar image jayess  ( 2019-07-18 15:25:52 -0600 )edit

@jayess Nothing changed when I added ros::start()

amstrudy gravatar image amstrudy  ( 2019-07-18 17:04:36 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2021-10-21 03:38:03 -0600

Rufus gravatar image

Note that by default, the log outputs to an xml file. If you want it to log to stdout, you can set that with the --text option

rostest your_test.test --text
edit flag offensive delete link more

answered 2019-08-07 01:34:16 -0600

ct2034 gravatar image

If you want to see different messages than the ROS_ERROR()ones, you have to set the right verbosity level.

edit the file $ROS_ROOT/config/rosconsole.config (or any other and point ROSCONSOLE_CONFIG_FILE at it) with the following content:

# Set the default ros output to warning and higher
# Override my package to output everything
edit flag offensive delete link more


can you please check that and accept the answer if it worked, thanks

ct2034 gravatar image ct2034  ( 2019-08-09 10:44:03 -0600 )edit

Question Tools

1 follower


Asked: 2019-07-18 14:37:27 -0600

Seen: 1,859 times

Last updated: Oct 21 '21