how to create launch file for my .urdf file and open it in gazebo
i have created a .urdf file of simple robo model inside src/my_robo/urdf but i don't knw how to open it in gazebo , i need it to open using roslaunch
Asked by rukn on 2018-07-08 02:26:26 UTC
Answers
For this you can use the spawn_model script from the gazebo_ros package. Assuming you have Gazebo already opened and "my_robo" is a package in your catkin workspace, you can use a script similar to this:
<?xml version="1.0"?>
<launch>
<param name="robot_description" command="cat '$(find my_robo)/urdf/robot.urdf'" />
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param /robot_description -urdf -model robot" />
</launch>
Asked by Raskkii on 2018-07-09 01:50:05 UTC
Comments
doesn't work for me
Asked by Robot_Enthusiast on 2021-09-26 19:24:37 UTC
Comments