From: Yuan X. <xu...@in...> - 2009-01-14 14:36:25
|
Hi all, I tried to install the current svn version simspark in my laptop, but I faced a problem due to the separated packages, the FileServer::LocateResource function can not search file in both 'simspark' and 'rcssserver3d' directory. I have to copy all the files together... I hope someone can fix this. -- Sincerely, Xu Yuan Institute of Informatics, Humboldt University Berlin -------------------------------------------------- |
From: Hedayat V. <hed...@ai...> - 2009-01-21 08:37:12
|
Hi Yuan, Thank you for this. I think the problem is solved now. :) Good luck Hedayat /*"Yuan Xu" <xu...@in...>*/ wrote on ۰۹/۰۱/۱۴ 06:06:17: > Hi all, > > I tried to install the current svn version simspark in my laptop, > but I faced a problem due to the separated packages, > the FileServer::LocateResource function can not search file in both > 'simspark' and 'rcssserver3d' directory. > I have to copy all the files together... I hope someone can fix this. > > |
From: Yuan Xu <xu...@in...> - 2009-01-21 10:11:50
|
Hi Hedayat, Thanks, but it still doesn't work for me: (FileServer::OpenResource) Cannot locate file 'simspark.rb' (SimulationServer) SimControlNode 'InputControl' not found It seems that it doesn't search the rcssserver3d installed directory. And I noticed that some .rb files are loaded from the installed directory (/usr/local/simspark) but some others are loaded form my home directory (/home/xy/.simspark) what is the rule to locate the resource files? and when are the files installed in my home directory. I think it doesn't match the regular Linux rule. (ScriptServer) Running /usr/local/share/simspark//zeitgeist.rb... (ScriptServer) updating cached script variables (ScriptServer) Script ended OK /usr/local/share/simspark//zeitgeist.rb (ScriptServer) Running /usr/local/share/simspark//oxygen.rb... (ScriptServer) updating cached script variables (ScriptServer) Script ended OK /usr/local/share/simspark//oxygen.rb (ScriptServer) Running /home/xy/.simspark/kerosin.rb... (ScriptServer) updating cached script variables (ScriptServer) Script ended OK /home/xy/.simspark/kerosin.rb (ScriptServer) Running /usr/local/share/simspark//spark.rb... 2009/1/21 Hedayat Vatankhah <hed...@ai...>: > Hi Yuan, > Thank you for this. I think the problem is solved now. :) > > Good luck > Hedayat > > "Yuan Xu" <xu...@in...> wrote on ۰۹/۰۱/۱۴ 06:06:17: > > Hi all, > > I tried to install the current svn version simspark in my laptop, > but I faced a problem due to the separated packages, > the FileServer::LocateResource function can not search file in both > 'simspark' and 'rcssserver3d' directory. > I have to copy all the files together... I hope someone can fix this. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Simspark Generic Physical MAS Simulator > simspark-devel mailing list > sim...@li... > https://lists.sourceforge.net/lists/listinfo/simspark-devel > > -- Sincerely, Xu Yuan Institute of Informatics, Humboldt University Berlin -------------------------------------------------- |
From: Hedayat V. <hed...@ai...> - 2009-01-21 20:02:59
|
Hi Yuan, /*Yuan Xu <xu...@in...>*/ wrote on ۰۹/۰۱/۲۱ 01:41:46: > Hi Hedayat, > > Thanks, but it still doesn't work for me: > > (FileServer::OpenResource) Cannot locate file 'simspark.rb' > (SimulationServer) SimControlNode 'InputControl' not found > > It seems that it doesn't search the rcssserver3d installed directory. > I don't know what's the problem since it works for me! :( Would you please make sure that your simspark binary is actually rebuilt?! rcssserver3d data directory is expected to be added inside simspark/main.cpp to the list of resource locations. Would you please check the value of RCSS_BUNDLE_PATH macro inside rcssserver3d_config.h? It should contain the path of rcssserver3d data directory. I've just rebuilt everything and installed both spark/rcssserver3d from scratch and it works. :( If it still doesn't work for you with the latest svn, you could put some debugging messages in fileserver.cpp (LocateResource) to see which directories are checked. Please let me know the results. > And I noticed that some .rb files are loaded from the installed > directory (/usr/local/simspark) > but some others are loaded form my home directory (/home/xy/.simspark) > what is the rule to locate the resource files? > and when are the files installed in my home directory. > I think it doesn't match the regular Linux rule. > This is not a new behavior, and not related to the resource management. It's done by ScriptServer if I remember correctly (before separating packages, it used .rcssserver3d instead). The script file is installed in the installation directory, but when you run simspark (or monitorspark(now rcssmonitor3d!)) it checks to see if kerosin.rb is available in your home directory. If not, it'll copy kerosin.rb to .simspark in your home directory. It's not a bad thing, since you can modify settings in your local kerosin.rb without changing the original file. In fact it is proposed to do the same thing with other configuration files so that users don't need root access to change some settings. It's like other programs who store user specific configuration in his home directory. Thanks a lot, Hedayat > (ScriptServer) Running /usr/local/share/simspark//zeitgeist.rb... > (ScriptServer) updating cached script variables > (ScriptServer) Script ended OK /usr/local/share/simspark//zeitgeist.rb > (ScriptServer) Running /usr/local/share/simspark//oxygen.rb... > (ScriptServer) updating cached script variables > (ScriptServer) Script ended OK /usr/local/share/simspark//oxygen.rb > (ScriptServer) Running /home/xy/.simspark/kerosin.rb... > (ScriptServer) updating cached script variables > (ScriptServer) Script ended OK /home/xy/.simspark/kerosin.rb > (ScriptServer) Running /usr/local/share/simspark//spark.rb... > > > 2009/1/21 Hedayat Vatankhah <hed...@ai...>: > >> Hi Yuan, >> Thank you for this. I think the problem is solved now. :) >> >> Good luck >> Hedayat >> >> "Yuan Xu" <xu...@in...> wrote on ۰۹/۰۱/۱۴ 06:06:17: >> >> Hi all, >> >> I tried to install the current svn version simspark in my laptop, >> but I faced a problem due to the separated packages, >> the FileServer::LocateResource function can not search file in both >> 'simspark' and 'rcssserver3d' directory. >> I have to copy all the files together... I hope someone can fix this. >> >> >> > |
From: Yuan Xu <xu...@in...> - 2009-01-22 10:37:18
|
Hi Hedayat, > > I don't know what's the problem since it works for me! :( > Would you please make sure that your simspark binary is actually rebuilt?! > rcssserver3d data directory is expected to be added inside simspark/main.cpp > to the list of resource locations. Would you please check the value of > RCSS_BUNDLE_PATH macro inside rcssserver3d_config.h? It should contain the > path of rcssserver3d data directory. > I've just rebuilt everything and installed both spark/rcssserver3d from > scratch and it works. :( > If it still doesn't work for you with the latest svn, you could put some > debugging messages in fileserver.cpp (LocateResource) to see which > directories are checked. > Please let me know the results. I changed the AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,["$prefix/share/"PACKAGE_NAME],["Data dir"]) to AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,[PREFIX"/share/"PACKAGE_NAME],["Data dir"]) in configure.ac, then it works for me. The new cmake supporting for rcssserver3d also works for me ( great work, Hedayat! ) maybe it's time to forget automake. ;-) > > This is not a new behavior, and not related to the resource management. It's > done by ScriptServer if I remember correctly (before separating packages, it > used .rcssserver3d instead). The script file is installed in the > installation directory, but when you run simspark (or monitorspark(now > rcssmonitor3d!)) it checks to see if kerosin.rb is available in your home > directory. If not, it'll copy kerosin.rb to .simspark in your home > directory. It's not a bad thing, since you can modify settings in your local > kerosin.rb without changing the original file. In fact it is proposed to do > the same thing with other configuration files so that users don't need root > access to change some settings. It's like other programs who store user > specific configuration in his home directory. > Yes, I know, and hope you will implement this soon ;-P Sincerely Xu, Yuan |
From: Hedayat V. <hed...@ai...> - 2009-01-22 19:16:48
|
Hi Yuan, /*Yuan Xu <xu...@in...>*/ wrote on ۰۹/۰۱/۲۲ 02:07:07: > Hi Hedayat, > > >> ... >> > > I changed the > AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,["$prefix/share/"PACKAGE_NAME],["Data dir"]) > to > AC_DEFINE_UNQUOTED(RCSS_BUNDLE_PATH,[PREFIX"/share/"PACKAGE_NAME],["Data dir"]) > in configure.ac, then it works for me. > Wow! thanks :) > The new cmake supporting for rcssserver3d also works for me ( great > work, Hedayat! ) > maybe it's time to forget automake. ;-) > :) Glad to hear that, thank you for testing. Yes, I think we should decide about our support for autotools. We should not continue maintaining two build systems for a long time, and I think CMake build system should be treated as the main build system. I think it deserves a separate email ;) >> This is not a new behavior, and not related to the resource management. It's >> done by ScriptServer if I remember correctly (before separating packages, it >> used .rcssserver3d instead). The script file is installed in the >> installation directory, but when you run simspark (or monitorspark(now >> rcssmonitor3d!)) it checks to see if kerosin.rb is available in your home >> directory. If not, it'll copy kerosin.rb to .simspark in your home >> directory. It's not a bad thing, since you can modify settings in your local >> kerosin.rb without changing the original file. In fact it is proposed to do >> the same thing with other configuration files so that users don't need root >> access to change some settings. It's like other programs who store user >> specific configuration in his home directory. >> >> > > Yes, I know, and hope you will implement this soon ;-P > :) I'll try to do so. Finally, seeing imageperceptor in svn is promising, hope to see it in action soon :) Good luck, Hedayat > > Sincerely > Xu, Yuan > |