What is the correct way to import a mesh file in a world for use with roslaunch

asked 2020-11-19 00:26:23 -0600

shlock gravatar image

Hello, I want to use a mesh file that we created in solidworks and converted to dae in a world file as a static environment. I am able to launch it directly with gazebo but not using a launch file. image description

My world file -

<?xml version="1.0"?>
<sdf version="1.4">
  <world name="default">

    <model name="hotel">
      <pose>0 0 2.2 0 0 0</pose>
      <link name="hotel">
        <visual name="visual">

But when launching it through ros It is not displayed and as soon as I click on the link it closes image description

with the following error in verbose -

[ INFO] [1605766682.012849903, 0.009000000]: Physics dynamic reconfigure ready.
gzclient: /build/ogre-1.9-B6QkmW/ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgreAxisAlignedBox.h:252: void Ogre::AxisAlignedBox::setExtents(const Ogre::Vector3&, const Ogre::Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.
Aborted (core dumped)

I'm a beginner at ros and gazebo and I can't figure out how to use our required world. Can anyone help me out with setting a launch file to use our custom mesh file? thanks.

edit retag flag offensive close merge delete