Skip to main content
2 votes

Does rostest/gtest (ROS , CPP) provide any conditional compilaton flag?

Adding the following line in the CMakeLists.txt does the work: if(CATKIN_ENABLE_TESTING) add_compile_options(-DROSTEST) ... endif()
ACristea's user avatar
1 vote

Path to colcon test output directory in a gtest

I went down a bit of a rabbit hole on this, and the best general solution I can come up with would rely on ament. If you're adding the test using any of the ament CMake functions (i.e. anything other ...
cottsay's user avatar
  • 116
1 vote

Path to colcon test output directory in a gtest

It's been suggested that I do: #include <rclcpp/logging.hpp> ... rclcpp::init(argc, argv); ... directory = rclcpp::get_logging_directory().string() ...
Matt's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible