Is it possible to launch a urdf file in gazebo without using xacro and clean up urdf file
I am using this launch file to launch a urdf file into gazebo. But it comes as "libGL error: failed to create drawable". What could be the problem. Is it also possible that moment of intertias of different parts being too low is causing the problem?
<launch>
<!-- these are the arguments you can pass this launch file, for example paused:=true -->
<arg name="paused" default="false"/>
<arg name="use_sim_time" default="true"/>
<arg name="gui" default="true"/>
<arg name="headless" default="false"/>
<arg name="debug" default="false"/>
<arg name="model" default="$(find firstrobot)/urdf/robot1.urdf"/>
<!-- We resume the logic in empty_world.launch, changing only the name of the world to be launched -->
<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)"/>
</include>
<param name="robot_description" command="$(find xacro)/xacro.py $(arg model)" />
<!-- push robot_description to factory and spawn robot in gazebo -->
<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model"
args="-z 1.0 -unpause -urdf -model robot -param robot_description" respawn="false" output="screen" />
<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher">
<param name="publish_frequency" type="double" value="30.0" />
</node>
</launch>
libGL errors are probably issues with your graphics drivers, and are probably unrelated to your code. I would look for a built-in gazebo example and try running that to confirm that gazebo works.
It's definitly related with the graphic drivers and it can even be that your graphic card isn't powerful enough. I have those error messages too but it doesn't prevent gazebo from running.