Fixed tf_buffer_ not being initialized
This commit is contained in:
@@ -19,9 +19,10 @@ TreeExecutor::TreeExecutor(const rclcpp::NodeOptions opts)
|
||||
/*
|
||||
executeRegistration();
|
||||
std::cout << BT::writeTreeNodesModelXML(factory()) << std::endl;
|
||||
*/
|
||||
tf_buffer_ = std::make_shared<tf2_ros::Buffer>(node()->get_clock());
|
||||
tf_listener_ = std::make_shared<tf2_ros::TransformListener>(*tf_buffer_);
|
||||
*/
|
||||
|
||||
|
||||
nav2_util::declare_parameter_if_not_declared(
|
||||
node(), "base_frame", rclcpp::ParameterValue("base_footprint"));
|
||||
|
||||
Reference in New Issue
Block a user