-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InitOptions::auto_initialize_logging(true) does not work with assignm…
…ent operator. ros2/rclcpp#1258 Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
- Loading branch information
1 parent
3248760
commit 26f5517
Showing
2 changed files
with
18 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdlib.h> | ||
#include <iostream> | ||
|
||
#include <rclcpp/rclcpp.hpp> | ||
|
||
int main(int argc, char * argv[]) | ||
{ | ||
rclcpp::init(argc, argv); | ||
auto options = rclcpp::InitOptions().auto_initialize_logging(false); | ||
if (options.auto_initialize_logging()) { | ||
std::cout << "options.auto_initialize_logging() is true\n"; | ||
return EXIT_FAILURE; | ||
} else { | ||
std::cout << "options.auto_initialize_logging() is false\n"; | ||
return EXIT_SUCCESS; | ||
} | ||
} |