From: <gi...@gm...> - 2006-05-21 21:07:56
|
Hi, I've checked out current player source code under cvs with the new relay driver. I'm using this driver with the opaque interface exactly with the OpaqueProxy for c++. Now I want to send something from a client A to a Client B, but when i use the SendCmd -method there is a error like this: playerc error : encoding failed on message from 51:0 with type 2:1 Here are some code lines: // Create Client A PlayerClient robot1( PLAYER_HOSTNAME, PLAYER_PORTNUM ); // Subscribe to the opaque-driver OpaqueProxy opaque_proxy1( &robot1, 0 ); // Create Client B PlayerClient robot2( PLAYER_HOSTNAME, PLAYER_PORTNUM ); OpaqueProxy opaque_proxy2( &robot2, 0 ); // I want to use a single number as data uint8_t num= 5; player_opaque_data_t opdata; opdata.data[0] = num; // send data to relay driver which will broadcast the data to every subscribed client opaque_proxy1.SendCmd( &opdata ); In the config file I use the following lines: driver ( name "relay" provides ["opaque:0"] ) Have someone a idea what I'm doing wrong? Or maybe have someone a short example code? Thanks a lot for every response. |