bt_navigator throwing error on startup
I launched the nav2_tb3_simulation_launch.py
file as stated in the navigation2 wiki, but whenever I click on Startup RViz after the turtlebot3 world loads on Gazebo, I'm getting this error:
[lifecycle_manager-5] [INFO] [lifecycle_manager]: Configuring bt_navigator
[bt_navigator-11] [INFO] [bt_navigator]: Configuring
[bt_navigator-11] [ERROR] []: Caught exception in callback for transition 10
[bt_navigator-11] [ERROR] []: Original error: Could not load library:/home/adi99/ROS2/nav2_ws/install/nav2_behavior_tree/lib/libnav2_compute_path_to_pose_action_bt_node.so: undefined symbol: _ZTIN2BT14CoroActionNodeE
[bt_navigator-11] [WARN] []: Error occurred while doing error handling.
[bt_navigator-11] [FATAL] [bt_navigator]: Lifecycle node entered error state
[lifecycle_manager-5] [ERROR] [lifecycle_manager]: Failed to change state for node: bt_navigator
[lifecycle_manager-5] [ERROR] [lifecycle_manager]: Failed to bring up nodes: aborting bringup
The map also dosent load on RViz as ros2 topic info /map
shows that there are no publishers.
Along with this, I keep getting this continuously:
[rviz2-3] [INFO] [rviz2]: Message Filter dropping message: frame 'base_scan' at time 11.203 for reason 'Unknown'
Asked by adi9905 on 2021-03-24 02:05:39 UTC
Answers
This issue addresses the above error. Building the navigation2 package and the BehaviourTree.CPP package from source solves the problem
Asked by adi9905 on 2021-03-26 05:38:37 UTC
Comments
It was not clear to me that BehaviorTree.CPP is a package and not a source code file. This comment helped me to understand this, thanks ! However, the correct package name turned out to be behaviortree_cpp_v3 for eloquent. Downloading this package and the navigation2 helped. I needed to source and build back and forth between the eloquent distribution and the work space folder. Then the problem disappeared.
Asked by AndersL on 2021-05-10 05:46:49 UTC
Comments
How did you install nav2?
Asked by vinny on 2021-03-24 09:17:18 UTC
I cloned the eloquent repostory from their github page.I also installed from binaries but both are giving this error.
Asked by adi9905 on 2021-03-24 11:02:11 UTC