i have created a workspace in ros2 humble in Ubuntu 22.04 and i am trying to spawn the robot in gazebo empty world using the following command:

ros2 run gazebo_ros launch spawn_entity.py -topic robot_description -entity bot_name

but i am getting the following error:

No executable found

i tried sourcing my workspace using source install/setup.bash but it didn't work

  • $\begingroup$ @ssarkar - you should probably post that as an answer $\endgroup$ Commented Feb 15 at 0:25

1 Answer 1


spawn_entity is a node, and not a launch file. If you remove the launch word from your command, it should be working fine.

So, the command should look like the following:

ros2 run gazebo_ros spawn_entity.py -topic robot_description -entity bot_name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.