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

7 years 10 months ago

How about:

if (i > 0)

?

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

7 years 5 months ago

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