Skip to content

Commit

Permalink
Fixed crash due to uninited tf broadcaster
Browse files Browse the repository at this point in the history
  • Loading branch information
josephduchesne committed Nov 18, 2024
1 parent a687c8c commit 5d93c01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flatland_plugins/src/imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ void Imu::OnInitialize(const YAML::Node& config) {
update_timer_.SetRate(pub_rate_);

broadcast_tf_ = reader.Get<bool>("broadcast_tf", true);
tf_broadcaster_ =
std::make_shared<tf2_ros::TransformBroadcaster>(node_);

// by default the covariance diagonal is the variance of actual noise
// generated, non-diagonal elements are zero assuming the noises are
Expand Down

0 comments on commit 5d93c01

Please sign in to comment.