Skip to content

Commit

Permalink
[melodic] tf2_buffer_ -> tf2_buffer_ptr_
Browse files Browse the repository at this point in the history
Change required due to changes in upstream dependencies:
ros/geometry#163: "Maintain & expose tf2 Buffer in shared_ptr for tf"

fixes ros-planning#717 (for compile errors at least.)
  • Loading branch information
moriarty committed May 14, 2018
1 parent b2fa535 commit e913f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amcl/src/amcl_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class AmclNode
// Use a child class to get access to tf2::Buffer class inside of tf_
struct TransformListenerWrapper : public tf::TransformListener
{
inline tf2_ros::Buffer &getBuffer() {return tf2_buffer_;}
inline std::shared_ptr<tf2_ros::Buffer> &getBuffer() {return tf2_buffer_ptr_;}
};

TransformListenerWrapper* tf_;
Expand Down Expand Up @@ -649,7 +649,7 @@ void AmclNode::runFromBag(const std::string &in_bag_fn)
tf_pub.publish(msg);
for (size_t ii=0; ii<tf_msg->transforms.size(); ++ii)
{
tf_->getBuffer().setTransform(tf_msg->transforms[ii], "rosbag_authority");
tf_->getBuffer()->setTransform(tf_msg->transforms[ii], "rosbag_authority");
}
continue;
}
Expand Down

0 comments on commit e913f77

Please sign in to comment.