TIAN Daji wrote: > > Hello Kamil, > > I am now using gazebo for my simulation. However, searching through the > internet for two weeks, i got no info in how to run my own c++ program. i > could get the interface in running the gazebo pioneer2dx.world, and could > see the 2 pioneer2dxs running in two diffenent directions. But i can not > find the control algothm in the file(i don't know how the 2 robots are > told to run like that), so i could not implement my own algorithm for the > robot. All i got is to run the gazebo pioneer2dx.world file first, then > the player gazebo.cfg file, and finally my own program ./ executive file. > i would like to know how you succeeded in running your program and if > possible, send me your .world file, .cfg file and your C++ code(you also > use cmake to compile the .cc file?)to [email protected], just to test my > installation of Gazebo, and for me to learn how to run my own .cc file. > Thanks a lot in advance. >
Hi, I'm afraid I cannot help you. I have no experience in using player software. I guess what you trying to achieve is to control your model in gazebo (.world file loaded in gazebo) using player controllers and c++ control application. In this case player works as a proxy from your c++ app to gazebo. I do it differently - I directly communicate with gazebo using shared memory, so I have only gazebo and my c++ app. in my workflow. To communicate with gazebo I use Position Interface and posIface->data structure - as you can see in the message I posted. If you are more interested in that approach, try running gazebo examples from gazebo source folder/examples/libgazebo/position. Regards, Kamil -- View this message in context: http://old.nabble.com/Few-issues-with-latest-gazebo-%28svn%2C-rev-8432%29-tp26468941p32640543.html Sent from the playerstage-gazebo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Playerstage-gazebo mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
