Hello!
I'm using the SVN Gazebo with OGRE rendering and I'm trying to build
some models using triangle meshes. this is what i have in the
constructor of the model:
dTriMeshDataID idTrimeshData = dGeomTriMeshDataCreate();
dGeomTriMeshDataBuildSingle(idTrimeshData, &Vertices[0], 3 *
sizeof(float), VertexCount, (int*)&Indices[0], IndexCount, 3 *
sizeof(int));
dGeomID gID= dCreateTriMesh( this->body->spaceId,idTrimeshData,
NULL, NULL, NULL);
dMassSetTrimesh(&this->mass, 1, gID);
When I'm trying to run Gazebo with this model, even with a simple
trimesh (like a cube) I get this:
ODE Message 2: mass must be > 0 in dMassCheck() File mass.cpp Line 44
ODE Message 2: vector has zero size in dNormalize4() File
odemath.cpp Line 129
gazebo: ../../OgreMain/include/OgreAxisAlignedBox.h:240: 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
The only thing I found about this assertion was this saying that this is
a bug of Frustum bounding box,
http://www.ogre3d.org/phpBB2/viewtopic.php?p=212544&sid=e0129ba40fdae6dd76c203c3fe680089
<http://www.ogre3d.org/phpBB2/viewtopic.php?p=212544&sid=e0129ba40fdae6dd76c203c3fe680089>
so I updated my OGRE using CVS. It fixed the crash in the OGRE samples,
but I'm still getting the same result in Gazebo.
I'm wondering if it has anything to do with Gazebo or this is just an
OGRE bug.
Mihai
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo