[ros-users] [Discourse.ros.org] [Client Libraries/rosjava] S…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Gabriel Giani via ros-users
Date:  
To: ros-users
Subject: [ros-users] [Discourse.ros.org] [Client Libraries/rosjava] Sending a Byte Array Message


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.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>