This line doesn’t seem to do anything relevant to the code:
int main(int argc, char *argv[]) {
rclcpp::init(argc, argv);
// Instantiate the Node
float sleep_time1 = 1.0;
float sleep_time2 = 3.0;
std::shared_ptr<TwoTimer> two_timer_node =
std::make_shared<TwoTimer>(sleep_time1, sleep_time2);
rclcpp::Node::make_shared("executor_example_5_node"); <------- HERE
// Initialize one executor object
rclcpp::executors::MultiThreadedExecutor executor;
executor.add_node(two_timer_node);
executor.spin();
rclcpp::shutdown();
return 0;
}