fix possible stackunderflow in CoreWrapper constructed function

This commit is contained in:
Kai-Tao Xie
2021-08-23 11:52:17 +08:00
parent dfdbe1f683
commit 16857f0bba
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -233,6 +233,10 @@ private:
std::string groundTruthBaseFrameId_;
std::string configPath_;
std::string databasePath_;
double tfDelay;
double tfTolerance;
double odomDefaultAngVariance_;
double odomDefaultLinVariance_;
double landmarkDefaultAngVariance_;
+2 -2
View File
@@ -138,8 +138,8 @@ CoreWrapper::CoreWrapper(const rclcpp::NodeOptions & options) :
tfBroadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(this);
bool publishTf = true;
double tfDelay = 0.05; // 20 Hz
double tfTolerance = 0.1; // 100 ms
tfDelay = 0.05; // 20 Hz
tfTolerance = 0.1; // 100 ms
configPath_ = this->declare_parameter("config_path", configPath_);
databasePath_ = this->declare_parameter("database_path", databasePath_);