Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open gazebo11 when run tb3_simulation_launch.py #2757

Closed
Nathan24zz opened this issue Dec 28, 2021 · 12 comments
Closed

Can't open gazebo11 when run tb3_simulation_launch.py #2757

Nathan24zz opened this issue Dec 28, 2021 · 12 comments
Labels
question Further information is requested

Comments

@Nathan24zz
Copy link

Nathan24zz commented Dec 28, 2021

OS: Ubuntu 20.04
distro: foxy

I already tried in WSL2 and Ubuntu 20.04 physically but I still got the error (the gazebo can't be opened when I run ros2 launch nav2_bringup tb3_simulation_launch.py).
The error that shows in terminal like [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist.

Screenshot (150)

Can someone give me a solution?

@SteveMacenski
Copy link
Member

Please provide full logs. Does Gazebo come up eventually? If not, you may not have properly sourcing turtlebot gazebo files and if you’re not loading gazebo, clearly there would be no odometry frame as there’s no simulation data being produced.

See the getting started guide in our documentation.

@Nathan24zz
Copy link
Author

Here is the full logs

[INFO] [launch]: All log files can be found below /home/nathan/.ros/log/2021-12-30-12-23-43-167584-nathan-5809
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [gzserver-1]: process started with pid [5811]
[INFO] [gzclient-2]: process started with pid [5813]
[INFO] [robot_state_publisher-3]: process started with pid [5815]
[INFO] [rviz2-4]: process started with pid [5817]
[INFO] [map_server-5]: process started with pid [5819]
[INFO] [amcl-6]: process started with pid [5821]
[INFO] [lifecycle_manager-7]: process started with pid [5823]
[INFO] [controller_server-8]: process started with pid [5825]
[INFO] [planner_server-9]: process started with pid [5828]
[INFO] [recoveries_server-10]: process started with pid [5831]
[INFO] [bt_navigator-11]: process started with pid [5833]
[INFO] [waypoint_follower-12]: process started with pid [5836]
[INFO] [lifecycle_manager-13]: process started with pid [5838]
[lifecycle_manager-7] [INFO] [1640841827.561925053] [lifecycle_manager_localization]: Creating
[lifecycle_manager-13] [INFO] [1640841827.562544869] [lifecycle_manager_navigation]: Creating
[robot_state_publisher-3] [WARN] [1640841827.563235234] [robot_state_publisher]: No robot_description parameter, but command-line argument available.  Assuming argument is name of URDF file.  This backwards compatibility fallback will be removed in the future.
[map_server-5] [INFO] [1640841827.784920775] [map_server]: 
[map_server-5] 	map_server lifecycle node launched. 
[map_server-5] 	Waiting on external lifecycle transitions to activate
[map_server-5] 	See https://design.ros2.org/articles/node_lifecycle.html for more information.
[map_server-5] [INFO] [1640841827.785297130] [map_server]: Creating
[bt_navigator-11] [INFO] [1640841827.789274675] [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] [1640841827.789605138] [bt_navigator]: Creating
[waypoint_follower-12] [INFO] [1640841827.789642151] [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] [1640841827.789793320] [waypoint_follower]: Creating
[recoveries_server-10] [INFO] [1640841827.796889303] [recoveries_server]: 
[recoveries_server-10] 	recoveries_server lifecycle node launched. 
[recoveries_server-10] 	Waiting on external lifecycle transitions to activate
[recoveries_server-10] 	See https://design.ros2.org/articles/node_lifecycle.html for more information.
[amcl-6] [INFO] [1640841827.797786467] [amcl]: 
[amcl-6] 	amcl lifecycle node launched. 
[amcl-6] 	Waiting on external lifecycle transitions to activate
[amcl-6] 	See https://design.ros2.org/articles/node_lifecycle.html for more information.
[amcl-6] [INFO] [1640841827.798032033] [amcl]: Creating
[planner_server-9] [INFO] [1640841827.801184927] [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.
[controller_server-8] [INFO] [1640841827.801810594] [controller_server]: 
[controller_server-8] 	controller_server lifecycle node launched. 
[controller_server-8] 	Waiting on external lifecycle transitions to activate
[controller_server-8] 	See https://design.ros2.org/articles/node_lifecycle.html for more information.
[lifecycle_manager-7] [INFO] [1640841827.833048307] [lifecycle_manager_localization]: Creating and initializing lifecycle service clients
[lifecycle_manager-13] [INFO] [1640841827.834908976] [lifecycle_manager_navigation]: Creating and initializing lifecycle service clients
[lifecycle_manager-7] [INFO] [1640841827.895971517] [lifecycle_manager_localization]: Starting managed nodes bringup...
[lifecycle_manager-7] [INFO] [1640841827.896155240] [lifecycle_manager_localization]: Configuring map_server
[map_server-5] [INFO] [1640841827.896719626] [map_server]: Configuring
[map_server-5] [INFO] [map_io]: Loading yaml file: /opt/ros/foxy/share/nav2_bringup/maps/turtlebot3_world.yaml
[robot_state_publisher-3] Parsing robot urdf xml string.
[lifecycle_manager-13] [INFO] [1640841827.903072599] [lifecycle_manager_navigation]: Starting managed nodes bringup...
[lifecycle_manager-13] [INFO] [1640841827.903241594] [lifecycle_manager_navigation]: Configuring controller_server
[robot_state_publisher-3] Link base_link had 7 children
[robot_state_publisher-3] Link camera_link had 2 children
[robot_state_publisher-3] Link camera_depth_frame had 1 children
[robot_state_publisher-3] Link camera_depth_optical_frame had 0 children
[robot_state_publisher-3] Link camera_rgb_frame had 1 children
[robot_state_publisher-3] Link camera_rgb_optical_frame had 0 children
[robot_state_publisher-3] Link caster_back_left_link had 0 children
[robot_state_publisher-3] Link caster_back_right_link had 0 children
[robot_state_publisher-3] Link imu_link had 0 children
[robot_state_publisher-3] Link base_scan had 0 children
[robot_state_publisher-3] Link wheel_left_link had 0 children
[robot_state_publisher-3] Link wheel_right_link had 0 children
[robot_state_publisher-3] [INFO] [1640841827.952714696] [robot_state_publisher]: got segment base_footprint
[robot_state_publisher-3] [INFO] [1640841827.952796277] [robot_state_publisher]: got segment base_link
[robot_state_publisher-3] [INFO] [1640841827.952808912] [robot_state_publisher]: got segment base_scan
[robot_state_publisher-3] [INFO] [1640841827.952819684] [robot_state_publisher]: got segment camera_depth_frame
[robot_state_publisher-3] [INFO] [1640841827.952830896] [robot_state_publisher]: got segment camera_depth_optical_frame
[robot_state_publisher-3] [INFO] [1640841827.952842158] [robot_state_publisher]: got segment camera_link
[robot_state_publisher-3] [INFO] [1640841827.952853140] [robot_state_publisher]: got segment camera_rgb_frame
[robot_state_publisher-3] [INFO] [1640841827.952864252] [robot_state_publisher]: got segment camera_rgb_optical_frame
[robot_state_publisher-3] [INFO] [1640841827.952875143] [robot_state_publisher]: got segment caster_back_left_link
[robot_state_publisher-3] [INFO] [1640841827.952885874] [robot_state_publisher]: got segment caster_back_right_link
[robot_state_publisher-3] [INFO] [1640841827.952903660] [robot_state_publisher]: got segment imu_link
[robot_state_publisher-3] [INFO] [1640841827.952914581] [robot_state_publisher]: got segment wheel_left_link
[robot_state_publisher-3] [INFO] [1640841827.952925773] [robot_state_publisher]: got segment wheel_right_link
[map_server-5] [DEBUG] [map_io]: resolution: 0.05
[map_server-5] [DEBUG] [map_io]: origin[0]: -10
[map_server-5] [DEBUG] [map_io]: origin[1]: -10
[map_server-5] [DEBUG] [map_io]: origin[2]: 0
[map_server-5] [DEBUG] [map_io]: free_thresh: 0.196
[map_server-5] [DEBUG] [map_io]: occupied_thresh: 0.65
[map_server-5] [DEBUG] [map_io]: mode: trinary
[map_server-5] [DEBUG] [map_io]: negate: 0
[map_server-5] [INFO] [map_io]: Loading image_file: /opt/ros/foxy/share/nav2_bringup/maps/turtlebot3_world.pgm
[planner_server-9] [INFO] [1640841828.263841431] [planner_server]: Creating
[controller_server-8] [INFO] [1640841828.268051525] [controller_server]: Creating controller server
[map_server-5] [DEBUG] [map_io]: Read map /opt/ros/foxy/share/nav2_bringup/maps/turtlebot3_world.pgm: 384 X 384 map @ 0.05 m/cell
[lifecycle_manager-7] [INFO] [1640841828.276663894] [lifecycle_manager_localization]: Configuring amcl
[amcl-6] [INFO] [1640841828.277087552] [amcl]: Configuring
[amcl-6] [INFO] [1640841828.277739972] [amcl]: initTransforms
[controller_server-8] [INFO] [1640841828.299171949] [local_costmap.local_costmap]: 
[controller_server-8] 	local_costmap lifecycle node launched. 
[controller_server-8] 	Waiting on external lifecycle transitions to activate
[controller_server-8] 	See https://design.ros2.org/articles/node_lifecycle.html for more information.
[amcl-6] [INFO] [1640841828.303069646] [amcl]: initPubSub
[planner_server-9] [INFO] [1640841828.304286993] [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.
[amcl-6] [INFO] [1640841828.307200965] [amcl]: Subscribed to map topic.
[lifecycle_manager-7] [INFO] [1640841828.311379857] [lifecycle_manager_localization]: Activating map_server
[map_server-5] [INFO] [1640841828.311690271] [map_server]: Activating
[amcl-6] [INFO] [1640841828.312432639] [amcl]: Received a 384 X 384 map @ 0.050 m/pix
[lifecycle_manager-7] [INFO] [1640841828.312515843] [lifecycle_manager_localization]: Activating amcl
[amcl-6] [INFO] [1640841828.313959217] [amcl]: Activating
[amcl-6] [WARN] [1640841828.313989978] [amcl]: Publishing the particle cloud as geometry_msgs/PoseArray msg is deprecated, will be published as nav2_msgs/ParticleCloud in the future
[lifecycle_manager-7] [INFO] [1640841828.314371052] [lifecycle_manager_localization]: Managed nodes are active
[planner_server-9] [INFO] [1640841828.380191006] [global_costmap.global_costmap]: Creating Costmap
[controller_server-8] [INFO] [1640841828.380190976] [local_costmap.local_costmap]: Creating Costmap
[controller_server-8] [INFO] [1640841828.389919121] [controller_server]: Configuring controller interface
[controller_server-8] [INFO] [1640841828.390049118] [controller_server]: Controller frequency set to 20.0000Hz
[controller_server-8] [INFO] [1640841828.390074649] [local_costmap.local_costmap]: Configuring
[controller_server-8] [INFO] [1640841828.397757781] [local_costmap.local_costmap]: Using plugin "voxel_layer"
[controller_server-8] [INFO] [1640841828.549166117] [local_costmap.local_costmap]: Subscribed to Topics: scan
[controller_server-8] [INFO] [1640841828.559968166] [local_costmap.local_costmap]: Initialized plugin "voxel_layer"
[controller_server-8] [INFO] [1640841828.560036821] [local_costmap.local_costmap]: Using plugin "inflation_layer"
[controller_server-8] [INFO] [1640841828.561698306] [local_costmap.local_costmap]: Initialized plugin "inflation_layer"
[controller_server-8] [INFO] [1640841828.593897674] [controller_server]: Created progress_checker : progress_checker of type nav2_controller::SimpleProgressChecker
[controller_server-8] [INFO] [1640841828.595625049] [controller_server]: Created goal_checker : goal_checker of type nav2_controller::SimpleGoalChecker
[controller_server-8] [INFO] [1640841828.791433898] [controller_server]: Created controller : FollowPath of type dwb_core::DWBLocalPlanner
[controller_server-8] [INFO] [1640841828.794845724] [controller_server]: Setting transform_tolerance to 0.200000
[controller_server-8] [INFO] [1640841829.079012635] [controller_server]: Using critic "RotateToGoal" (dwb_critics::RotateToGoalCritic)
[controller_server-8] [INFO] [1640841829.079988133] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.081118688] [controller_server]: Using critic "Oscillation" (dwb_critics::OscillationCritic)
[controller_server-8] [INFO] [1640841829.082207060] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.083271384] [controller_server]: Using critic "BaseObstacle" (dwb_critics::BaseObstacleCritic)
[controller_server-8] [INFO] [1640841829.084662675] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.085387288] [controller_server]: Using critic "GoalAlign" (dwb_critics::GoalAlignCritic)
[controller_server-8] [INFO] [1640841829.087200472] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.087766181] [controller_server]: Using critic "PathAlign" (dwb_critics::PathAlignCritic)
[controller_server-8] [INFO] [1640841829.088651651] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.089113775] [controller_server]: Using critic "PathDist" (dwb_critics::PathDistCritic)
[controller_server-8] [INFO] [1640841829.089872635] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.090174662] [controller_server]: Using critic "GoalDist" (dwb_critics::GoalDistCritic)
[controller_server-8] [INFO] [1640841829.091134250] [controller_server]: Critic plugin initialized
[controller_server-8] [INFO] [1640841829.091218546] [controller_server]: Controller Server has FollowPath  controllers available.
[lifecycle_manager-13] [INFO] [1640841829.153427548] [lifecycle_manager_navigation]: Configuring planner_server
[planner_server-9] [INFO] [1640841829.154110247] [planner_server]: Configuring
[planner_server-9] [INFO] [1640841829.154200115] [global_costmap.global_costmap]: Configuring
[planner_server-9] [INFO] [1640841829.162629701] [global_costmap.global_costmap]: Using plugin "static_layer"
[planner_server-9] [INFO] [1640841829.166854022] [global_costmap.global_costmap]: Subscribing to the map topic (/map) with transient local durability
[planner_server-9] [INFO] [1640841829.168831422] [global_costmap.global_costmap]: Initialized plugin "static_layer"
[planner_server-9] [INFO] [1640841829.168950317] [global_costmap.global_costmap]: Using plugin "obstacle_layer"
[planner_server-9] [INFO] [1640841829.169979673] [global_costmap.global_costmap]: Subscribed to Topics: scan
[planner_server-9] [INFO] [1640841829.176429815] [global_costmap.global_costmap]: Initialized plugin "obstacle_layer"
[planner_server-9] [INFO] [1640841829.176518570] [global_costmap.global_costmap]: Using plugin "inflation_layer"
[planner_server-9] [INFO] [1640841829.177997855] [global_costmap.global_costmap]: Initialized plugin "inflation_layer"
[planner_server-9] [INFO] [1640841829.180440304] [global_costmap.global_costmap]: StaticLayer: Resizing costmap to 384 X 384 at 0.050000 m/pix
[planner_server-9] [INFO] [1640841829.223424556] [planner_server]: Created global planner plugin GridBased of type nav2_navfn_planner/NavfnPlanner
[planner_server-9] [INFO] [1640841829.223598300] [planner_server]: Configuring plugin GridBased of type NavfnPlanner
[planner_server-9] [INFO] [1640841829.239738701] [planner_server]: Planner Server has GridBased  planners available.
[lifecycle_manager-13] [INFO] [1640841829.253130377] [lifecycle_manager_navigation]: Configuring recoveries_server
[recoveries_server-10] [INFO] [1640841829.253679963] [recoveries_server]: Configuring
[recoveries_server-10] [INFO] [1640841829.263926482] [recoveries_server]: Creating recovery plugin spin of type nav2_recoveries/Spin
[recoveries_server-10] [INFO] [1640841829.279258864] [recoveries_server]: Configuring spin
[recoveries_server-10] [INFO] [1640841829.288842973] [recoveries_server]: Creating recovery plugin back_up of type nav2_recoveries/BackUp
[recoveries_server-10] [INFO] [1640841829.291692286] [recoveries_server]: Configuring back_up
[recoveries_server-10] [INFO] [1640841829.300011815] [recoveries_server]: Creating recovery plugin wait of type nav2_recoveries/Wait
[recoveries_server-10] [INFO] [1640841829.302659249] [recoveries_server]: Configuring wait
[lifecycle_manager-13] [INFO] [1640841829.310023949] [lifecycle_manager_navigation]: Configuring bt_navigator
[bt_navigator-11] [INFO] [1640841829.310676600] [bt_navigator]: Configuring
[bt_navigator-11] [INFO] [1640841829.597956982] [bt_navigator_rclcpp_node]: Waiting for "compute_path_to_pose" action server
[bt_navigator-11] [INFO] [1640841829.598590765] [bt_navigator_rclcpp_node]: "ComputePathToPose" BtActionNode initialized
[bt_navigator-11] [INFO] [1640841829.600622753] [bt_navigator_rclcpp_node]: Waiting for "global_costmap/clear_entirely_global_costmap" service
[bt_navigator-11] [INFO] [1640841829.601038565] [bt_navigator_rclcpp_node]: "ClearGlobalCostmap-Context" BtServiceNode initialized
[bt_navigator-11] [INFO] [1640841829.608660243] [bt_navigator_rclcpp_node]: Waiting for "follow_path" action server
[bt_navigator-11] [INFO] [1640841829.609074853] [bt_navigator_rclcpp_node]: "FollowPath" BtActionNode initialized
[bt_navigator-11] [INFO] [1640841829.610593104] [bt_navigator_rclcpp_node]: Waiting for "local_costmap/clear_entirely_local_costmap" service
[bt_navigator-11] [INFO] [1640841829.610962755] [bt_navigator_rclcpp_node]: "ClearLocalCostmap-Context" BtServiceNode initialized
[bt_navigator-11] [INFO] [1640841829.612673367] [bt_navigator_rclcpp_node]: Waiting for "local_costmap/clear_entirely_local_costmap" service
[bt_navigator-11] [INFO] [1640841829.613037227] [bt_navigator_rclcpp_node]: "ClearLocalCostmap-Subtree" BtServiceNode initialized
[bt_navigator-11] [INFO] [1640841829.614393438] [bt_navigator_rclcpp_node]: Waiting for "global_costmap/clear_entirely_global_costmap" service
[bt_navigator-11] [INFO] [1640841829.614820953] [bt_navigator_rclcpp_node]: "ClearGlobalCostmap-Subtree" BtServiceNode initialized
[bt_navigator-11] [INFO] [1640841829.621920971] [bt_navigator_rclcpp_node]: Waiting for "spin" action server
[bt_navigator-11] [INFO] [1640841829.622204672] [bt_navigator_rclcpp_node]: "Spin" BtActionNode initialized
[bt_navigator-11] [INFO] [1640841829.629491388] [bt_navigator_rclcpp_node]: Waiting for "wait" action server
[bt_navigator-11] [INFO] [1640841829.629752163] [bt_navigator_rclcpp_node]: "Wait" BtActionNode initialized
[lifecycle_manager-13] [INFO] [1640841829.632222487] [lifecycle_manager_navigation]: Configuring waypoint_follower
[waypoint_follower-12] [INFO] [1640841829.632719149] [waypoint_follower]: Configuring
[lifecycle_manager-13] [INFO] [1640841829.661836957] [lifecycle_manager_navigation]: Activating controller_server
[controller_server-8] [INFO] [1640841829.662095098] [controller_server]: Activating
[controller_server-8] [INFO] [1640841829.662141109] [local_costmap.local_costmap]: Activating
[controller_server-8] [INFO] [1640841829.662157100] [local_costmap.local_costmap]: Checking transform
[controller_server-8] [INFO] [1640841829.662197380] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[rviz2-4] [INFO] [1640841829.824019243] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-4] [INFO] [1640841829.824248656] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-4] [INFO] [1640841829.980230793] [rviz2]: Stereo is NOT SUPPORTED
[controller_server-8] [INFO] [1640841830.162408707] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[controller_server-8] [INFO] [1640841830.662780552] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[rviz2-4] [WARN] [1640841830.977325203] [rcl.logging_rosout]: Publisher already registered for provided node name. If this is due to multiple nodes with the same name then all logs for that logger name will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[rviz2-4] [WARN] [1640841830.991153769] [rcl.logging_rosout]: Publisher already registered for provided node name. If this is due to multiple nodes with the same name then all logs for that logger name will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[rviz2-4] [WARN] [1640841831.002699644] [rcl.logging_rosout]: Publisher already registered for provided node name. If this is due to multiple nodes with the same name then all logs for that logger name will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[rviz2-4] [INFO] [1640841831.071497353] [rviz2]: Waiting for the lifecycle_manager_navigation/is_active service...
[rviz2-4] [INFO] [1640841831.071730063] [rviz2]: Sending lifecycle_manager_navigation/is_active request
[rviz2-4] [INFO] [1640841831.072052651] [rviz2]: Trying to create a map of size 384 x 384 using 1 swatches
[controller_server-8] [INFO] [1640841831.162343094] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[controller_server-8] [INFO] [1640841831.662303791] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[rviz2-4] [INFO] [1640841832.071985925] [rviz2]: Waiting for the lifecycle_manager_navigation/is_active service...
[rviz2-4] [INFO] [1640841832.072219196] [rviz2]: Sending lifecycle_manager_navigation/is_active request
[controller_server-8] [INFO] [1640841832.162348361] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[controller_server-8] [INFO] [1640841832.662388353] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[rviz2-4] [INFO] [1640841833.072465213] [rviz2]: Waiting for the lifecycle_manager_navigation/is_active service...
[rviz2-4] [INFO] [1640841833.072671621] [rviz2]: Sending lifecycle_manager_navigation/is_active request
[controller_server-8] [INFO] [1640841833.162310980] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[controller_server-8] [INFO] [1640841833.662333023] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[rviz2-4] [INFO] [1640841834.072972630] [rviz2]: Waiting for the lifecycle_manager_navigation/is_active service...
[rviz2-4] [INFO] [1640841834.073227153] [rviz2]: Sending lifecycle_manager_navigation/is_active request
[controller_server-8] [INFO] [1640841834.162285066] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[controller_server-8] [INFO] [1640841834.662303098] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[rviz2-4] [INFO] [1640841835.073630071] [rviz2]: Waiting for the lifecycle_manager_navigation/is_active service...
[rviz2-4] [INFO] [1640841835.073874284] [rviz2]: Sending lifecycle_manager_navigation/is_active request
[controller_server-8] [INFO] [1640841835.162388374] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist
[controller_server-8] [INFO] [1640841835.662288614] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist

After that it keep repeating print local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist

@Nathan24zz
Copy link
Author

the gazebo does not come up, just stuck like this:
Screenshot from 2021-12-30 12-28-17

And for sourcing turtlebot gazebo, i just need export TURTLEBOT3_MODEL and export GAZEBO_MODEL_PATH isn't it? Or there is anything else that i forgot?

@SteveMacenski
Copy link
Member

SteveMacenski commented Jan 3, 2022

Please refer to TB3 docs if using their resources, I can't give specific advice on that platform, but I have the following in the bashrc to get the models. It does take a couple of minutes to come up sometime, but eventually spawns if everything is properly installed / working. You may want to try running gazebo with --verbose flags to see what it might be having issue with.

export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/path/to/turtlebot3_simulations/turtlebot3_gazebo/models

If gazebo isn't coming up, that's the issue, its not in Nav2. The gazebo model isn't coming up, therefore there is no odometry or sensor data being produced, therefore Nav2 is rightfully complaining that it's not getting the info required to operate.

@SteveMacenski SteveMacenski added the question Further information is requested label Jan 3, 2022
@Nathan24zz
Copy link
Author

I already follow your instruction and if I run the gazebo independently, it works. For example, here I run worlds/pioneer2dx.world like a tutorial in gazebo.
Screenshot from 2022-01-05 17-50-26
But when running ros2 launch nav2_bringup tb3_simulation_launch.py, it still produces the same error and the gazebo doesn't show up just like before.

@SteveMacenski
Copy link
Member

Please ask on ROS Answers or review documentation, we cannot reproduce this issue and it is well documented how to work with gazebo / ROS 2. This issue isn't related to Nav2.

@derkaputte
Copy link

@Nathan24zz Did you manage it? I've the same issue.
I think I have to reinstall my machine from beginning.

@ljjhome
Copy link

ljjhome commented Apr 28, 2022

I run into the same issue probably, here is how i solve it, though it may not be the same problem as you, but let us have a try

  1. look at the pic below, it is from tb3_simulation_launch.py
    image
    it runs a gzserver, in my case it is this cmd block the whole process.
    so open a new terminal, and run "gzserver --verbose -s libgazebo_ros_init.so -s libgazebo_ros_factory.so <waffle.modle file>"
    then if you see it tells you to wait for gazebo models to be downloaded, then it is the problem.

just download the gazebo models from github, then install them, and export the path to environment variables. then you can successfully run gzserver, and the gzclient will be ok as well.

but there is still a problem in the waffle model file, it is not properly checked. just modify it like you want it to be.

@jingle
Copy link

jingle commented Jun 18, 2022

RUN

. /usr/share/gazebo/setup.bash

BEFORE

export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/<ros2-distro>/share/turtlebot3_gazebo/models

will init gazebo successfully, just FYI

@rageorgi
Copy link

Just sharing my experience, but waiting for around 8-10 minutes after following the instructions (https://navigation.ros.org/getting_started/index.html#running-the-example) works for me.

@tsadarsh
Copy link

Waiting for 5-10 minutes loads up the models and then the Gazebo starts up as intended.

@gnap114039
Copy link

gnap114039 commented Nov 3, 2022

RUN

. /usr/share/gazebo/setup.bash

BEFORE

export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/<ros2-distro>/share/turtlebot3_gazebo/models

will init gazebo successfully, just FYI

This solve my problem on ros2 humble.
Before source "/usr/share/gazebo/setup.bash", running the following command which from the nav2 instruction https://navigation.ros.org/getting_started/index.html#running-the-example

ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False 

will always getting the ' Invalid frame ID "odom" ' error:

[component_container_isolated-5] [INFO] [1667483986.201120372] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist

FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

8 participants