Gtest concept for ROS2 foxy

asked 2022-04-15 05:08:37 -0500

ohmimi gravatar image

Hello! i'm new in using ROS2 foxy.

i want to test a macro actions node which contains publishers and subscribers for my robot actions. Each action is written as a method such as stopMotion(), GoToPosition() , i want to know if there is a way to test those methods like: if i give 0 to the request action stopmotion willl set zeros for the velocities and the commands. i don't know how to write this as a test node and i'm not sure if i understood the concept of gtest and test launch.

Does gtest only check if the node is running or the behave of the node like the example i gave

edit retag flag offensive close merge delete

Comments

Relevant question with answer: https://answers.ros.org/question/3994...

ljaniec gravatar image ljaniec  ( 2022-04-25 06:25:05 -0500 )edit