Thanks again.
Now, in the SVN the sets subdirectory is not needed.
I don't understand how the sets weren't installed (I think we just install
the whole Media directory).
Maybe you installed an "old" version of Gazebo ? The sets are relatively
new, maybe 2 weeks old.
On Jan 25, 2008 10:17 PM, Michael Sheldon <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2008-01-25 at 15:21 +0900, Jordi wrote:
> >
> > Thank you very much.
> > Now the exception is catched and a Gazebo exception is thrown. It's
> > better than a segfault but I don't know how to load a default font ...
>
> Ah sorry, I'd originally thought Gazebo was trying to load the font
> from those already installed on the system; but I now see that Gazebo
> ships with the Arial font, so that shouldn't really be an issue.
>
> I was having problems because for some reason the "Media/sets"
> directory hadn't been installed along with all the others, and the way
> the code currently is if "Media/sets" doesn't exist it'll continue the
> resource loading loop before reaching the point where the other Media
> directories are added to the ResourceGroupManager (OgreAdapter.cc, line
> 326).
>
> Cheers,
> Mike.
>
> >
> >
> > On Jan 25, 2008 9:12 AM, Michael Sheldon < [EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've been having trouble with the SVN version of Gazebo and
> > tracked it
> > down to gazebo being unable to find the Arial font; it looks
> > like
> > instead of calling:
> >
> > Ogre::Exception(Ogre::Exception::ERR_ITEM_NOT_FOUND,
> > "Could not find font " + fontName,
> > "MovableText::setFontName");
> >
> > Which just creates a new Ogre::Exception object and does
> > nothing with
> > it (leading to a segfault as it then goes on to try and load
> > the font
> > anyway). It looks like you need to be using the OGRE_EXCEPT
> > macro
> > instead for the exception to actually be raised correctly;
> > i.e.
> >
> > OGRE_EXCEPT(Ogre::Exception::ERR_ITEM_NOT_FOUND,
> > "Could not find font " + fontName,
> > "MovableText::setFontName");
> >
> > This will then display the error to the user correctly
> > (although in
> > this case it might be better to catch the exception and just
> > use the
> > default font).
> >
> > Cheers,
> > Mike.
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Playerstage-gazebo mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
> >
> >
> >
> > --
> > Jordi Polo Carres
> > Natural language processing laboratory
> > NAIST
> > http://www.bahasara.org
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________ Playerstage-gazebo
> mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
--
Jordi Polo Carres
Natural language processing laboratory
NAIST
http://www.bahasara.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo