ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Hi I'm new to ros, I followed a tutorial from The Construct. When i tried to launch gazebo it is showing errors. Please help.

asked 2021-06-05 04:27:41 -0500

sudiv gravatar image

updated 2021-06-06 04:25:28 -0500

when used roslaunch m2wr_description spawn.launch the error:

ERROR: cannot launch node of type [gazebo_ros/spwan_model]: Cannot locate node of type [spwan_model] in package [gazebo_ros]. Make sure file exists in package path and permission is set to executable (chmod +x)

when tried rospack find gazebo_ros it returned /opt/ros/noetic/share/gazebo_ros . In gazebo_ros I couldn't find spawn_model.

when used roslaunch m2wr_description spawn.launch the error:

ERROR: cannot launch node of type [gazebo_ros/spwan_model]: Cannot locate node of type [spwan_model] in package [gazebo_ros]. Make sure file exists in package path and permission is set to executable (chmod +x)

when tried rospack find gazebo_ros it returned /opt/ros/noetic/share/gazebo_ros . In gazebo_ros I couldn't find spawn_model.

edit retag flag offensive close merge delete

Comments

1

What tutorial?

jayess gravatar image jayess  ( 2021-06-06 15:57:41 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2021-06-07 01:06:26 -0500

mgruhler gravatar image

There is a typo in the launch file. The node is called spawn_model, the error says spwan_model. I assume you've created the launch file yourself. If you've copy-pasted the contents, you should probably let The Construct know they have a faulty tutorial.

Also note that the executable is in /opt/ros/noetic/lib/gazebo_ros/. In share there are no headers, libs or executables (usually). There are configs (e.g. cmake, ROS config), launch files, etc.

edit flag offensive delete link more

Comments

Thank you for your response...the problem is solved. I've corrected the typo.

sudiv gravatar image sudiv  ( 2021-06-07 02:31:51 -0500 )edit

@sudiv if this solved your problem, then please mark the answer as correct by clicking on the checkmark to the left of the question

jayess gravatar image jayess  ( 2021-06-07 16:10:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-06-05 04:27:41 -0500

Seen: 116 times

Last updated: Jun 07 '21