gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.19k stars 480 forks source link

Gazebo not drawing all polylines on canonical link #1701

Open osrf-migration opened 9 years ago

osrf-migration commented 9 years ago

Original report (archived issue) by Aaron Gokaslan (Bitbucket: Skylion007).

The original report had attachments: exported.world


I am using Polylines for geometry and Gazebo does not appear to be drawing them all but only for the root node. The same thing happens when I load the file in as a DAE, only the first geometry appears to get drawn. I have attached the SDF for further examination:

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I just tried loading that world and it references a plugin and numerous dae files. When loading the world with --verbose, I see a bunch of error messages. That's a pretty large world (over 1 MB of text). Can you submit a simpler example or explain where we should be looking?

osrf-migration commented 9 years ago

Original comment by Aaron Gokaslan (Bitbucket: Skylion007).


I think you are confusing this issue with my previous issue relating to another large file of the same name. This world file does not reference any DAE files and does reference a plugin, but the plugin is not necessary for the operation of the world.

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Right, I was testing the wrong world, but this one doesn't even load for me. Does it load for you?

[Err] [PhysicsFactory.cc:90] Invalid Physics Type[revolute]
[Err] [World.cc:261] EXCEPTION: Unable to create physics engine

[Err] [Server.cc:406] EXCEPTION: Failed to load the World
Unable to create physics engine

[Err] [Server.cc:406] EXCEPTION: Failed to load the World
Unable to create physics engine
osrf-migration commented 9 years ago

Original comment by Aaron Gokaslan (Bitbucket: Skylion007).


Woops, I appear to have mistyped my physics object. Type should equal Simbody not revolute. XD I never encountered the issue because I always launch it with "-e simbody"

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


It opens for me with ode. What is it supposed to look like?

osrf-migration commented 9 years ago

Original comment by Aaron Gokaslan (Bitbucket: Skylion007).


There isn't suppose to be a huge cavity in the middle like that. I think it might be incorrectly solving the polyline or something. There is suppose to be a giant rectangular solid in the middle in other words.

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I was able to load it one time, but I'm getting lots of Gts assertions that cause gazebo to crash and error messages about "Ignoring edge without 2 distinct vertices". Maybe there are some errors in the points you are supplying?

osrf-migration commented 9 years ago

Original comment by Aaron Gokaslan (Bitbucket: Skylion007).


I don't believe so, but I think the vertices may be within 10^-6 or closer together so it may be floating point errors.

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


This is what I see when it manages to load correctly with ODE:

issue1701ode.png

osrf-migration commented 9 years ago

Original comment by Aaron Gokaslan (Bitbucket: Skylion007).


Bizarre, it wasn't quite visible in Simbody. Maybe it was partially going through the floor or something? Regardless, the middle segment was missing entirely before

osrf-migration commented 9 years ago

Original comment by Aaron Gokaslan (Bitbucket: Skylion007).