Skip to content

Commit

Permalink
removed version check
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Aug 10, 2023
1 parent 4f742ea commit f6f60bf
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/automatic_start.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#define VERSION "1.0.4.0"

/* includes //{ */

#include <ros/ros.h>
Expand Down Expand Up @@ -89,7 +87,6 @@ class AutomaticStart : public nodelet::Nodelet {
private:
ros::NodeHandle nh_;
std::atomic<bool> is_initialized_ = false;
std::string _version_;

std::string _uav_name_;
bool _simulation_;
Expand Down Expand Up @@ -213,14 +210,6 @@ void AutomaticStart::onInit() {

mrs_lib::ParamLoader param_loader(nh_, "AutomaticStart");

param_loader.loadParam("version", _version_);

if (_version_ != VERSION) {

ROS_ERROR("[AutomaticStart]: the version of the binary (%s) does not match the config file (%s), please build me!", VERSION, _version_.c_str());
ros::shutdown();
}

param_loader.loadParam("uav_name", _uav_name_);
param_loader.loadParam("simulation", _simulation_);

Expand Down Expand Up @@ -319,7 +308,7 @@ void AutomaticStart::onInit() {

is_initialized_ = true;

ROS_INFO_THROTTLE(1.0, "[AutomaticStart]: initialized, version %s", VERSION);
ROS_INFO_THROTTLE(1.0, "[AutomaticStart]: initialized");
}

//}
Expand Down

0 comments on commit f6f60bf

Please sign in to comment.