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

I have world file to launch then should i include my urdf of robot model inside the world too?

asked 2021-11-15 02:06:59 -0600

sidharth.jeyabal gravatar image

Actually, I'm creating a robot on my own .Now, what happened was when I launched the urdf file using the launch something like this:

<launch>
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(find 2wr)/urdf/two.xacro'" />
</launch>

The world in gazebo doesn't load with robot model. Now I was confused so I went on to add URDF of the robot into the world sdf and now robot appears in gazebo. Wrote all the that I wrote in URDF file inside this "modeL" tag.

<model name='2wr'>
<link name........
..............</model>

So my question is should we have to describe the structure of robots both in URDF as well as SDF(i.e inside the WORLD file)??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-05 10:50:47 -0600

muratkoc503 gravatar image

Do you use urdf_spawner node for robot appearing on Gazebo? If you dont use, use bottom:

<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
args="-urdf -model deneme_1 -param robot_description"/>

deneme_1: your robot name defined at urdf or .xacro

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-11-15 02:06:59 -0600

Seen: 211 times

Last updated: Nov 15 '21