Robot won't spawn in gazebo
Hey, I try to launch different packages in gazebo and rviz, but always only the world loads in gazebo, but the robot won't spawn. I then did the nav 2 tutorial (turtlebot3) again, where you also spawn a robot, but the same problem here. Only the world loads, but no robot.
(tutorial: https://navigation.ros.org/getting_st...)
I followed the nav2 tutorial step by step.
When I try to launch the robot via this command:
ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False
this occurs:
[component_container_isolated-6] [INFO] [1679503062.403570150] [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
When I try to launch the robot via this command:
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
this occurs:
[ERROR] [spawn_entity.py-4]: process has died [pid 62901, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -entity waffle -file /opt/ros/humble/share/turtlebot3_gazebo/models/turtlebot3_waffle/model.sdf -x -2.0 -y -0.5 -z 0.01 --ros-args'].
I think the problem lies in gazebo, this is why I deleted and reinstalled it with this command: gs
sudo apt install ros-humble-gazebo-ros-pkgs
Any idea what I did wrong, or what I might have forgotten to install?
Can you start Gazebo with
gazebo --verbose
? Do you have Gazebo model path updated for TB3? Can you put a TB3 robot with lidar etc. in the empty world by hand?I can start gazebo with
gazebo --verbose
and I can place the world by hand as well as the robot. In my.bashrc
file I have this included:When i try to run
ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False
gazebo starts with the loaded world but without a robot. And in rviz only the map appears, and it shows in the GUI "Global Status : Error". After i place the robot by hand in gazebo and manually locate it in rviz with "2D Pose Estimate". The GUI shows "Global Status: Ok".Can you see any new errors during start with
gazebo --verbose
? Can you change the view to "Collisions" in the Gazebo simulation? Perhaps textures loaded incorrectly. I had similar problem with a Neobotix robot model in the simulation - no textures, but the collision boxes were there.