rostest console output
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!
Asked by amstrudy on 2019-07-18 14:37:27 UTC
Answers
If you want to see different messages than the ROS_ERROR()
ones, you have to set the right verbosity level.
https://wiki.ros.org/rosconsole#Configuration
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
log4j.logger.ros=WARN
# Override my package to output everything
log4j.logger.ros.<YOUR_PACKAGE>=DEBUG
Asked by ct2034 on 2019-08-07 01:34:16 UTC
Comments
can you please check that and accept the answer if it worked, thanks
Asked by ct2034 on 2019-08-09 10:44:03 UTC
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
Asked by Rufus on 2021-10-21 03:38:03 UTC
Comments
What do you mean? What was the result?
Asked by jayess on 2019-07-18 15:25:52 UTC
@jayess Nothing changed when I added ros::start()
Asked by amstrudy on 2019-07-18 17:04:36 UTC