Fixing TransformBroadcaster *this on rolling (#1443)

This commit is contained in:
matlabbe
2026-08-07 14:03:56 -07:00
committed by GitHub
parent 99436c6e87
commit 0b60e52914
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ OdometryROS::OdometryROS(const std::string & name, const rclcpp::NodeOptions & o
tfBuffer_ = std::make_shared<tf2_ros::Buffer>(get_clock());
tfListener_ = std::make_shared<tf2_ros::TransformListener>(*tfBuffer_);
tfBroadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(this);
tfBroadcaster_ = std::make_shared<tf2_ros::TransformBroadcaster>(*this);
std::string initialPoseStr;
frameId_ = this->declare_parameter("frame_id", frameId_);