diff --git a/include/cactus_rt/ros2/app.h b/include/cactus_rt/ros2/app.h index acb76f7..2641d12 100644 --- a/include/cactus_rt/ros2/app.h +++ b/include/cactus_rt/ros2/app.h @@ -69,8 +69,6 @@ class App : public cactus_rt::App { return thread; } - void Start(int64_t start_monotonic_time_ns = -1) override; - void RequestStop() override; void Join() override; diff --git a/src/cactus_rt/ros2/app.cc b/src/cactus_rt/ros2/app.cc index 5cddc98..fc0e938 100644 --- a/src/cactus_rt/ros2/app.cc +++ b/src/cactus_rt/ros2/app.cc @@ -4,7 +4,6 @@ #include #include "cactus_rt/signal_handler.h" -#include "cactus_rt/utils.h" namespace cactus_rt::ros2 { @@ -60,16 +59,6 @@ App::~App() { rclcpp::shutdown(); } -void App::Start(int64_t start_monotonic_time_ns) { - // Start the Ros2ExecutorThread first. Don't think it is 100% necessary but why not get a head start. - if (start_monotonic_time_ns == -1) { - start_monotonic_time_ns = NowNs(); - } - - ros2_executor_thread_->Start(start_monotonic_time_ns); - cactus_rt::App::Start(start_monotonic_time_ns); -} - void App::RequestStop() { // Stop all the registered threads first, then stop the Ros2ExecutorThread // after the normal threads are joined to ensure we flush messages. See App::Join.