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

how to start rostest file on startup?

asked 2018-02-16 15:17:05 -0500

chanhyeoni gravatar image

Has anybody implemented the rostest file that would be launched on startup? All I did now was to type the command make run_tests in the build folder of the workspace manually. I want the file to be automatically run when my machine boots up. Any help would be appreciated, and let me know if you need any details from me.

edit retag flag offensive close merge delete

Comments

2

rostest was not designed to be used like this, and there's probably a better way to do it. What are you actually trying to do? (This sounds like an XY problem )

ahendrix gravatar image ahendrix  ( 2018-02-16 15:29:00 -0500 )edit

I want my machine to auto-check every component (e.g. thruster and gps) in order to ensure that each part works properly and provide end users with a checklist

chanhyeoni gravatar image chanhyeoni  ( 2018-02-16 15:31:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-02-19 14:15:41 -0500

ahendrix gravatar image

rostest is meant for running unit and integration tests, either manually or within a Continuous Integration process. It isn't designed for running live tests at startup.

I'd suggest you use the diagnostics and self_test packages for reporting issues to users and running self-tests at startup.

the diagnostics package in particular is designed for continuous monitoring and reporting of issues, and provides the diagnostic_aggregator for validating and formatting diagnostics, and rqt_robot_monitor for displaying those diagnostics to users.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-02-16 15:17:05 -0500

Seen: 148 times

Last updated: Feb 19 '18