From e63a0bd9d1b574db0d7e37274d3b60e995f75382 Mon Sep 17 00:00:00 2001 From: Janosch Machowinski Date: Wed, 3 Apr 2024 21:19:49 +0200 Subject: [PATCH 1/2] fix: Compilefix for changes to rclcpp::Executor Signed-off-by: Janosch Machowinski --- pendulum_control/include/pendulum_control/rtt_executor.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pendulum_control/include/pendulum_control/rtt_executor.hpp b/pendulum_control/include/pendulum_control/rtt_executor.hpp index 188efec16..fb3c5ca19 100644 --- a/pendulum_control/include/pendulum_control/rtt_executor.hpp +++ b/pendulum_control/include/pendulum_control/rtt_executor.hpp @@ -103,6 +103,11 @@ class RttExecutor : public rclcpp::Executor rttest_ready = rttest_running(); } + // dummy implementation, not used + void spin(const std::function &) + { + } + /// Core component of the executor. Do a little bit of work and update extra state. // \param[in] Anonymous argument, will be cast as a pointer to an RttExecutor. static void * loop_callback(void * arg) From ab86d6d588ffcc4bf3c6a6e726dbff075f94234d Mon Sep 17 00:00:00 2001 From: William Woodall Date: Mon, 15 Apr 2024 21:15:01 -0700 Subject: [PATCH 2/2] add a throw in the unimplemented function Signed-off-by: William Woodall --- pendulum_control/include/pendulum_control/rtt_executor.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pendulum_control/include/pendulum_control/rtt_executor.hpp b/pendulum_control/include/pendulum_control/rtt_executor.hpp index fb3c5ca19..9ee1aad1c 100644 --- a/pendulum_control/include/pendulum_control/rtt_executor.hpp +++ b/pendulum_control/include/pendulum_control/rtt_executor.hpp @@ -106,6 +106,7 @@ class RttExecutor : public rclcpp::Executor // dummy implementation, not used void spin(const std::function &) { + throw std::logic_error("not implemented"); } /// Core component of the executor. Do a little bit of work and update extra state.