ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I had this happen with a gtest in ROS2 Rolling. (Which is very similar to ROS2 Galactic at this point.)
It was fixed by adding the rclcpp::init(argc, argv);
here:
int main(int argc, char** argv)
{
rclcpp::init(argc, argv);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}