Robotics StackExchange | Archived questions

How to test my launchfiles and nodes

Hello,

I am trying to use good software development within my project and I would like to setup testing.
The project contains :

The main problem is that we write a lot of launchfiles and we inevitably have some errors, like a missing paramter and I was not able to catch them automatically.

How could I test it correctly ?

Thanks

Asked by Mackou on 2020-06-30 06:50:39 UTC

Comments

Answers

I'll only respond to the question about how to "test" .launch files and ignore the other questions you've included (note: it's not a good idea to include multiple questions in a single post for various reasons).

The main problem is that we write a lot of launchfiles and we inevitably have some errors, like a missing paramter and I was not able to catch them automatically.

For this specifically, you could use roslaunch_add_file_check(..).

See wiki/roslaunch: Catkin.

Asked by gvdhoorn on 2020-06-30 07:20:57 UTC

Comments

Perhaps wiki/Quality: Testing & Static Analysis can help with your other questions about testing nodes.

Asked by gvdhoorn on 2020-06-30 07:53:18 UTC