From: Luis M. <lui...@gm...> - 2010-01-13 19:35:54
|
He is probably installing using the root user in a way that $HOME is set to /root. Anyway, creating the file in the home directory when gazebo is being installed is not the right way to go because this kind of thing happens. I think there are two good options to the current approach: a) Copying the file to a public directory: For example /usr/local/share/gazebo/defaultrc. That way, gazebo would look in $HOME/.gazeborc and, if it does not exist, it would copy the file from /usr/local/share/gazebo/defaultrc to $HOME/.gazeborc. b) Generating the file at run time: As I do in the patch a sent with the mail. However, in order to apply the patch to the repository it should be slightly changed as I assume on it that the instalation path is /usr/local (users can set it to any other path). On Wed, Jan 13, 2010 at 8:04 PM, Nate Koenig <nat...@gm...> wrote: > I'm curious as to why a ~/.gazeborc is not automatically generated > when you install gazebo. > > Are you running make install? > > -nate > > On Wed, Jan 13, 2010 at 10:02 AM, Luis Manso <lui...@gm...> wrote: > > Now that Nate committed changes in the current version you can just > remove > > the old source and fetch it again. In order to compile the source you > will > > probably need to apply the patch I sent five minutes ago. I do not think > it > > really matters if you had previous versions of gazebo installed. > > > > I tested the last version with the patch and works. > > > > On Wed, Jan 13, 2010 at 6:54 PM, pt523 <pi...@gm...> wrote: > > > >> > >> Thank you again for your kindly help. > >> > >> Can I ask you a bit more? I've run the command you advised but I'm not > >> quite > >> sure what I have to do with it. Do I have to clean the one that I've > >> already > >> installed and build the new one that I've just downloaded? or what I > have > >> to > >> do? > >> > >> > >> > >> Luis Manso wrote: > >> > > >> > I am glad it solved the problem. > >> > > >> > About the new problem... Are you using the last version from the SVN > >> > repository? Maybe that specific version is not working right. For my > >> > research I am using version 8335. You can fetch that version with the > >> > following command: > >> > svn -r 8335 co > >> > > >> > https://playerstage.svn.sourceforge.net/svnroot/playerstage/code/gazebo/trunk > >> > gazebo > >> > > >> > On Wed, Jan 13, 2010 at 1:22 PM, pt523 <pi...@gm...> wrote: > >> > > >> >> > >> >> Thank you very much for all your help. Your patch really solves the > >> >> problem > >> >> : > >> >> ) > >> >> > >> >> However I got a new problem. Now I can run only 3 world files > >> >> (factory.world, light.world and simpleshape.world ). I got different > >> >> errors > >> >> when running any other world files. Here are some examples. > >> >> > >> >> Running test.world / I get > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> creating /tmp/gazebo-root-0 > >> >> found a pid file: pid=1085 > >> >> The gazebo process is not alive. > >> >> creating /tmp/gazebo-root-0/simulation.default 112 144496 > >> >> creating /tmp/gazebo-root-0/position.position_iface_0 112 228 > >> >> creating /tmp/gazebo-root-0/laser.laser_iface_0 112 12444 > >> >> creating /tmp/gazebo-root-0/fiducial.fiducial_iface_0 112 20932 > >> >> Segmentation fault > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> > >> >> Running pioneer2at.world / I get > >> >> ---------------------------------------------------------------- > >> >> creating /tmp/gazebo-root-0 > >> >> found a pid file: pid=1088 > >> >> The gazebo process is not alive. > >> >> creating /tmp/gazebo-root-0/simulation.default 112 144496 > >> >> creating /tmp/gazebo-root-0/position.position_iface_0 112 228 > >> >> Segmentation fault > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> > >> >> Running pioneer2dx.world / I get > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> creating /tmp/gazebo-root-0 > >> >> found a pid file: pid=1093 > >> >> The gazebo process is not alive. > >> >> creating /tmp/gazebo-root-0/simulation.default 112 144496 > >> >> creating /tmp/gazebo-root-0/position.position_iface_0 112 228 > >> >> creating /tmp/gazebo-root-0/laser.laser_iface_0 112 12444 > >> >> creating /tmp/gazebo-root-0/fiducial.fiducial_iface_0 112 20932 > >> >> Segmentation fault > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> > >> >> I've also checked direct rendering on my graphic card and it says > "Yes". > >> >> > >> >> and below is the output I got from backtrace > >> >> > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> > >> >> (gdb) run pioneer2at.world > >> >> Starting program: /usr/local/bin/gazebo pioneer2at.world > >> >> [Thread debugging using libthread_db enabled] > >> >> Gazebo multi-robot simulator, version 0.8-pre3 > >> >> > >> >> Part of the Player/Stage Project [http://playerstage.sourceforge.net > ]. > >> >> Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors. > >> >> Released under the GNU General Public License. > >> >> > >> >> [server/GazeboConfig.cc:101] > >> >> Gazebo Path[/usr/local/share/gazebo] > >> >> [server/GazeboConfig.cc:109] > >> >> Ogre Path[/usr/local/lib/OGRE] > >> >> creating /tmp/gazebo-root-0 > >> >> found a pid file: pid=1153 > >> >> The gazebo process is not alive. > >> >> creating /tmp/gazebo-root-0/simulation.default 112 144496 > >> >> creating /tmp/gazebo-root-0/position.position_iface_0 112 228 > >> >> > >> >> Program received signal SIGSEGV, Segmentation fault. > >> >> 0x009ff006 in memcpy () from /lib/tls/i686/cmov/libc.so.6 > >> >> (gdb) bt > >> >> #0 0x009ff006 in memcpy () from /lib/tls/i686/cmov/libc.so.6 > >> >> #1 0x00000002 in ?? () > >> >> #2 0x03d62867 in vbo_split_copy () from /usr/lib/dri/r300_dri.so > >> >> #3 0x03d61e2f in vbo_split_prims () from /usr/lib/dri/r300_dri.so > >> >> #4 0x03d69851 in _tnl_draw_prims () from /usr/lib/dri/r300_dri.so > >> >> #5 0x03d6a4c9 in _tnl_vbo_draw_prims () from > /usr/lib/dri/r300_dri.so > >> >> #6 0x03d600f0 in ?? () from /usr/lib/dri/r300_dri.so > >> >> #7 0x03d601ae in ?? () from /usr/lib/dri/r300_dri.so > >> >> #8 0x03d579ae in ?? () from /usr/lib/dri/r300_dri.so > >> >> #9 0x01369b60 in Ogre::GLRenderSystem::_render (this=0x81b1280, > op=...) > >> >> at OgreGLRenderSystem.cpp:2416 > >> >> #10 0x0035fb9f in Ogre::SceneManager::renderSingleObject > >> (this=0x8534680, > >> >> rend=0x8a80bd0, pass=0x8a80fc0, doLightIteration=false, > >> >> manualLightList=0xbffff180) at OgreSceneManager.cpp:2864 > >> >> #11 0x003569c1 in > >> >> Ogre::SceneManager::SceneMgrQueuedRenderableVisitor::visit > >> >> ( > >> >> this=0x853d0a4, r=0x8a80bd0) at OgreSceneManager.cpp:2382 > >> >> #12 0x00328f31 in > Ogre::QueuedRenderableCollection::acceptVisitorGrouped > >> >> ( > >> >> this=0x8525aa8, visitor=0x853d0a4) > >> >> at OgreRenderQueueSortingGrouping.cpp:411 > >> >> #13 0x0032940e in Ogre::QueuedRenderableCollection::acceptVisitor ( > >> >> this=0xbfffe284, visitor=0x853d0a4, om=0) > >> >> at OgreRenderQueueSortingGrouping.cpp:379 > >> >> #14 0x00358f51 in Ogre::SceneManager::renderObjects (this=0x8534680, > >> >> objs=..., > >> >> om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP, > >> >> doLightIteration=false, manualLightList=0xbffff180) > >> >> at OgreSceneManager.cpp:2470 > >> >> #15 0x0035bd04 in > >> >> Ogre::SceneManager::renderAdditiveStencilShadowedQueueGroupObjects > >> >> (this=0x8534680, pGroup=0x8b43b58, > >> >> om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP) > >> >> at OgreSceneManager.cpp:1899 > >> >> #16 0x00358813 in Ogre::SceneManager::_renderQueueGroupObjects ( > >> >> this=0x8534680, pGroup=0x8b43b58, > >> >> om=Ogre::QueuedRenderableCollection::OM_PASS_GROUP) > >> >> at OgreSceneManager.cpp:2484 > >> >> #17 0x003597d2 in > >> Ogre::SceneManager::renderVisibleObjectsDefaultSequence > >> >> ( > >> >> this=0x8534680) at OgreSceneManager.cpp:1860 > >> >> #18 0x0035996d in Ogre::SceneManager::_renderVisibleObjects > >> >> (this=0x8534680) > >> >> at OgreSceneManager.cpp:1782 > >> >> #19 0x00359eef in Ogre::SceneManager::_renderScene (this=0x8534680, > >> >> camera=0x8a3e640, vp=0x8a2e908, includeOverlays=true) > >> >> at OgreSceneManager.cpp:1277 > >> >> #20 0x001e721e in Ogre::Camera::_renderScene (this=0x8a3e640, > >> >> vp=0x8a2e908, > >> >> includeOverlays=<value optimized out>) at OgreCamera.cpp:397 > >> >> #21 0x003d0d30 in Ogre::Viewport::update (this=0x0) at > >> >> OgreViewport.cpp:195 > >> >> #22 0x00332bed in Ogre::RenderTarget::update (this=0x86c39a0) > >> >> at OgreRenderTarget.cpp:111 > >> >> #23 0x00336959 in Ogre::RenderWindow::update (this=0x86c39a0, > swap=true) > >> >> at OgreRenderWindow.cpp:73 > >> >> #24 0x003368dc in Ogre::RenderWindow::update (this=0x86c39a0) > >> >> at OgreRenderWindow.cpp:67 > >> >> #25 0x080e3648 in gazebo::OgreAdaptor::UpdateWindow (this=0x81a80c0, > >> >> window=0x86c39a0, camera=0x86c3808) at > >> >> server/rendering/OgreAdaptor.cc:459 > >> >> #26 0x080fa790 in gazebo::UserCamera::Update (this=0x86c3808) > >> >> at server/rendering/UserCamera.cc:86 > >> >> #27 0x08119771 in gazebo::GLWindow::Update (this=0x85250e0) > >> >> at server/gui/GLWindow.cc:143 > >> >> #28 0x081209ae in gazebo::GLFrame::Update (this=0x81cd808) > >> >> at server/gui/GLFrame.cc:134 > >> >> #29 0x0811e62e in gazebo::GLFrameManager::Update (this=0x81ccf70) > >> >> at server/gui/GLFrameManager.cc:188 > >> >> #30 0x08118551 in gazebo::Gui::Update (this=0x81c2a10) at > >> >> server/gui/Gui.cc:145 > >> >> #31 0x0813d099 in gazebo::Simulator::MainLoop (this=0x8190710) > >> >> at server/Simulator.cc:329 > >> >> #32 0x08122ec5 in main (argc=2, argv=0xbffff784) at > server/main.cc:293 > >> >> > >> >> > >> > --------------------------------------------------------------------------------------------------------------- > >> >> > >> >> Any idea? > >> >> -- > >> >> View this message in context: > >> >> > >> > http://old.nabble.com/Problem-of-%7E-.gazeborc-file-tp27026907p27144039.html > >> >> Sent from the playerstage-gazebo mailing list archive at Nabble.com. > >> >> > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> This SF.Net email is sponsored by the Verizon Developer Community > >> >> Take advantage of Verizon's best-in-class app development support > >> >> A streamlined, 14 day to market process makes app distribution fast > and > >> >> easy > >> >> Join now and get one step closer to millions of Verizon customers > >> >> http://p.sf.net/sfu/verizon-dev2dev > >> >> _______________________________________________ > >> >> Playerstage-gazebo mailing list > >> >> Pla...@li... > >> >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > This SF.Net email is sponsored by the Verizon Developer Community > >> > Take advantage of Verizon's best-in-class app development support > >> > A streamlined, 14 day to market process makes app distribution fast > and > >> > easy > >> > Join now and get one step closer to millions of Verizon customers > >> > http://p.sf.net/sfu/verizon-dev2dev > >> > _______________________________________________ > >> > Playerstage-gazebo mailing list > >> > Pla...@li... > >> > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Problem-of-%7E-.gazeborc-file-tp27026907p27148788.html > >> Sent from the playerstage-gazebo mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.Net email is sponsored by the Verizon Developer Community > >> Take advantage of Verizon's best-in-class app development support > >> A streamlined, 14 day to market process makes app distribution fast and > >> easy > >> Join now and get one step closer to millions of Verizon customers > >> http://p.sf.net/sfu/verizon-dev2dev > >> _______________________________________________ > >> Playerstage-gazebo mailing list > >> Pla...@li... > >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > >> > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer Community > > Take advantage of Verizon's best-in-class app development support > > A streamlined, 14 day to market process makes app distribution fast and > easy > > Join now and get one step closer to millions of Verizon customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > > Playerstage-gazebo mailing list > > Pla...@li... > > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Playerstage-gazebo mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > |