-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default ROS_HOME and ROS_LOG_DIR env vars in ros2_cpp_test to TEST_UN…
…DECLARED_OUTPUTS_DIR
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <rclcpp/rclcpp.hpp> | ||
|
||
int main(int argc, char** argv) { | ||
// If neither $ROS_HOME nor $ROS_LOG_DIR are set to a valid directory, rclcpp:init() will fail with errors | ||
// 'rcutils_expand_user failed, at external/ros2_rcl_logging/rcl_logging_interface/src/logging_dir.c:81' | ||
// 'Failed to get logging directory, at external/ros2_rcl_logging/rcl_logging_spdlog/src/rcl_logging_spdlog.cpp:83' | ||
rclcpp::init(argc, argv); | ||
return 0; | ||
} |