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

Revision history [back]

Hi!

I completely agree with you that testing software in ROS2 is not so straightforward as we wish. There's just a little point that is not clear from your question. Are you referring to testing some library (ROS2 indipendent) or the ROS2 interface for that library?

As far as I've understood is more the latter. In such case I wouldn't suggest (in my opinion) to unit testing your ROS2 interface, but rather using integration testing, since your goal is to verify the communication of your node. Also doing this has some level of complexity. In practice I know there are just a couple of ways to do that: