0
$\begingroup$

Gazebo Answers logo

Good day, Gazebo people.

I'm a Gazebo beginner. I started using Gazebo less than two weeks ago and I've been reading Gazebo's tutorials, but I don't understand this problem:

When I try to import a svg file that I created with Inkscape, a message appears:

Invalid file No paths found on file "/home/user/Desktop/my_chassis.svg" Please select another file.

I don't know why this message appears, because the 2D chassis I created and the 2D tutorial chassis are very similar. I don't know if I'm doing something wrong. Here is the simple 2D chassis I've created:

image description

Another problem I have is that I successfully import my 2D wheel, but the program goes crazy. Here is my 2D wheel

image description

and here is the Gazebo's extrude link window

image description

As you can see, it has no similitude with original picture. I clicked the Ok button, but this message about render engine OGRE appears:

Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::InvalidParametersException' what(): OGRE EXCEPTION(2:InvalidParametersException): Object index out of bounds. in SceneNode::getAttachedObject at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreSceneNode.cpp (line 160)

I hope you can help me with these problems. Thank you.

===================================================================================================

Good day.

Thank you, nkoening and hugomatic, for answering my questions. I finally get my chassis import, but I've got more problems:

  1. Gazebo doesn't recognize my chassis correctly. It shows this window:

image description

  1. When I try to extrude the tutorial chassis, it generates an OGRE and a Qt exception and closes Gazebo automatically:

image description

Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Ogre::InvalidParametersException' what(): OGRE EXCEPTION(2:InvalidParametersException): Object index out of bounds. in SceneNode::getAttachedObject at /build/buildd/ogre-1.8-1.8.1+dfsg/OgreMain/src/OgreSceneNode.cpp (line 160)

Thank you in advance.


Originally posted by Adri on Gazebo Answers with karma: 3 on 2015-09-23

Post score: 0

$\endgroup$

2 Answers 2

0
$\begingroup$

Gazebo Answers logo

Your chassis is most likely not an SVG path. In inkscape:

  1. Select the shape
  2. Go to the "Path" menu
  3. Select "Object to Path"
  4. Save and load into gazebo.

Your second question will be easier to debug if you can post the original SVG file.


Originally posted by nkoenig with karma: 7676 on 2015-09-23

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$
0
$\begingroup$

Gazebo Answers logo

The SVG import only works on SVG paths. It also assumes that path sections don't cross each other. Paths don't have to be closed: a contour can be made of multiple paths.

Also, the importer does not support SVG transforms yet. If the string "transform" appears in your SVG file, try to remove it, tweak the image with the SVG editor, and save it again.

Attaching the SVG file is a good idea, because there are multiple ways to generate the same geometry with SVG.


Originally posted by hugomatic with karma: 116 on 2015-09-23

This answer was NOT ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.