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

How to test my launchfiles and nodes

asked 2020-06-30 06:50:39 -0500

Mackou gravatar image

Hello,

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

  • Launchfiles
  • C++ and python nodes
  • External ros packages

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-06-30 07:20:57 -0500

gvdhoorn gravatar image

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.

edit flag offensive delete link more

Comments

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

gvdhoorn gravatar image gvdhoorn  ( 2020-06-30 07:53:18 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-30 06:50:39 -0500

Seen: 183 times

Last updated: Jun 30 '20