Skip to content

Commit 98ed9aa

Browse files
(laser) Fix ptr check
Co-authored-by: PetervDooren <19806646+PetervDooren@users.noreply.github.com>
1 parent f916592 commit 98ed9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ed_sensor_integration/src/laser/laser_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void LaserPlugin::initialize(ed::InitData& init)
7070
// Communication
7171
sub_scan_ = nh.subscribe<sensor_msgs::LaserScan>(laser_topic, 3, &LaserPlugin::scanCallback, this);
7272

73-
if (tf_listener_)
73+
if (!tf_listener_)
7474
tf_listener_ = std::make_unique<tf2_ros::TransformListener>(tf_buffer_);
7575

7676
//pose_cache.clear();

0 commit comments

Comments
 (0)