From: Rebble <hyy...@16...> - 2009-04-15 05:34:43
|
Hello, i cann't quite catch your meaning. It seems thar the 'master'and other robots stiill heve to use the same port , doesn't it? So this doesn't solve my problem. And what about the powerproxy? I have put it here for several days. Thanx in advance. Re. Toby Collett-3 wrote: > > With regard the opaque device, one of your robots should provide it on a > given port, the other should act as a client and require it. The same goes > for the blackboard, this type of communication requires either a 'master' > robot that everyone communicates through, or a non robot player server > that > is used for communication... > > > Toby > > 2009/4/14 Rebble <hyy...@16...> > >> >> Hi Toby: >> The version of Player and Stage are both 2.1.1.Without the power >> device, >> stage works well. Is it because that the power device can only be used >> with >> real robots? If i want to obtain the residual energy in stage, must i >> write >> an energy model? >> And another question. Because the opaque proxy must use the same port >> such as 6665, but exept communication i have to make the robot do >> something >> else. So sharing the same port will be a conflict. How could i do to >> solve >> this problem?If i use the blackboard proxy you have suggested to me, when >> i >> compile the control program, i get the error:‘class >> PlayerCc::BlackBoardProxy’doesn't have a member named 'GetEntry'.The .cc >> file is here: >> #include <libplayerc++/playerc++.h> >> #include<stdio.h> >> #include <libplayerc/playerc.h> >> #include <iostream> >> #include "args.h" >> using namespace PlayerCc; >> using namespace std; >> >> int >> main(int argc, char *argv[] ) >> { >> parse_args(argc,argv); >> PlayerClient r1("localhost",6665);// >> Position2dProxy pp1(&r1); >> BlackBoardProxy bb1(&r1); >> player_blackboard_entry_t bb1Data; >> >> PlayerClient r2("localhost",6666);// >> Position2dProxy pp2(&r2); >> BlackBoardProxy bb2(&r2); >> player_blackboard_entry_t bb2Data; >> player_blackboard_entry_t bb1GetData; >> player_blackboard_entry_t bb2GetData; >> bb1Data.data = new uint8_t[3]; >> bb1Data.data_count = 3; >> bb1Data.data[0]='a'; >> bb1Data.data[1]='1'; >> bb1Data.data[2]='c'; >> bb1.SetEntry(bb1Data); >> for(;;)//r1.Read() ususlly can't success one time ,so need for() >> { >> r1.Read(); >> if(bb2.IsFresh()) >> break; >> } >> bb2GetData=bb2.GetEntry(); >> cout<< bb2GetData.data[0]<<endl; >> return 0; >> } >> Thanx for your patience! >> Re. >> >> Toby Collett-3 wrote: >> > >> > That symbol is >> > c++filt _ZN14InterfacePowerC1E14player_devaddrP9StgDriverP10ConfigFilei >> > InterfacePower::InterfacePower(player_devaddr, StgDriver*, ConfigFile*, >> > int) >> > >> > This looks fine in the code, which version of player and stage are you >> > running, and does stage work without the power device? >> > >> > Toby >> > >> > 2009/4/12 Rebble <hyy...@16...> >> > >> >> >> >> Is there any one can give me a hand? thanx very much!! >> >> >> >> Rebble wrote: >> >> > >> >> > Hello all: >> >> > i run a program to test the use of power proxy. when i open the >> >> server >> >> > side ,type: player tpower.cfg,i get : >> >> > Stage driver creating 1 device >> >> > 6665.42.0 is "table" >> >> > Stage driver creating 3 devices >> >> > 6665.4.0 is "r0" >> >> > 6665.5.0 is "r0.ranger:0" >> >> > 6665.6.0 is "r0.laser:0" >> >> > Stage driver creating 1 device >> >> > 6665.2.0 is player: symbol lookup error: >> >> > /home/hyy/moveturn/./libstageplugin.so: undefined symbol: >> >> > _ZN14InterfacePowerC1E14player_devaddrP9StgDriverP10ConfigFilei >> >> > This is my .cfg and .world file: >> >> > driver >> >> > ( >> >> > name "stage" >> >> > provides ["simulation:0"] >> >> > plugin "libstageplugin" >> >> > worldfile "tpower.world" >> >> > ) >> >> > driver( name "stage" provides ["map:0" ] model "table" ) >> >> > # robot 0 >> >> > driver( >> >> > name "stage" >> >> > provides [ "position2d:0" "sonar:0" "laser:0" ] >> >> > model "r0" >> >> > ) >> >> > driver >> >> > ( name "stage" >> >> > provides [ "power:0"] >> >> > ) >> >> > >> >> > driver >> >> > ( >> >> > name "nd" >> >> > provides ["position2d:1"] >> >> > requires ["output::6665:position2d:0" "input::6665:position2d:0" >> >> > "laser:0" "sonar:0"] >> >> > max_speed [2.0 30.0] >> >> > min_speed [0.5 15.0] >> >> > wait_on_stall 1 >> >> > ) >> >> > .world file >> >> > resolution 0.02 >> >> > interval_sim 100 >> >> > include "pioneer.inc" >> >> > include "map.inc" >> >> > include "sick.inc" >> >> > >> >> > size [40 20 ] >> >> > gui_disable 0 >> >> > gui_interval 100 >> >> > gui_menu_interval 20 >> >> > >> >> > window( >> >> > size [ 250.000 300.000 ] >> >> > center [2 3] >> >> > scale 0.02 >> >> > ) >> >> > map( >> >> > bitmap "bitmaps/table.png" >> >> > map_resolution 0.02 >> >> > size [30 18] >> >> > name "table" >> >> > ) >> >> > define p2dx pioneer2dx >> >> > ( >> >> > laser() >> >> > blobfinder() >> >> > fiducialfinder(range_max 8 range_max_id 5 ) >> >> > ) >> >> > p2dx >> >> > ( >> >> > name "r0" >> >> > pose [4.0 3.0 0] >> >> > color "blue" >> >> > ) >> >> > could anyone give me some hint?? Thanx ! >> >> > Re. >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/symbol-lookup-error%3A-undefined-symbol%3A-tp22984679p23009373.html >> >> Sent from the playerstage-users mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> This SF.net email is sponsored by: >> >> High Quality Requirements in a Collaborative Environment. >> >> Download a free trial of Rational Requirements Composer Now! >> >> http://p.sf.net/sfu/www-ibm-com >> >> _______________________________________________ >> >> Playerstage-users mailing list >> >> Pla...@li... >> >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> >> >> > >> > >> > >> > -- >> > This email is intended for the addressee only and may contain >> privileged >> > and/or confidential information >> > >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by: >> > High Quality Requirements in a Collaborative Environment. >> > Download a free trial of Rational Requirements Composer Now! >> > http://p.sf.net/sfu/www-ibm-com >> > _______________________________________________ >> > Playerstage-users mailing list >> > Pla...@li... >> > https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/symbol-lookup-error%3A-undefined-symbol%3A-tp22984679p23034984.html >> Sent from the playerstage-users mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > > > > -- > This email is intended for the addressee only and may contain privileged > and/or confidential information > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > -- View this message in context: http://www.nabble.com/symbol-lookup-error%3A-undefined-symbol%3A-tp22984679p23052812.html Sent from the playerstage-users mailing list archive at Nabble.com. |