terminate called after throwing an instance of 'rclcpp::exceptions::RCLInvalidArgument'
I am getting exception which is related to initialization of rcl or shutdown of rcl i.e:-
terminate called after throwing an instance of 'rclcpp::exceptions::RCLInvalidArgument'
what(): failed to create interrupt guard condition: context argument is null, at /home/mobis/ros2_ws/src/ros2/rcl/rcl/src/rcl/guard_condition.c:65
I tried to solve it but still getting the same problem....it would be a great help if anyone tell me how to solve this.
Did you ever figure out what it was?
I guess you need to call rclcpp::init(argc, argv) in the main function.
Did you solve this?
Yeah I have run into this also when trying to run gtest with a node, without calling
rclcpp::init()
in themain
function.