fix nh bug

This commit is contained in:
fan-ziqi 2024-03-16 12:58:21 +08:00
parent 9020bb81ee
commit 05c181aeec
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,5 @@
#include "../include/rl_sim.hpp" #include "../include/rl_sim.hpp"
RL_Sim rl_sar;
RL_Sim::RL_Sim() RL_Sim::RL_Sim()
{ {
ros::NodeHandle nh; ros::NodeHandle nh;
@ -181,6 +179,8 @@ int main(int argc, char **argv)
ros::init(argc, argv, "rl_sar"); ros::init(argc, argv, "rl_sar");
RL_Sim rl_sar;
ros::spin(); ros::spin();
return 0; return 0;