MrlComm 54

Hi,
 
With the new version, this code doesn't work.
 
  MrlMsg msg(PUBLISH_CUSTOM_MSG);
  msg.countData();
  int i=0;
  while (mrlComm.getCustomMsgSize()){
    int x = mrlComm.getCustomMsg();
    //MrlMsg is the class that build message to send to MRL
    msg.addData(x);
    i++;
  }
  if (i) msg.sendMsg();
 
Could you give me the new procedure ?
Thank.
 
 
mayaway's picture

if (i)

How about:

if (i > 0)

?

dom14's picture

No no, Mrlmsg change in msg

No no, Mrlmsg change in msg class.

if (i) and if (i > 0) is the same result.

Jan Janson's picture

Custom messages

Hi,

I also did use the code above to deal with custom messages but it does not work in the latest builds.

Can someone please explain or show me sample code how it should be programmed now?

Cheers Jan Janson

mayaway's picture

EZ-ROBOT

I switched to EZ-Robot and no longer own an InMoov statue. Have a look!!!