[ros-users] [Discourse.ros.org] [Client Libraries/rosjava] Sending a Byte Array Message

Gabriel Giani ros.discourse at gmail.com
Wed Aug 30 10:38:12 UTC 2017



Hi

I'm looking to send a byte multi array message from rosjava.

I'm using this structure but the apps in Android stop automatically when execute nuevo.setdata(eee).

  std_msgs.ByteMultiArray nuevo = pubremotecontrol.newMessage();
                                                       ChannelBuffer eee= ChannelBuffers.dynamicBuffer();
                                                       eee.writeInt(4);
                                                       eee.writeBytes(new byte[] {0x22,0x32,0x22,0x11});

                                                               //copiedBuffer(new byte[] {0x22,0x32,0x22,0x11});
                                                       nuevo.setData(eee);
                                                       pubremotecontrol.publish(nuevo);





---
[Visit Topic](https://discourse.ros.org/t/sending-a-byte-array-message/2534/1) or reply to this email to respond.




More information about the ros-users mailing list