From: Xianshi (M. X. <xia...@gm...> - 2012-08-20 19:39:58
|
Dear guys, Recently I reinstalled my ubuntu system 11.04 and player 3.0.2 / Stage 3.2.2. When I ran player with 8 robots and 20 entities, e.g. defined entities with importing an image like this: define orange model ( bitmap "bitmaps/rink.png" size [0.4 0.4 1] color "yellow" ) the Stage runs very slowly, about 0.3 of simulation speed, even when the robots sit there and did nothing. Do you guys know why is that? When I change the model definition to be defined with block function, Stage runs on normal speed. define carton model ( # a carton is retangular # so make a square shape and use size[] block ( points 4 point[0] [1 0] point[1] [1 1] point[2] [0 1] point[3] [0 0] z [0 1] ) # average litre carton size is ~ 20cm x 10cm x 5cm ish size [0.6 0.6 0.6] color "DarkBlue" ) But when I connect the robots to my python client code, my client code (it is in vizard software, which is a virtual environment toolkit running python code) runs extremely slowly, even when the robots just sit there and do nothing. Did I install too many packages that slow down the Stage simulation and the communication between player and client code? Following is what I install for the player/stage dependencies: sudo apt-get update sudo apt-get install #FOR PLAYER sudo apt-get install autotools-dev sudo apt-get install build-essential sudo apt-get install cmake sudo apt-get install cpp sudo apt-get install libboost-thread1.42.0 sudo apt-get install libboost-thread1.42-dev sudo apt-get install libboost-signals1.42.0 sudo apt-get install libcv2.1 sudo apt-get install libcv-dev sudo apt-get install libhighgui2.1 sudo apt-get install libhighgui-dev sudo apt-get install libgdk-pixbuf2.0-0 sudo apt-get install libgdk-pixbuf2.0-dev sudo apt-get install libgnomecanvas2-0 sudo apt-get install libgnomecanvas2-dev sudo apt-get install libgsl0ldbl sudo apt-get install libgsl0-dev sudo apt-get install libjpeg62-dev sudo apt-get install libtool sudo apt-get install libxmu-dev sudo apt-get install swig #FOR STAGE sudo apt-get install freeglut3 sudo apt-get install freeglut3-dev sudo apt-get install libfltk1.1 sudo apt-get install libfltk1.1-dev sudo apt-get install libgtk2.0-dev sudo apt-get install libltdl7 sudo apt-get install libltdl7-dev sudo apt-get install libpng12-0 sudo apt-get install libpng12-0-dev #MISCELLANEOUS DEPENDENCIES sudo apt-get install libplayerc++ sudo apt-get install libplayerc++-dev sudo apt-get install python sudo apt-get install python-dev sudo apt-get install ruby sudo apt-get install ruby-dev #FOR OPENCV(for IMAGE PROCESSING SUPPORT) sudo apt-get install libcvaux-dev sudo apt-get install cmake sudo apt-get install cmake-curses-gui Thanks a lot! -- Xianshi (Matt) Xie Department of Electrical Engineering and Computer Science Vanderbilt University TN,USA |
From: Richard V. <va...@sf...> - 2012-08-20 19:49:02
|
You may not have installed hardware graphics drivers. Check that. Rtv On Monday, August 20, 2012, Xianshi (Matt) Xie wrote: > Dear guys, > > Recently I reinstalled my ubuntu system 11.04 and player 3.0.2 / Stage > 3.2.2. > When I ran player with 8 robots and 20 entities, e.g. defined entities with > importing an image like this: > define orange model > ( > bitmap "bitmaps/rink.png" > size [0.4 0.4 1] > color "yellow" > ) > > the Stage runs very slowly, about 0.3 of simulation speed, even when the > robots sit there and did nothing. > Do you guys know why is that? > > When I change the model definition to be defined with block function, Stage runs on normal speed. > > define carton model > ( > # a carton is retangular > # so make a square shape and use size[] > block > ( > points 4 > point[0] [1 0] > point[1] [1 1] > point[2] [0 1] > point[3] [0 0] > z [0 1] > ) > # average litre carton size is ~ 20cm x 10cm x 5cm ish > size [0.6 0.6 0.6] > color "DarkBlue" > ) > > > But when I connect the robots to my python client code, my client code > (it is in vizard software, which is a virtual environment toolkit running > python code) runs extremely slowly, even when the robots just sit there and > do nothing. > > Did I install too many packages that slow down the Stage simulation and > the communication between player and client code? > Following is what I install for the player/stage dependencies: > > sudo apt-get update > sudo apt-get install > > #FOR PLAYER > sudo apt-get install autotools-dev > sudo apt-get install build-essential > sudo apt-get install cmake > sudo apt-get install cpp > sudo apt-get install libboost-thread1.42.0 > sudo apt-get install libboost-thread1.42-dev > sudo apt-get install libboost-signals1.42.0 > sudo apt-get install libcv2.1 > sudo apt-get install libcv-dev > sudo apt-get install libhighgui2.1 > sudo apt-get install libhighgui-dev > sudo apt-get install libgdk-pixbuf2.0-0 > sudo apt-get install libgdk-pixbuf2.0-dev > sudo apt-get install libgnomecanvas2-0 > sudo apt-get install libgnomecanvas2-dev > sudo apt-get install libgsl0ldbl > sudo apt-get install libgsl0-dev > sudo apt-get install libjpeg62-dev > sudo apt-get install libtool > sudo apt-get install libxmu-dev > sudo apt-get install swig > > > #FOR STAGE > sudo apt-get install freeglut3 > sudo apt-get install freeglut3-dev > sudo apt-get install libfltk1.1 > sudo apt-get install libfltk1.1-dev > sudo apt-get install libgtk2.0-dev > sudo apt-get install libltdl7 > sudo apt-get install libltdl7-dev > sudo apt-get install libpng12-0 > sudo apt-get install libpng12-0-dev > > > > #MISCELLANEOUS DEPENDENCIES > sudo apt-get install libplayerc++ > sudo apt-get install libplayerc++-dev > sudo apt-get install python > sudo apt-get install python-dev > sudo apt-get install ruby > sudo apt-get install ruby-dev > > #FOR OPENCV(for IMAGE PROCESSING SUPPORT) > sudo apt-get install libcvaux-dev > > > > sudo apt-get install cmake > sudo apt-get install cmake-curses-gui > > > Thanks a lot! > -- > Xianshi (Matt) Xie > Department of Electrical Engineering and Computer Science > Vanderbilt University > TN,USA > > -- Sent from a mobile gadget |
From: Matt X. <xia...@gm...> - 2012-08-20 22:01:45
|
Thanks Rtv. Installing the graphics card driver speeds up the Stage simulation. And does anyone have any idea why my Player and python client not connect well? Thanks. Xianshi Richard Vaughan-2 wrote: > > You may not have installed hardware graphics drivers. Check that. > > Rtv > > On Monday, August 20, 2012, Xianshi (Matt) Xie wrote: > >> Dear guys, >> >> Recently I reinstalled my ubuntu system 11.04 and player 3.0.2 / Stage >> 3.2.2. >> When I ran player with 8 robots and 20 entities, e.g. defined entities >> with >> importing an image like this: >> define orange model >> ( >> bitmap "bitmaps/rink.png" >> size [0.4 0.4 1] >> color "yellow" >> ) >> >> the Stage runs very slowly, about 0.3 of simulation speed, even when the >> robots sit there and did nothing. >> Do you guys know why is that? >> >> When I change the model definition to be defined with block function, >> Stage runs on normal speed. >> >> define carton model >> ( >> # a carton is retangular >> # so make a square shape and use size[] >> block >> ( >> points 4 >> point[0] [1 0] >> point[1] [1 1] >> point[2] [0 1] >> point[3] [0 0] >> z [0 1] >> ) >> # average litre carton size is ~ 20cm x 10cm x 5cm ish >> size [0.6 0.6 0.6] >> color "DarkBlue" >> ) >> >> >> But when I connect the robots to my python client code, my client code >> (it is in vizard software, which is a virtual environment toolkit running >> python code) runs extremely slowly, even when the robots just sit there >> and >> do nothing. >> >> Did I install too many packages that slow down the Stage simulation and >> the communication between player and client code? >> Following is what I install for the player/stage dependencies: >> >> sudo apt-get update >> sudo apt-get install >> >> #FOR PLAYER >> sudo apt-get install autotools-dev >> sudo apt-get install build-essential >> sudo apt-get install cmake >> sudo apt-get install cpp >> sudo apt-get install libboost-thread1.42.0 >> sudo apt-get install libboost-thread1.42-dev >> sudo apt-get install libboost-signals1.42.0 >> sudo apt-get install libcv2.1 >> sudo apt-get install libcv-dev >> sudo apt-get install libhighgui2.1 >> sudo apt-get install libhighgui-dev >> sudo apt-get install libgdk-pixbuf2.0-0 >> sudo apt-get install libgdk-pixbuf2.0-dev >> sudo apt-get install libgnomecanvas2-0 >> sudo apt-get install libgnomecanvas2-dev >> sudo apt-get install libgsl0ldbl >> sudo apt-get install libgsl0-dev >> sudo apt-get install libjpeg62-dev >> sudo apt-get install libtool >> sudo apt-get install libxmu-dev >> sudo apt-get install swig >> >> >> #FOR STAGE >> sudo apt-get install freeglut3 >> sudo apt-get install freeglut3-dev >> sudo apt-get install libfltk1.1 >> sudo apt-get install libfltk1.1-dev >> sudo apt-get install libgtk2.0-dev >> sudo apt-get install libltdl7 >> sudo apt-get install libltdl7-dev >> sudo apt-get install libpng12-0 >> sudo apt-get install libpng12-0-dev >> >> >> >> #MISCELLANEOUS DEPENDENCIES >> sudo apt-get install libplayerc++ >> sudo apt-get install libplayerc++-dev >> sudo apt-get install python >> sudo apt-get install python-dev >> sudo apt-get install ruby >> sudo apt-get install ruby-dev >> >> #FOR OPENCV(for IMAGE PROCESSING SUPPORT) >> sudo apt-get install libcvaux-dev >> >> >> >> sudo apt-get install cmake >> sudo apt-get install cmake-curses-gui >> >> >> Thanks a lot! >> -- >> Xianshi (Matt) Xie >> Department of Electrical Engineering and Computer Science >> Vanderbilt University >> TN,USA >> >> > > -- > Sent from a mobile gadget > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > -- View this message in context: http://old.nabble.com/Stage-running-very-slowly-problem-and-player-client-connection-problem-tp34326171p34326720.html Sent from the playerstage-users mailing list archive at Nabble.com. |
From: Arkapravo B. <ark...@gm...> - 2012-08-27 07:37:56
|
Hello Dr.Vaughan, Thank you for your reply. Is there an upper limit to the number of robots one can implement using C++ player client - and everything still works nicely with a relatively good speed ? This is a question regarding scalability - so performance (speed of simulation) and number of robots (Matt used 8) should have some relationship ? Best regards Arkapravo -- *Arkapravo Bhaumik* E-mail : ark...@gm... Website : www.mobotica.com Twitter : @abhaumik Facebook : ark...@fa... Skype : arkapravo |