Skip to content

Commit

Permalink
ros_context: dont add ros globals if we dont have ros
Browse files Browse the repository at this point in the history
  • Loading branch information
erlenner committed Nov 26, 2021
1 parent 1d050b1 commit 376fe4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tyndall/ros_context.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#include "ros_context.h"


#ifndef NO_ROS
namespace ros_context
{
ros::NodeHandle *nh = NULL;
std::mutex ros_mutex;
std::thread ros_thread;
int run_ros = 1;
}
#endif

0 comments on commit 376fe4a

Please sign in to comment.