From: Joseph B. <blu...@ai...> - 2005-05-13 18:28:59
|
I have been experimenting with the MComm interface and I have not had much luck. The java doc says " This interface returns no data and accepts no commands." The documentation also says that the Pop method is defined however it doesn't seem to be written as part of the MComInterface.java. What can be done with the current communication interface? Has anyone had any success using the interface? I appreciate any advice you can lend. Joseph Blumenthal |
From: Radu B. R. <ve...@in...> - 2005-05-14 14:23:08
|
Hello Joseph, I haven't tested it yet. I will look at it and write some examples sometime next week. I'm kind of busy right now with some final university projects, but that will end soon :) What are you trying to use it for? On Fri, May 13, 2005 at 02:28:44PM -0400, Joseph Blumenthal wrote: > I have been experimenting with the MComm interface and I have not had > much luck. The java doc says " This interface returns no data and > accepts no commands." The documentation also says that the Pop method is > defined however it doesn't seem to be written as part of the > MComInterface.java. What can be done with the current communication > interface? Has anyone had any success using the interface? I appreciate > any advice you can lend. > > Joseph Blumenthal 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] |
From: Joseph B. <blu...@ai...> - 2005-05-16 19:31:40
|
Radu Bogdan Rusu wrote: >Hello Joseph, > >I haven't tested it yet. I will look at it and write some examples sometime >next week. I'm kind of busy right now with some final university projects, >but that will end soon :) > >What are you trying to use it for? > >On Fri, May 13, 2005 at 02:28:44PM -0400, Joseph Blumenthal wrote: > > >>I have been experimenting with the MComm interface and I have not had >>much luck. The java doc says " This interface returns no data and >>accepts no commands." The documentation also says that the Pop method is >>defined however it doesn't seem to be written as part of the >>MComInterface.java. What can be done with the current communication >>interface? Has anyone had any success using the interface? I appreciate >>any advice you can lend. >> >>Joseph Blumenthal >> >> > >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] > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >_______________________________________________ >Java-player-users mailing list >Jav...@li... >https://lists.sourceforge.net/lists/listinfo/java-player-users > > 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 |
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] |