Closed isiko closed 2 years ago
Please ask on ROS Answers, that is the correct place.
But definitely remove libnav2_change_goal_node_bt_node
from your param file, the BT nav is stopping because that doesn't exist in Foxy. You must use the appropriate parameter files / libraries for your distribution.
But definitely remove
libnav2_change_goal_node_bt_node
from your param file, the BT nav is stopping because that doesn't exist in Foxy. You must use the appropriate parameter files / libraries for your distribution.
That's why I also posted here: That library is no where in my params, the file doesn't even contain the string 'change'
@SteveMacenski same problem for me. I didn't add this parameter libnav2_change_goal_node_bt_node
in the param file at all, but still the error was displayed. And it only appeared when I added the namespace. Since this problem is not accidental, and it is not like you said, just remove libnav2_change_goal_node_bt_node
. But the problem is, there is no such parameter in the param file, why does this error occur?
@isiko Have you made any progress? I'm working on a multi-robot project recently and I'm also having the same problem.
[lifecycle_manager-13] [INFO] [1662003008.932584225] [lifecycle_manager_navigation]: Configuring bt_navigator
[bt_navigator-11] [ERROR] [1662003009.187668684] []: Caught exception in callback for transition 10 [bt_navigator-11] [ERROR] [1662003009.190816521] []: Original error: Could not load library: libnav2_transform_availablemap_condition_bt_node.so: cannot open shared object file: No such file or directory [bt_navigator-11] [WARN] [1662003009.194177208] []: Error occurred while doing error handling. [bt_navigator-11] [FATAL] [1662003009.197183521] [bt_navigator]: Lifecycle node bt_navigator does not have error state implemented [lifecycle_manager-13] [ERROR] [1662003009.202547305] [lifecycle_manager_navigation]: Failed to change state for node: bt_navigator [lifecycle_manager-13] [ERROR] [1662003009.202713494] [lifecycle_manager_navigation]: Failed to bring up all requested nodes. Aborting bringup.
in params_file “nav2_transform_availablemap_condition_bt_node” change “ nav2_transform_available_condition_bt_node” ok!!
nav2_change_goal_node_bt_node change to "nav2_goal_updater_node_bt_node"
maybe The versions are different
@SteveMacenski I am facing the same error which @isiko has pointed out. I am using Ubuntu 20.04 and ros2 foxy. Is there any workaround, it would be helpful. Else if you give a big picture idea of how this happened would also be helpful.
@SteveMacenski same problem for me. I didn't add this parameter
libnav2_change_goal_node_bt_node
in the param file at all, but still the error was displayed. And it only appeared when I added the namespace. Since this problem is not accidental, and it is not like you said, just removelibnav2_change_goal_node_bt_node
. But the problem is, there is no such parameter in the param file, why does this error occur?@isiko Have you made any progress? I'm working on a multi-robot project recently and I'm also having the same problem.
@xinxing-max could you solve this issue?
@JACOBIN-SCTCS yes, I have solved this issue. I did not use the package navigation2 from deb source any more. I have downloaded the package in my workspace and changed the source code (just check the lib list in the source code). I found the source code of Nav2 between deb source and official code in github were different. You can compare them by yourself. But I use Nav2 galactic now, not foxy anymore. The issues occurred using the global path planner with Nav2 foxy, e.g. global path through the wall :).
@JACOBIN-SCTCS yes, I have solved this issue. I did not use the package navigation2 from deb source any more. I have downloaded the package in my workspace and changed the source code (just check the lib list in the source code). I found the source code of Nav2 between deb source and official code in github were different. You can compare them by yourself. But I use Nav2 galactic now, not foxy anymore. The issues occurred using the global path planner with Nav2 foxy, e.g. global path through the wall :).
I will try the suggestions you made. Thank you once again.
Hi, I am using the Humble branch and I have the same problem...
[lifecycle_manager-14] [INFO] [1700832618.874720224] [lifecycle_manager_navigation]: Configuring bt_navigator
[bt_navigator-11] [INFO] [1700832618.874903793] [bt_navigator]: Configuring
[bt_navigator-11] [ERROR] [1700832618.913140548] [bt_navigator]: Caught exception in callback for transition 10
[bt_navigator-11] [ERROR] [1700832618.913171216] [bt_navigator]: Original error: Could not load library: libnav2_are_error_codes_active_condition_bt_node.so: cannot open shared object file: No such file or directory
[bt_navigator-11] [WARN] [1700832618.913190111] [bt_navigator]: Error occurred while doing error handling.
[bt_navigator-11] [FATAL] [1700832618.913198917] [bt_navigator]: Lifecycle node bt_navigator does not have error state implemented
[lifecycle_manager-14] [ERROR] [1700832618.913455290] [lifecycle_manager_navigation]: Failed to change state for node: bt_navigator
[lifecycle_manager-14] [ERROR] [1700832618.913479267] [lifecycle_manager_navigation]: Failed to bring up all requested nodes. Aborting bringup.
…
…
…
lifecycle_manager-14] [INFO] [1700820547.300933970] [lifecycle_manager_navigation]: Starting managed nodes bringup...
[lifecycle_manager-14] [INFO] [1700820547.301005364] [lifecycle_manager_navigation]: Configuring controller_server
[controller_server-7] [WARN] [1700820547.301310911] [rcl_lifecycle]: No transition matching 1 found for current state inactive
[controller_server-7] [ERROR] [1700820547.301329534] [controller_server]: Unable to start transition 1 from current state inactive: Transition is not registered., at ./src/rcl_lifecycle.c:355
[lifecycle_manager-14] [INFO] [1700820547.301832985] [lifecycle_manager_navigation]: Configuring smoother_server
[smoother_server-8] [WARN] [1700820547.302026701] [rcl_lifecycle]: No transition matching 1 found for current state inactive
[smoother_server-8] [ERROR] [1700820547.302045041] [smoother_server]: Unable to start transition 1 from current state inactive: Transition is not registered., at ./src/rcl_lifecycle.c:355
[lifecycle_manager-14] [INFO] [1700820547.302364218] [lifecycle_manager_navigation]: Configuring planner_server
[planner_server-9] [WARN] [1700820547.302519899] [rcl_lifecycle]: No transition matching 1 found for current state inactive
[planner_server-9] [ERROR] [1700820547.302537385] [planner_server]: Unable to start transition 1 from current state inactive: Transition is not registered., at ./src/rcl_lifecycle.c:355
[lifecycle_manager-14] [INFO] [1700820547.302776746] [lifecycle_manager_navigation]: Configuring behavior_server
[behavior_server-10] [WARN] [1700820547.302911425] [rcl_lifecycle]: No transition matching 1 found for current state inactive
[behavior_server-10] [ERROR] [1700820547.302927600] [behavior_server]: Unable to start transition 1 from current state inactive: Transition is not registered., at ./src/rcl_lifecycle.c:355
[lifecycle_manager-14] [INFO] [1700820547.303191023] [lifecycle_manager_navigation]: Configuring bt_navigator
[bt_navigator-11] [INFO] [1700820547.303381089] [bt_navigator]: Configuring
[bt_navigator-11] [ERROR] [1700820547.337725521] [bt_navigator]: Caught exception in callback for transition 10
[bt_navigator-11] [ERROR] [1700820547.337762428] [bt_navigator]: Original error: Could not load library: libnav2_are_error_codes_active_condition_bt_node.so: cannot open shared object file: No such file or directory
[bt_navigator-11] [WARN] [1700820547.337784641] [bt_navigator]: Error occurred while doing error handling.
[bt_navigator-11] [ERROR] [1700820547.337798562] [bt_navigator]: Lifecycle node bt_navigator does not have error state implemented
[lifecycle_manager-14] [ERROR] [1700820547.338181273] [lifecycle_manager_navigation]: Failed to change state for node: bt_navigator
[lifecycle_manager-14] [ERROR] [1700820547.338208415] [lifecycle_manager_navigation]: Failed to bring up all requested nodes. Aborting bringup.
[lifecycle_manager-14] [INFO] [1700820593.618853682] [lifecycle_manager_navigation]: Resetting managed nodes...
[lifecycle_manager-14] [INFO] [1700820593.618894026] [lifecycle_manager_navigation]: Deactivating velocity_smoother
[velocity_smoother-13] [WARN] [1700820593.619228674] [rcl_lifecycle]: No transition matching 4 found for current state unconfigured
I have got this error following the Navigating Using GPS Localization tutorial... @xinxing-max can you explain better what have you done please? At the moment I have install the navigation2 package and all nav2 package as well, plus in my workspace I have the humble branch of the package.
@Cristian-wp did you build nav2 package in your workspace or just installed in /opt. Now I don't remember it very clearly. I probably know that I compiled the nav2 package in my own workspace and deleted the so shared files that could not be found from the corresponding files in nav2. In your case, you should delete libnav2_are_error_codes_active_condition_bt_node.so in the bt_navigator node file or configuration file or any file like this in bt_navigator of nav2 package.
hi @xinxing-max thank you for the fast reply.
I have do both, first I clone the humble branch from repository:
git clone --recursive https://github.com/ros-planning/navigation2.git -b humble
Then I install the binary indicated on Getting Started[¶](https://navigation.ros.org/getting_started/index.html#getting-started).
Doing that I had found that not all required package where installed, so I insall all with:
sudo apt-get install ros-humble-nav2-*
But I do not understand where I have do delete that libnav2_are_error_codes_active_condition_bt_node.so, plus is used as config param only in this files nav2_multirobot_params_all.yam.
Whit I compiled the nav2 package in my own workspace and deleted the so shared files do you mean I have to delete them in the install and build share directory?
@Cristian-wp I was referring to bt_navigator.cpp before. But I just took a look at humble's version. I found that the code in github should be correct. So I think the problem should be with the params yaml file you are referring to. Just make sure that the lib file name in the yaml file is consistent with the name in bt_navigator.cpp, and there should be no errors.
Of course, if you install two nav2 packages, make sure that the package you use is the one you want to use.
@xinxing-max this is the nav2_params.yaml that I am using. I have not modify it, at the moment I am only trying to follow the tutorials. Ok, so I have to check that all le plugin name here are equal to these ones right?
@xinxing-max I have check the cpp and yaml file and there are some difference...I copy and paste the plugin list in two txt file and use diff command, this is the result:
diff -c bt_navigator.txt nav2_params.txt
*** bt_navigator.txt 2023-11-27 15:02:39.882398665 +0100
--- nav2_params.txt 2023-11-27 15:03:11.982362655 +0100
***************
*** 10,19 ****
nav2_clear_costmap_service_bt_node
nav2_is_stuck_condition_bt_node
nav2_goal_reached_condition_bt_node
- nav2_initial_pose_received_condition_bt_node
nav2_goal_updated_condition_bt_node
nav2_globally_updated_goal_condition_bt_node
nav2_is_path_valid_condition_bt_node
nav2_reinitialize_global_localization_service_bt_node
nav2_rate_controller_bt_node
nav2_distance_controller_bt_node
--- 10,19 ----
nav2_clear_costmap_service_bt_node
nav2_is_stuck_condition_bt_node
nav2_goal_reached_condition_bt_node
nav2_goal_updated_condition_bt_node
nav2_globally_updated_goal_condition_bt_node
nav2_is_path_valid_condition_bt_node
+ nav2_initial_pose_received_condition_bt_node
nav2_reinitialize_global_localization_service_bt_node
nav2_rate_controller_bt_node
nav2_distance_controller_bt_node
***************
*** 41,47 ****
nav2_path_longer_on_approach_bt_node
nav2_wait_cancel_bt_node
nav2_spin_cancel_bt_node
- nav2_assisted_teleop_cancel_bt_node
nav2_back_up_cancel_bt_node
nav2_drive_on_heading_cancel_bt_node
nav2_is_battery_charging_condition_bt_node
--- 41,48 ----
nav2_path_longer_on_approach_bt_node
nav2_wait_cancel_bt_node
nav2_spin_cancel_bt_node
nav2_back_up_cancel_bt_node
+ nav2_assisted_teleop_cancel_bt_node
nav2_drive_on_heading_cancel_bt_node
nav2_is_battery_charging_condition_bt_node
+
Now I am recreating the workspace, after the compilation I try to _take as good the nav2param.yaml and make the bt_navigator.cpp equal to it.
@Cristian-wp the wired thing was that there was no lib named nav2_are_error_codes_active_condition_bt_node in your yaml file. But wait and see your subsequent results.
@xinxing-max I know, but I suspect there is a problem on this branch because @SteveMacenski reply me that: You’re pulling params from the wrong branch.
But as I say, I get my package with:
git clone --recursive https://github.com/ros-planning/navigation2.git -b humble
So I really do not know how to do...
@xinxing-max Nothing has change...This is the output of my shell:
source install/setup.bash
source /opt/ros/humble/setup.bash
export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/humble/share/turtlebot3_gazebo/models
ros2 launch nav2_gps_waypoint_follower_demo gps_waypoint_follower.launch.py use_rviz:=True
[INFO] [launch]: All log files can be found below /home/ctrazzi/.ros/log/2023-11-27-15-57-39-564424-jelly-219358
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [219408]
[INFO] [gzclient-2]: process started with pid [219410]
[INFO] [robot_state_publisher-3]: process started with pid [219412]
[INFO] [ekf_node-4]: process started with pid [219414]
[INFO] [ekf_node-5]: process started with pid [219416]
[INFO] [navsat_transform_node-6]: process started with pid [219418]
[INFO] [controller_server-7]: process started with pid [219420]
[INFO] [smoother_server-8]: process started with pid [219422]
[INFO] [planner_server-9]: process started with pid [219426]
[INFO] [behavior_server-10]: process started with pid [219444]
[INFO] [bt_navigator-11]: process started with pid [219476]
[INFO] [waypoint_follower-12]: process started with pid [219490]
[INFO] [velocity_smoother-13]: process started with pid [219505]
[INFO] [lifecycle_manager-14]: process started with pid [219516]
[INFO] [rviz2-15]: process started with pid [219538]
[navsat_transform_node-6] [WARN] [1701097060.493877224] [navsat_transform]: Parameter 'broadcast_utm_transform' has been deprecated. Please use 'broadcast_cartesian_transform' instead.
[controller_server-7] [INFO] [1701097060.497587628] [controller_server]:
[controller_server-7] controller_server lifecycle node launched.
[controller_server-7] Waiting on external lifecycle transitions to activate
[controller_server-7] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[controller_server-7] [INFO] [1701097060.518111920] [controller_server]: Creating controller server
[controller_server-7] [INFO] [1701097060.564526297] [local_costmap.local_costmap]:
[controller_server-7] local_costmap lifecycle node launched.
[controller_server-7] Waiting on external lifecycle transitions to activate
[controller_server-7] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[controller_server-7] [INFO] [1701097060.566956807] [local_costmap.local_costmap]: Creating Costmap
[smoother_server-8] [INFO] [1701097060.552074882] [smoother_server]:
[smoother_server-8] smoother_server lifecycle node launched.
[smoother_server-8] Waiting on external lifecycle transitions to activate
[smoother_server-8] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[smoother_server-8] [INFO] [1701097060.558256223] [smoother_server]: Creating smoother server
[planner_server-9] [INFO] [1701097060.568756460] [planner_server]:
[planner_server-9] planner_server lifecycle node launched.
[planner_server-9] Waiting on external lifecycle transitions to activate
[planner_server-9] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[planner_server-9] [INFO] [1701097060.574828414] [planner_server]: Creating
[behavior_server-10] [INFO] [1701097060.550331429] [behavior_server]:
[behavior_server-10] behavior_server lifecycle node launched.
[behavior_server-10] Waiting on external lifecycle transitions to activate
[behavior_server-10] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[bt_navigator-11] [INFO] [1701097060.595717398] [bt_navigator]:
[bt_navigator-11] bt_navigator lifecycle node launched.
[bt_navigator-11] Waiting on external lifecycle transitions to activate
[bt_navigator-11] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[bt_navigator-11] [INFO] [1701097060.595871296] [bt_navigator]: Creating
[lifecycle_manager-14] [INFO] [1701097060.619628406] [lifecycle_manager_navigation]: Creating
[lifecycle_manager-14] [INFO] [1701097060.621920946] [lifecycle_manager_navigation]: Creating and initializing lifecycle service clients
[waypoint_follower-12] [INFO] [1701097060.677355281] [waypoint_follower]:
[waypoint_follower-12] waypoint_follower lifecycle node launched.
[waypoint_follower-12] Waiting on external lifecycle transitions to activate
[waypoint_follower-12] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[waypoint_follower-12] [INFO] [1701097060.679034074] [waypoint_follower]: Creating
[planner_server-9] [INFO] [1701097060.693163328] [global_costmap.global_costmap]:
[planner_server-9] global_costmap lifecycle node launched.
[planner_server-9] Waiting on external lifecycle transitions to activate
[planner_server-9] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[planner_server-9] [INFO] [1701097060.695207111] [global_costmap.global_costmap]: Creating Costmap
[velocity_smoother-13] [INFO] [1701097060.724416770] [velocity_smoother]:
[velocity_smoother-13] velocity_smoother lifecycle node launched.
[velocity_smoother-13] Waiting on external lifecycle transitions to activate
[velocity_smoother-13] See https://design.ros2.org/articles/node_lifecycle.html for more information.
[robot_state_publisher-3] [INFO] [1701097060.735904530] [robot_state_publisher]: got segment base_footprint
[robot_state_publisher-3] [INFO] [1701097060.736020684] [robot_state_publisher]: got segment base_link
[robot_state_publisher-3] [INFO] [1701097060.738022586] [robot_state_publisher]: got segment base_scan
[robot_state_publisher-3] [INFO] [1701097060.738046132] [robot_state_publisher]: got segment camera_depth_frame
[robot_state_publisher-3] [INFO] [1701097060.738058263] [robot_state_publisher]: got segment camera_depth_optical_frame
[robot_state_publisher-3] [INFO] [1701097060.738070624] [robot_state_publisher]: got segment camera_link
[robot_state_publisher-3] [INFO] [1701097060.738085421] [robot_state_publisher]: got segment camera_rgb_frame
[robot_state_publisher-3] [INFO] [1701097060.738100554] [robot_state_publisher]: got segment camera_rgb_optical_frame
[robot_state_publisher-3] [INFO] [1701097060.738115032] [robot_state_publisher]: got segment caster_back_left_link
[robot_state_publisher-3] [INFO] [1701097060.738127262] [robot_state_publisher]: got segment caster_back_right_link
[robot_state_publisher-3] [INFO] [1701097060.738137854] [robot_state_publisher]: got segment gps_link
[robot_state_publisher-3] [INFO] [1701097060.738150917] [robot_state_publisher]: got segment imu_link
[robot_state_publisher-3] [INFO] [1701097060.738164960] [robot_state_publisher]: got segment wheel_left_link
[robot_state_publisher-3] [INFO] [1701097060.738179066] [robot_state_publisher]: got segment wheel_right_link
[rviz2-15] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[lifecycle_manager-14] [INFO] [1701097060.896229941] [lifecycle_manager_navigation]: Starting managed nodes bringup...
[lifecycle_manager-14] [INFO] [1701097060.896283811] [lifecycle_manager_navigation]: Configuring controller_server
[controller_server-7] [INFO] [1701097060.896548056] [controller_server]: Configuring controller interface
[controller_server-7] [INFO] [1701097060.896754181] [controller_server]: getting goal checker plugins..
[controller_server-7] [INFO] [1701097060.896830962] [controller_server]: Controller frequency set to 20.0000Hz
[controller_server-7] [INFO] [1701097060.896860943] [local_costmap.local_costmap]: Configuring
[controller_server-7] [INFO] [1701097060.910725650] [local_costmap.local_costmap]: Using plugin "voxel_layer"
[controller_server-7] [INFO] [1701097060.924182379] [local_costmap.local_costmap]: Subscribed to Topics: scan
[controller_server-7] [INFO] [1701097060.961422909] [local_costmap.local_costmap]: Initialized plugin "voxel_layer"
[controller_server-7] [INFO] [1701097060.961465553] [local_costmap.local_costmap]: Using plugin "inflation_layer"
[controller_server-7] [INFO] [1701097060.967920663] [local_costmap.local_costmap]: Initialized plugin "inflation_layer"
[controller_server-7] [INFO] [1701097060.992314084] [controller_server]: Created progress_checker : progress_checker of type nav2_controller::SimpleProgressChecker
[controller_server-7] [INFO] [1701097060.993194083] [controller_server]: Created goal checker : general_goal_checker of type nav2_controller::SimpleGoalChecker
[controller_server-7] [INFO] [1701097060.993426944] [controller_server]: Controller Server has general_goal_checker goal checkers available.
[controller_server-7] [INFO] [1701097060.997732429] [controller_server]: Created controller : FollowPath of type dwb_core::DWBLocalPlanner
[controller_server-7] [INFO] [1701097061.003382325] [controller_server]: Setting transform_tolerance to 0.200000
[controller_server-7] [INFO] [1701097061.022927278] [controller_server]: Using critic "RotateToGoal" (dwb_critics::RotateToGoalCritic)
[controller_server-7] [INFO] [1701097061.023295110] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.023393694] [controller_server]: Using critic "Oscillation" (dwb_critics::OscillationCritic)
[controller_server-7] [INFO] [1701097061.023663041] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.023754706] [controller_server]: Using critic "BaseObstacle" (dwb_critics::BaseObstacleCritic)
[controller_server-7] [INFO] [1701097061.023886172] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.023964171] [controller_server]: Using critic "GoalAlign" (dwb_critics::GoalAlignCritic)
[controller_server-7] [INFO] [1701097061.024372774] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.024459150] [controller_server]: Using critic "PathAlign" (dwb_critics::PathAlignCritic)
[controller_server-7] [INFO] [1701097061.024692055] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.024795847] [controller_server]: Using critic "PathDist" (dwb_critics::PathDistCritic)
[controller_server-7] [INFO] [1701097061.024976732] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.025081216] [controller_server]: Using critic "GoalDist" (dwb_critics::GoalDistCritic)
[controller_server-7] [INFO] [1701097061.025247117] [controller_server]: Critic plugin initialized
[controller_server-7] [INFO] [1701097061.025271684] [controller_server]: Controller Server has FollowPath controllers available.
[lifecycle_manager-14] [INFO] [1701097061.052114540] [lifecycle_manager_navigation]: Configuring smoother_server
[smoother_server-8] [INFO] [1701097061.052447980] [smoother_server]: Configuring smoother server
[smoother_server-8] [INFO] [1701097061.083299548] [smoother_server]: Created smoother : simple_smoother of type nav2_smoother::SimpleSmoother
[smoother_server-8] [INFO] [1701097061.086205803] [smoother_server]: Smoother Server has simple_smoother smoothers available.
[lifecycle_manager-14] [INFO] [1701097061.126985467] [lifecycle_manager_navigation]: Configuring planner_server
[planner_server-9] [INFO] [1701097061.127256401] [planner_server]: Configuring
[planner_server-9] [INFO] [1701097061.127289277] [global_costmap.global_costmap]: Configuring
[planner_server-9] [INFO] [1701097061.146563172] [global_costmap.global_costmap]: Using plugin "obstacle_layer"
[planner_server-9] [INFO] [1701097061.174989856] [global_costmap.global_costmap]: Subscribed to Topics: scan
[planner_server-9] [INFO] [1701097061.187856693] [global_costmap.global_costmap]: Initialized plugin "obstacle_layer"
[planner_server-9] [INFO] [1701097061.187912019] [global_costmap.global_costmap]: Using plugin "inflation_layer"
[planner_server-9] [INFO] [1701097061.192665038] [global_costmap.global_costmap]: Initialized plugin "inflation_layer"
[planner_server-9] [INFO] [1701097061.211690647] [planner_server]: Created global planner plugin GridBased of type nav2_navfn_planner/NavfnPlanner
[planner_server-9] [INFO] [1701097061.211737816] [planner_server]: Configuring plugin GridBased of type NavfnPlanner
[planner_server-9] [INFO] [1701097061.213426118] [planner_server]: Planner Server has GridBased planners available.
[lifecycle_manager-14] [INFO] [1701097061.235734391] [lifecycle_manager_navigation]: Configuring behavior_server
[behavior_server-10] [INFO] [1701097061.235952228] [behavior_server]: Configuring
[behavior_server-10] [INFO] [1701097061.249417727] [behavior_server]: Creating behavior plugin spin of type nav2_behaviors/Spin
[behavior_server-10] [INFO] [1701097061.252230081] [behavior_server]: Configuring spin
[behavior_server-10] [INFO] [1701097061.261994911] [behavior_server]: Creating behavior plugin backup of type nav2_behaviors/BackUp
[behavior_server-10] [INFO] [1701097061.263393118] [behavior_server]: Configuring backup
[behavior_server-10] [INFO] [1701097061.269999315] [behavior_server]: Creating behavior plugin drive_on_heading of type nav2_behaviors/DriveOnHeading
[behavior_server-10] [INFO] [1701097061.271712032] [behavior_server]: Configuring drive_on_heading
[behavior_server-10] [INFO] [1701097061.279928449] [behavior_server]: Creating behavior plugin assisted_teleop of type nav2_behaviors/AssistedTeleop
[behavior_server-10] [INFO] [1701097061.284116045] [behavior_server]: Configuring assisted_teleop
[behavior_server-10] [INFO] [1701097061.294046775] [behavior_server]: Creating behavior plugin wait of type nav2_behaviors/Wait
[behavior_server-10] [INFO] [1701097061.295285751] [behavior_server]: Configuring wait
[lifecycle_manager-14] [INFO] [1701097061.301712762] [lifecycle_manager_navigation]: Configuring bt_navigator
[bt_navigator-11] [INFO] [1701097061.301928073] [bt_navigator]: Configuring
[rviz2-15] [INFO] [1701097061.318854360] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-15] [INFO] [1701097061.318963053] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-15] [INFO] [1701097061.339832408] [rviz2]: Stereo is NOT SUPPORTED
[bt_navigator-11] [ERROR] [1701097061.359194733] [bt_navigator]: Caught exception in callback for transition 10
[bt_navigator-11] [ERROR] [1701097061.359256195] [bt_navigator]: Original error: Could not load library: libnav2_are_error_codes_active_condition_bt_node.so: cannot open shared object file: No such file or directory
[bt_navigator-11] [WARN] [1701097061.359283068] [bt_navigator]: Error occurred while doing error handling.
[bt_navigator-11] [FATAL] [1701097061.359296575] [bt_navigator]: Lifecycle node bt_navigator does not have error state implemented
[lifecycle_manager-14] [ERROR] [1701097061.359722852] [lifecycle_manager_navigation]: Failed to change state for node: bt_navigator
[lifecycle_manager-14] [ERROR] [1701097061.359750923] [lifecycle_manager_navigation]: Failed to bring up all requested nodes. Aborting bringup.
[gzserver-1] [INFO] [1701097063.243823231] [intel_realsense_r200_depth_driver]: Publishing camera info to [/intel_realsense_r200_depth/camera_info]
[gzserver-1] [INFO] [1701097063.247060061] [intel_realsense_r200_depth_driver]: Publishing depth camera info to [/intel_realsense_r200_depth/depth/camera_info]
[gzserver-1] [INFO] [1701097063.248137365] [intel_realsense_r200_depth_driver]: Publishing pointcloud to [/intel_realsense_r200_depth/points]
[gzserver-1] [INFO] [1701097063.283764177] [turtlebot3_diff_drive]: Wheel pair 1 separation set to [0.287000m]
[gzserver-1] [INFO] [1701097063.283827317] [turtlebot3_diff_drive]: Wheel pair 1 diameter set to [0.066000m]
[gzserver-1] [INFO] [1701097063.285316316] [turtlebot3_diff_drive]: Subscribed to [/cmd_vel]
[gzserver-1] [INFO] [1701097063.288534686] [turtlebot3_diff_drive]: Advertise odometry on [/odom]
[gzserver-1] [INFO] [1701097063.304135841] [turtlebot3_joint_state]: Going to publish joint [wheel_left_joint]
[gzserver-1] [INFO] [1701097063.304196396] [turtlebot3_joint_state]: Going to publish joint [wheel_right_joint]
[navsat_transform_node-6] [INFO] [1701097064.316246955] [navsat_transform]: Datum (latitude, longitude, altitude) is (38.16, -122.45, 488.33)
[navsat_transform_node-6] [INFO] [1701097064.316294483] [navsat_transform]: Datum UTM coordinate is (10S, 547779.04, 4223869.70)
[navsat_transform_node-6] [INFO] [1701097064.341780971] [navsat_transform]: Corrected for magnetic declination of 0, user-specified offset of 0 and meridian convergence of 0.00588165. Transform heading factor is now 0.00434459
[rviz2-15] [INFO] [1701097192.181738623] [rviz2]: Setting estimate pose: Frame:map, Position(1.96488, -2.25424, 0), Orientation(0, 0, -0.347845, 0.937552) = Angle: -0.710542
@Cristian-wp so now you used the nav2 in your own workspace? How did you write your source environment in the .bashrc file? I just saw that in your log, the order of the two source environments was wrong.
@xinxing-max now I have modify the plugin listed in nav2_params.yaml as bt_navigator.cpp. But in all my previous tests I have navigation2 in my workspace src.
Is that important? Now I have try to switch the two source as you can see from this shell, but the results are the same:
source /opt/ros/humble/setup.bash
source install/setup.bash
export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/humble/share/turtlebot3_gazebo/models
ros2 launch nav2_gps_waypoint_follower_demo gps_waypoint_follower.launch.py use_rviz:=True
[INFO] [launch]: All log files can be found below /home/ctrazzi/.ros/log/2023-11-27-16-09-08-531863-jelly-233507
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [233508]
[INFO] [gzclient-2]: process started with pid [233510]
[INFO] [robot_state_publisher-3]: process started with pid [233512]
[INFO] [ekf_node-4]: process started with pid [233514]
[INFO] [ekf_node-5]: process started with pid [233516]
[INFO] [navsat_transform_node-6]: process started with pid [233518]
[INFO] [controller_server-7]: process started with pid [233520]
[INFO] [smoother_server-8]: process started with pid [233524]
[INFO] [planner_server-9]: process started with pid [233555]
[INFO] [behavior_server-10]: process started with pid [233571]
[INFO] [bt_navigator-11]: process started with pid [233579]
[INFO] [waypoint_follower-12]: process started with pid [233600]
[INFO] [velocity_smoother-13]: process started with pid [233604]
[INFO] [lifecycle_manager-14]: process started with pid [233606]
[INFO] [rviz2-15]: process started with pid [233622]
...
...
...
[behavior_server-10] [INFO] [1701097750.131341106] [behavior_server]: Configuring assisted_teleop
[behavior_server-10] [INFO] [1701097750.139542467] [behavior_server]: Creating behavior plugin wait of type nav2_behaviors/Wait
[behavior_server-10] [INFO] [1701097750.140919960] [behavior_server]: Configuring wait
[lifecycle_manager-14] [INFO] [1701097750.146429136] [lifecycle_manager_navigation]: Configuring bt_navigator
[bt_navigator-11] [INFO] [1701097750.146631656] [bt_navigator]: Configuring
[bt_navigator-11] [ERROR] [1701097750.190907109] [bt_navigator]: Caught exception in callback for transition 10
[bt_navigator-11] [ERROR] [1701097750.190966882] [bt_navigator]: Original error: Could not load library: libnav2_are_error_codes_active_condition_bt_node.so: cannot open shared object file: No such file or directory
[bt_navigator-11] [WARN] [1701097750.190992894] [bt_navigator]: Error occurred while doing error handling.
[bt_navigator-11] [FATAL] [1701097750.191005233] [bt_navigator]: Lifecycle node bt_navigator does not have error state implemented
[lifecycle_manager-14] [ERROR] [1701097750.191474380] [lifecycle_manager_navigation]: Failed to change state for node: bt_navigator
[lifecycle_manager-14] [ERROR] [1701097750.191498721] [lifecycle_manager_navigation]: Failed to bring up all requested nodes. Aborting bringup.
[gzserver-1] [INFO] [1701097751.816048886] [intel_realsense_r200_depth_driver]: Publishing camera info to [/intel_realsense_r200_depth/camera_info]
[gzserver-1] [INFO] [1701097751.820643280] [intel_realsense_r200_depth_driver]: Publishing depth camera info to [/intel_realsense_r200_depth/depth/camera_info]
[gzserver-1] [INFO] [1701097751.821682951] [intel_realsense_r200_depth_driver]: Publishing pointcloud to [/intel_realsense_r200_depth/points]
[gzserver-1] [INFO] [1701097751.862002856] [turtlebot3_diff_drive]: Wheel pair 1 separation set to [0.287000m]
[gzserver-1] [INFO] [1701097751.862061659] [turtlebot3_diff_drive]: Wheel pair 1 diameter set to [0.066000m]
[gzserver-1] [INFO] [1701097751.863759335] [turtlebot3_diff_drive]: Subscribed to [/cmd_vel]
[gzserver-1] [INFO] [1701097751.867113172] [turtlebot3_diff_drive]: Advertise odometry on [/odom]
[gzserver-1] [INFO] [1701097751.889171940] [turtlebot3_joint_state]: Going to publish joint [wheel_left_joint]
[gzserver-1] [INFO] [1701097751.889219017] [turtlebot3_joint_state]: Going to publish joint [wheel_right_joint]
[navsat_transform_node-6] [INFO] [1701097752.886761487] [navsat_transform]: Datum (latitude, longitude, altitude) is (38.16, -122.45, 488.33)
[navsat_transform_node-6] [INFO] [1701097752.886811978] [navsat_transform]: Datum UTM coordinate is (10S, 547779.03, 4223869.69)
[navsat_transform_node-6] [INFO] [1701097752.905701416] [navsat_transform]: Corrected for magnetic declination of 0, user-specified offset of 0 and meridian convergence of 0.00588164. Transform heading factor is now 0.00438591
@xinxing-max maybe I have found a clue... The tutorial says to use navigation2_tutorials](https://github.com/ros-planning/navigation2_tutorials) package and in nav2_no_map_params.yaml, there is _nav2_are_error_codes_active_condition_btnode
Now I will try to remove it and I let you know
@Cristian-wp This problem must lie in the source code of your nav2 or the input problem of your param yaml file. If the param file you use was right without that lib plugin. One of my suggestions is that you should completely remove the binary installation of nav2. Another thing you can try is to copy the param yaml file to another file, rename it, and then load it through the launch file.
Now you have to make sure that the param file used in the launch file you launch is the one you want to load. It is possible that you have been using the default param file in opt, but the file you modified in your workspace has not even been loaded.
@xinxing-max It works, my guess was right. All the error were related to nav2_no_map_params.yaml in navigation2_tutorials](https://github.com/ros-planning/navigation2_tutorials) package. I just replace all the plugin in this file with the ones in nav2_params.yaml.
Thank you a lot for your help :)
Bug report
Required Info:
eProsima’s Fast DDS
Steps to reproduce issue
Launch file (adjust package names, etc.): This is mostly copied from the
nav2_bringup
package, I just added an XML_File for the BT_Navigator and the namespaceParams File:
Behavior Tree
Expected behavior
Nav2 Stack running in the
/robot
namespaceActual behavior
Nav2 Crashing with the following Error:
Additional information
I tried asking on
answers.ros.org
, but my question is pending moderation for some time now without anything happening... Also, this might be related to #2143