From: Yuan X. <xuy...@gm...> - 2008-04-12 15:18:27
|
Hi all, I have made the external monitor working. It works well in my system, would you test it if you have time? Thanks. However, I have a problem while disabling the internal monitor, the SDL window are still there. After merging code from simspark repository, the inputsdl make sure the SDL is initialized video and timer, And without SDL video initialization (just like the code in rcssserver3d-0.5.6), the simspark works both with and without internal monitor. I do not know whether these new code is useful in other platforms, can we comment them out without any problem? Thanks! -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |
From: Hedayat V. <hed...@ai...> - 2008-04-12 21:37:46
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html style="direction: ltr;"> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body style="direction: ltr;" bgcolor="#ffffff" text="#000000"> Hi Yuan,<br> I'll check it ASAP.<br> And about the SDL problem, have you checked if removing all video related code except it's initialization (such as SDL_SetVideoMode()) will solve the problem. (Sorry I can't check it right now since I should sleep!).<br> <br> Thanks a lot,<br> Hedayat<br> <span><br> <style type="text/css">blockquote {color: navy !important; background-color: RGB(245,245,245) !important; padding: 0 15 10 15 !important; margin: 15 0 0 0; border-left: #1010ff 2px solid;} blockquote blockquote {color: maroon !important; background-color: RGB(235,235,235) !important; border-left-color:maroon !important} blockquote blockquote blockquote {color: green !important; background-color: RGB(225,225,225) !important; border-left-color:teal !important} blockquote blockquote blockquote blockquote {color: purple !important; background-color: RGB(215,215,215) !important; border-left-color: purple !important} blockquote blockquote blockquote blockquote blockquote {color: teal !important; background-color: RGB(205,205,205) !important; border-left-color: green !important}</style><i><b>"Yuan Xu" <a class="moz-txt-link-rfc2396E" href="mailto:xuy...@gm..."><xuy...@gm...></a></b></i> wrote on 04/12/2008 07:48:24 PM:</span><br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">Hi all, I have made the external monitor working. It works well in my system, would you test it if you have time? Thanks. However, I have a problem while disabling the internal monitor, the SDL window are still there. After merging code from simspark repository, the inputsdl make sure the SDL is initialized video and timer, And without SDL video initialization (just like the code in rcssserver3d-0.5.6), the simspark works both with and without internal monitor. I do not know whether these new code is useful in other platforms, can we comment them out without any problem? Thanks! </pre> </blockquote> </body> </html> |
From: Yuan X. <xuy...@gm...> - 2008-04-13 01:21:49
|
Hi Hedayat, > Hi Yuan, > I'll check it ASAP. Thanks. > And about the SDL problem, have you checked if removing all video related > code except it's initialization (such as SDL_SetVideoMode()) will solve the > problem. (Sorry I can't check it right now since I should sleep!). > I just wander whether we can remove the follow codes in inputsystemsdl.cpp: 00082 if (!SDL_WasInit(SDL_INIT_VIDEO)) 00083 { 00084 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE) < 0) 00085 { 00086 GetLog()->Error() << "ERROR: (InputSystemSDL) SDL not initialized!\n"; 00087 return false; 00088 } 00089 SDL_SetVideoMode(0,0,0,0); 00090 static SDL_SysWMinfo pInfo; 00091 SDL_VERSION(&pInfo.version); 00092 SDL_GetWMInfo(&pInfo); It works in my system without these codes, but I am not sure in other system. -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |
From: Markus R. <rol...@un...> - 2008-04-13 10:16:04
|
Yuan Xu wrote: > Hi all, > > I have made the external monitor working. > It works well in my system, would you test it if you have time? Thanks. > > However, I have a problem while disabling the internal monitor, > the SDL window are still there. how do you disable the internal monitor? You should comment out sparkSetupRendering() and sparkSetupRendering() in monitorspark.rb to do thi. [...] > I do not know whether these new code is useful in other platforms, > can we comment them out without any problem? you want to use InputSystemSDL without the OpenGLSystemSDL? This should already work. It checks if SDL was setup properly. So you could init SDL in your own custom way and the load the InputSystemSDL plugin. cheers, Markus |
From: Yuan X. <xuy...@gm...> - 2008-04-13 10:34:42
|
Hi Markus, > > how do you disable the internal monitor? You should comment out > sparkSetupRendering() and sparkSetupRendering() in monitorspark.rb to do > thi. > Yes, I commented out the sparkSetupRendering() in simspark.rb. The OpenGL is disabled, but the SDL will initialize the video while inputsystemsdl initialization in current code. So there is still a window there. > > you want to use InputSystemSDL without the OpenGLSystemSDL? This should > already work. It checks if SDL was setup properly. So you could init SDL in > your own custom way and the load the InputSystemSDL plugin. > The current code make sure the SDL_WasInit(SDL_INIT_VIDEO). Maybe we can pass parameter to the inputsdl initialization, or comment out the checking code in inputsdl (just like rcssserver3d-0.5.6). What do you think about it? -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |
From: Hedayat V. <hed...@ai...> - 2008-04-13 14:19:30
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html style="direction: ltr;"> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body style="direction: ltr;" bgcolor="#ffffff" text="#000000"> <p>Hi Yuan,<span></span></p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><span></span></p> <span><br> <style type="text/css">blockquote {color: navy !important; background-color: RGB(245,245,245) !important; padding: 0 15 10 15 !important; margin: 15 0 0 0; border-left: #1010ff 2px solid;} blockquote blockquote {color: maroon !important; background-color: RGB(235,235,235) !important; border-left-color:maroon !important} blockquote blockquote blockquote {color: green !important; background-color: RGB(225,225,225) !important; border-left-color:teal !important} blockquote blockquote blockquote blockquote {color: purple !important; background-color: RGB(215,215,215) !important; border-left-color: purple !important} blockquote blockquote blockquote blockquote blockquote {color: teal !important; background-color: RGB(205,205,205) !important; border-left-color: green !important}</style><i><b>"Yuan Xu" <a class="moz-txt-link-rfc2396E" href="mailto:xuy...@gm..."><xuy...@gm...></a></b></i> wrote on 04/13/2008 05:51:38 AM:</span><br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">Hi Hedayat, > Hi Yuan, > I'll check it ASAP. Thanks. </pre> </blockquote> You're welcome. A little testing till now. Two issues now:<br> 1. if I run simspark and monitorspark and then connect an agent, the agent won't appear in correct color (it's gray instead of blue). If I close the monitorspark and run it again, it's OK.<br> 2. Sometimes when I connect the first agent, monitorspark crashes.<br> <br> This is what I get from gdb:<br> Program received signal SIGSEGV, Segmentation fault.<br> [Switching to Thread -1208244496 (LWP 25167)]<br> 0x0615dc50 in __dynamic_cast () from /usr/lib/libstdc++.so.6<br> (gdb) bt<br> #0 0x0615dc50 in __dynamic_cast () from /usr/lib/libstdc++.so.6<br> #1 0x0021c779 in boost::shared_dynamic_cast<oxygen::BaseNode, zeitgeist::Leaf><br> (r=@0x860983c) at /usr/include/boost/shared_ptr.hpp:209<br> #2 0x00549410 in RubySceneImporter::ReadDeltaGraph (this=0x80c0978, <br> sexp=0x8561518, root=@0xbfe3e8a8)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:873<br> #3 0x00549327 in RubySceneImporter::ReadDeltaGraph (this=0x80c0978, <br> sexp=0x8560348, root=@0xbfe3e938)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:882<br> #4 0x00549327 in RubySceneImporter::ReadDeltaGraph (this=0x80c0978, <br> sexp=0x8546288, root=@0xbfe3e9ac)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:882<br> #5 0x0054aea3 in RubySceneImporter::ParseScene (this=0x80c0978, <br> scene=0x8608cd4 "(RDS 0 1)((nd)(nd(nd))(nd(nd))(nd(nd))(nd)(nd(nd))(nd(nd))(nd(nd))(nd)(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd(nd)(nd(nd)(nd(nd)))))(nd(nd(nd)(nd("..., size=548, <br> root=@0xbfe3e9f4, parameter=@0xbfe3e9ec)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:223<br> #6 0x00544298 in RubySceneImporter::ParseScene (this=0x80c0978, <br> scene=@0xbfe3ea9c, root=@0xbfe3ea88, parameter=@0xbfe3ea80)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:173<br> #7 0x005adf7a in SparkMonitorClient::ParseMessage (this=0x80ab3c8, <br> msg=@0xbfe3eaf4)<br> at ../../../rcssserver3D/plugin/sparkmonitor/sparkmonitorclient.cpp:235<br> #8 0x005ae74c in SparkMonitorClient::StartCycle (this=0x80ab3c8)<br> at ../../../rcssserver3D/plugin/sparkmonitor/sparkmonitorclient.cpp:109<br> #9 0x002c3323 in oxygen::SimulationServer::ControlEvent (this=0x80c47b8, <br> event=oxygen::SimulationServer::CE_StartCycle)<br> at ../../../rcssserver3D/lib/oxygen/simulationserver/simulationserver.cpp:270<br> #10 0x002c5aab in oxygen::SimulationServer::Cycle (this=0x80c47b8, <br> inputCtr=@0xbfe3ebcc)<br> at ../../../rcssserver3D/lib/oxygen/simulationserver/simulationserver.cpp:348<br> #11 0x002c4e46 in oxygen::SimulationServer::Run (this=0x80c47b8, argc=1, <br> argv=0xbfe3ed34)<br> at ../../../rcssserver3D/lib/oxygen/simulationserver/simulationserver.cpp:330<br> #12 0x08049346 in main (argc=1, argv=0xbfe3ed34)<br> at ../../../rcssserver3D/app/monitorspark/main.cpp:141<br> <br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">I just wander whether we can remove the follow codes in inputsystemsdl.cpp: 00082 if (!SDL_WasInit(SDL_INIT_VIDEO)) 00083 { 00084 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE) < 0) 00085 { 00086 GetLog()->Error() << "ERROR: (InputSystemSDL) SDL not initialized!\n"; 00087 return false; 00088 } 00089 SDL_SetVideoMode(0,0,0,0); 00090 static SDL_SysWMinfo pInfo; 00091 SDL_VERSION(&pInfo.version); 00092 SDL_GetWMInfo(&pInfo); It works in my system without these codes, but I am not sure in other system. </pre> </blockquote> The comment above the following code says that video should be initialized for input system to work. BTW, by removing the last four lines the window won't appear. So I think it's safe to retain SDL initialization here.<br> <br> Thanks,<br> Hedayat<br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap=""> -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: <a class="moz-txt-link-abbreviated" href="mailto:xuy...@gm...">xuy...@gm...</a> <a class="moz-txt-link-abbreviated" href="mailto:xy...@ya...">xy...@ya...</a> web: <a class="moz-txt-link-freetext" href="http://xuyuan.cn.googlepages.com">http://xuyuan.cn.googlepages.com</a> -------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. <a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a> _______________________________________________ Simspark Generic Physical MAS Simulator simspark-devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:sim...@li...">sim...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/simspark-devel">https://lists.sourceforge.net/lists/listinfo/simspark-devel</a> </pre> </blockquote> </body> </html> |
From: Yuan X. <xuy...@gm...> - 2008-04-14 14:24:57
|
Hi Hedayat, > > You're welcome. A little testing till now. Two issues now: > 1. if I run simspark and monitorspark and then connect an agent, the agent > won't appear in correct color (it's gray instead of blue). If I close the > monitorspark and run it again, it's OK. > 2. Sometimes when I connect the first agent, monitorspark crashes. > Thanks for your feedback I have fixed the two problem, could you test that again? And I noticed that the monitor (internal and external) can not draw the number of soccerbot056 and soccerbot055 now ;-(, I test some version from CVS, it seems that after some changes about textures around March 28 cause it. ( To Joschka, could you test that? ) > The comment above the following code says that video should be initialized > for input system to work. BTW, by removing the last four lines the window > won't appear. So I think it's safe to retain SDL initialization here. > It also works for me, but Markus said that the input system needs the window. -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |
From: Joschka B. <jos...@am...> - 2008-04-16 07:03:36
|
Hi Yuan, On Apr 14, 2008, at 11:24 PM, Yuan Xu wrote: > Hi Hedayat, > >> >> You're welcome. A little testing till now. Two issues now: >> 1. if I run simspark and monitorspark and then connect an agent, >> the agent >> won't appear in correct color (it's gray instead of blue). If I >> close the >> monitorspark and run it again, it's OK. >> 2. Sometimes when I connect the first agent, monitorspark crashes. >> > > > Thanks for your feedback > I have fixed the two problem, could you test that again? > > And I noticed that the monitor (internal and external) can not draw > the number of soccerbot056 and soccerbot055 now ;-(, I test some > version from CVS, it seems that after some changes about textures > around March 28 cause it. ( To Joschka, could you test that? ) > Sorry, my bad. I changed the OBJ importer so now we need to rotate the torso in order for the textures to show up correctly (please see the rotation of the soccerbotcomp torso). I'll take a look soon (I'm a little busy this week). > > >> The comment above the following code says that video should be >> initialized >> for input system to work. BTW, by removing the last four lines the >> window >> won't appear. So I think it's safe to retain SDL initialization here. >> > > It also works for me, but Markus said that the input system needs > the window. I think as long as the SDL has been initialized before input is generated, it should not be a problem. Cheers, Joschka |
From: Hedayat V. <hed...@ai...> - 2008-04-14 19:25:25
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html style="direction: ltr;"> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body style="direction: ltr;" bgcolor="#ffffff" text="#000000"> <span>Hi Yuan,<br> <br> <style type="text/css">blockquote {color: navy !important; background-color: RGB(245,245,245) !important; padding: 0 15 10 15 !important; margin: 15 0 0 0; border-left: #1010ff 2px solid;} blockquote blockquote {color: maroon !important; background-color: RGB(235,235,235) !important; border-left-color:maroon !important} blockquote blockquote blockquote {color: green !important; background-color: RGB(225,225,225) !important; border-left-color:teal !important} blockquote blockquote blockquote blockquote {color: purple !important; background-color: RGB(215,215,215) !important; border-left-color: purple !important} blockquote blockquote blockquote blockquote blockquote {color: teal !important; background-color: RGB(205,205,205) !important; border-left-color: green !important}</style><i><b>"Yuan Xu" <a class="moz-txt-link-rfc2396E" href="mailto:xuy...@gm..."><xuy...@gm...></a></b></i> wrote on 04/14/2008 06:54:44 PM:</span><br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">Hi Hedayat, </pre> <blockquote type="cite"> <pre wrap=""> You're welcome. A little testing till now. Two issues now: 1. if I run simspark and monitorspark and then connect an agent, the agent won't appear in correct color (it's gray instead of blue). If I close the monitorspark and run it again, it's OK. 2. Sometimes when I connect the first agent, monitorspark crashes. </pre> </blockquote> <pre wrap=""><!----> Thanks for your feedback I have fixed the two problem, could you test that again? </pre> </blockquote> Thanks! Yes, they are fixed now.<br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">...</pre> <blockquote type="cite"> <pre wrap=""> The comment above the following code says that video should be initialized for input system to work. BTW, by removing the last four lines the window won't appear. So I think it's safe to retain SDL initialization here. </pre> </blockquote> <pre wrap=""><!----> It also works for me, but Markus said that the input system needs the window. </pre> </blockquote> I don't remember what Markus has said :( <br> >From what is explained in the code, I thought that what is important in video system initialization (which is still there). Does it need window setup too?!<br> <br> And another thing, Isn't the current monitorLoggerStep (and the old monitor interval) too large? With something around half of this, the logs will be a bit more smooth. <br> <br> Thanks again,<br> Hedayat<br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap=""> </pre> </blockquote> </body> </html> |
From: Yuan X. <xuy...@gm...> - 2008-04-15 10:00:40
|
Hi Hedayat, > > Thanks! Yes, they are fixed now. > Good to hear that ;D > > I don't remember what Markus has said :( > >From what is explained in the code, I thought that what is important in > video system initialization (which is still there). Does it need window > setup too?! > Yes, maybe Markus didn't CC the mail to the mail-list. But, I have to comment out all the video initialization for running the server remotely (i.e. via ssh). and it seems OK here ;-) > And another thing, Isn't the current monitorLoggerStep (and the old monitor > interval) too large? With something around half of this, the logs will be a > bit more smooth. > Maybe, user can set the value as they wish. -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |