mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Merge pull request #632 from easylyou/ros2
fix possible stackunderflow in CoreWrapper constructed function
This commit is contained in:
@@ -233,6 +233,10 @@ private:
|
|||||||
std::string groundTruthBaseFrameId_;
|
std::string groundTruthBaseFrameId_;
|
||||||
std::string configPath_;
|
std::string configPath_;
|
||||||
std::string databasePath_;
|
std::string databasePath_;
|
||||||
|
|
||||||
|
double tfDelay;
|
||||||
|
double tfTolerance;
|
||||||
|
|
||||||
double odomDefaultAngVariance_;
|
double odomDefaultAngVariance_;
|
||||||
double odomDefaultLinVariance_;
|
double odomDefaultLinVariance_;
|
||||||
double landmarkDefaultAngVariance_;
|
double landmarkDefaultAngVariance_;
|
||||||
|
|||||||
+2
-2
@@ -138,8 +138,8 @@ CoreWrapper::CoreWrapper(const rclcpp::NodeOptions & options) :
|
|||||||
tfBroadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(this);
|
tfBroadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(this);
|
||||||
|
|
||||||
bool publishTf = true;
|
bool publishTf = true;
|
||||||
double tfDelay = 0.05; // 20 Hz
|
tfDelay = 0.05; // 20 Hz
|
||||||
double tfTolerance = 0.1; // 100 ms
|
tfTolerance = 0.1; // 100 ms
|
||||||
|
|
||||||
configPath_ = this->declare_parameter("config_path", configPath_);
|
configPath_ = this->declare_parameter("config_path", configPath_);
|
||||||
databasePath_ = this->declare_parameter("database_path", databasePath_);
|
databasePath_ = this->declare_parameter("database_path", databasePath_);
|
||||||
|
|||||||
Reference in New Issue
Block a user