Skip to content

Commit

Permalink
Merge pull request #3 from iirob/local_changes
Browse files Browse the repository at this point in the history
Initalise TF2 before using it. Otherwise runtime error in current kin…
  • Loading branch information
destogl authored Mar 27, 2019
2 parents 3b3db3f + e84269c commit 6cb957c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cob_scan_unifier/src/scan_unifier_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ ScanUnifierNode::ScanUnifierNode()
nh_ = ros::NodeHandle();
pnh_ = ros::NodeHandle("~");

// Init TF-Buffer
p_tfBuffer = new tf2_ros::Buffer();
p_tfListener = new tf2_ros::TransformListener(*p_tfBuffer, true);

// Publisher
topicPub_LaserUnified_ = nh_.advertise<sensor_msgs::LaserScan>("scan_unified", 1);

Expand Down

0 comments on commit 6cb957c

Please sign in to comment.