From 05c181aeec28015f449177a4314cfee1ebf527a5 Mon Sep 17 00:00:00 2001 From: fan-ziqi Date: Sat, 16 Mar 2024 12:58:21 +0800 Subject: [PATCH] fix nh bug --- src/rl_sar/src/rl_sim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rl_sar/src/rl_sim.cpp b/src/rl_sar/src/rl_sim.cpp index 171a57f..1b06d61 100644 --- a/src/rl_sar/src/rl_sim.cpp +++ b/src/rl_sar/src/rl_sim.cpp @@ -1,7 +1,5 @@ #include "../include/rl_sim.hpp" -RL_Sim rl_sar; - RL_Sim::RL_Sim() { ros::NodeHandle nh; @@ -180,7 +178,9 @@ int main(int argc, char **argv) signal(SIGINT, signalHandler); ros::init(argc, argv, "rl_sar"); - + + RL_Sim rl_sar; + ros::spin(); return 0;