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

gtest for ROS2

asked 2020-05-05 09:29:56 -0600

Kansai gravatar image

Is there a guide similar to this one that I think it is for ROS that explain how to start writing and using gtest for ROS2 applications?

Also, does calling colcon test run the gtest tests?

edit retag flag offensive close merge delete

Comments

Simple answer: yes

stevemacenski gravatar image stevemacenski  ( 2020-05-05 11:07:14 -0600 )edit

can you point me where to find that guide?

Kansai gravatar image Kansai  ( 2020-05-05 19:15:45 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2020-05-05 19:32:47 -0600

Hi,

I can't give you a guide but I can give you examples

Really it mostly looks like gtest, just using ROS as if it were any other arbitrary library.

edit flag offensive delete link more
0

answered 2022-04-11 12:26:58 -0600

AndyZe gravatar image

updated 2022-11-18 09:19:23 -0600

There's a minimal gtest example for ROS2 Humble/Rolling here: https://github.com/PickNikRobotics/test_examples

It probably works on other ROS distros too but I haven't tried it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-05-05 09:29:56 -0600

Seen: 3,379 times

Last updated: Nov 18 '22