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

rostest console output

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

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

Comments

did not help either

What do you mean? What was the result?

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

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

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

2 Answers

Sort by ยป oldest newest most voted
0

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

ct2034 gravatar image

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#Confi...

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
edit flag offensive delete link more

Comments

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

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

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

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

Question Tools

1 follower

Stats

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

Seen: 1,937 times

Last updated: Oct 21 '21