Robotics StackExchange | Archived questions

RosJava - ByteMultiarray problem to create a publisher

Hi Everyone.

I'm trying to send using a bytemultiarray few bytes. But the program in Android stop unexpectly when execute nuevo.setdata(eee).

std_msgs.ByteMultiArray nuevo = pubremotecontrol.newMessage();
ChannelBuffer eee= copiedBuffer(new byte[] {0x22,0x32,0x22,0x11});
nuevo.setData(eee);
pubremotecontrol.publish(nuevo);

Best Regards

Asked by barovehicles on 2017-08-22 16:41:08 UTC

Comments

Answers