URDF model spawns with no link

asked 2021-08-16 03:04:18 -0500

Hey, so i've been making a package for a competition and made a custom model for an arena in Blender exported the .dae file for working in with ROS Melodic + Gazebo 9.

But the model spawns successfully but has no link. The code for the .launch file, URDF file below.

.launch file


  <!-- these are the arguments you can pass this launch file, for example paused:=true -->
  <arg name="paused" default="true"/>
  <arg name="use_sim_time" default="true"/>
  <arg name="gui" default="true"/>
  <arg name="headless" default="false"/>
  <arg name="debug" default="false"/>
  <arg name="arena" default="$(find grid3)/src/urdf/arena1.urdf"/>
  <arg name="extra_gazebo_args" default="--verbose"/>

  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="debug" value="$(arg debug)" />
    <arg name="gui" value="$(arg gui)" />
    <arg name="paused" value="$(arg paused)"/>
    <arg name="use_sim_time" value="$(arg use_sim_time)"/>
    <arg name="headless" value="$(arg headless)"/>
    <arg name="extra_gazebo_args" value="$(arg extra_gazebo_args)"/>

  <param name="arena_description" command="$(find xacro)/xacro $(arg arena)"/>

  <node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model"
        args="-urdf -z 0.0 -model arena -param arena_description" respawn="false" output="screen" />


URDF file:

<?xml version="1.0" ?>

<robot name="arena_one" xmlns:xacro="https://www.ros.org/wiki/xacro" >


  <link name="base_link">
    <visual name="visual">
         <mesh filename="package://grid3/src/mesh/Arena_ps2.dae" scale="1 1 1"/>
         <texture filename="package://grid3/src/mesh/Screenshot from 2021-07-30 15-50-19.png"/>
      <collision name="collision">
          <mesh filename="package://grid3/src/mesh/Arena_ps2.dae" scale="1 1 1"/>

Roslaunch says that the model has spawned successfully but in gazebo it doesnt seems to have any link has no link : image.

its my first time working with models of my own, thanks for your help.

edit retag flag offensive close merge delete