From: Radu B. R. <ve...@in...> - 2005-05-17 09:07:52
|
On Mon, May 16, 2005 at 03:30:45PM -0400, Joseph Blumenthal wrote: > I am trying to use the MComInterface for a LIFOCOM device to broadcast > position between simulated Pioneer 3AT's for some simple multi-agent EC > learning experiments. I appreciate any help you can provide with your > busy schedule. > > Joseph Blumenthal Okay, let's see what we got. I just commited the changes to MComInterface to the SF CVS repository. Basically, I added the following methods: - Push() -> PLAYER_MCOM_PUSH_REQ - Pop() -> PLAYER_MCOM_POP_REQ - Read() -> PLAYER_MCOM_READ_REQ - Clear() -> PLAYER_MCOM_CLEAR_REQ - setCapacity() -> PLAYER_MCOM_SET_CAPACITY_REQ While looking at test_mcom.cc, it seems that a proper test should look like: - first subscribe to the interface using requestInterfaceMCom() - use Push() to send some data (eg. Push (1, "test", data), where data is a char array and "test" is the channel name) - use Read() or Pop() (they look the same to me) to read data from a channel (eg. Pop (1, "test")) - check if the data has been read using isDataReady() and if true, use the get* methods to get the desired data (getRData(), getDataType(), etc) Unfortunately, I don't have any access to a Lifecom device, so I can't test this properly. If you have any troubles retreiving the code from CVS (use http://sourceforge.net/cvs/?group_id=135304, Anonymous CVS Access section for details) please let me know, and I'll build 1.6.3.2 and upload it tomorrow. Yours sincerely, Radu Bogdan Rusu -- | Radu Bogdan 'veedee' Rusu | http://www.rbrusu.com | PhD student/teaching assistant | Robotics Research Group, Technical University of Cluj-Napoca[.ro] |