Gazebo | Ignition | Community
Ask Your Question
1

I was doing exercise 2.2 from ros2 site and got error while trying to launch gazebo with turtlebot3

asked 2023-03-30 07:16:28 -0500

Nomercy gravatar image

The error is:

[spawn_entity.py-4] [ERROR] [1680177560.548042880] [spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory? [spawn_entity.py-4] [ERROR] [1680177560.548391031] [spawn_entity]: Spawn service failed. Exiting. [ERROR] [spawn_entity.py-4]: process has died [pid 21544, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py
-entity burger -file /opt/ros/humble/share/turtlebot3_gazebo/models/turtlebot3_burger/model.sdf
-x 0.0 -y 0.0 -z 0.01 --ros-args'].
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-09 18:32:19 -0500

craig gravatar image

I also had this issue, and it seems to be a bug with the launch file because the default namespace is blank, which causes the following argument to be taken as the namespace.

Try adding "namespace=:=tb3 use_namespace:=True" to the end of your launch, like:

ros2 launch nav2_bringup tb3_simulation_launch.py namespace=:=tb3 use_namespace:=True
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-03-30 07:16:28 -0500

Seen: 1,697 times

Last updated: May 09 '23