problem running ros_image_transport tutorials in android.
hello everyone i had a problem running ros_image_transport tutorials in android.It compiled without any errors but when i try to subscribe to topic published by ros computer it doesnot show any images in android apps.I had tried to use logcat also,Nothing displayed to logcat.But when i tried to connect to ros master uri it connects. My cod is:
public class ImageTransport_Main extends RosActivity {
private RosImageView<sensor_msgs.CompressedImage> image;
public ImageTransport_Main() {
super("ImageTransportTutorial", "ImageTransportTutorial");
}
@SuppressWarnings("unchecked")
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_imagetransportros);
image = (RosImageView<sensor_msgs.CompressedImage>) findViewById(R.id.imagess);
image.setTopicName("/camera/image_raw/compressed");
image.setMessageType(sensor_msgs.CompressedImage._TYPE);
image.setMessageToBitmapCallable(new BitmapFromCompressedImage());
Log.d("main", "onCreate: sssssssssssssssssssssss"+new BitmapFromCompressedImage());
}
@Override
protected void init(NodeMainExecutor nodeMainExecutor) {
NodeConfiguration nodeConfiguration =
NodeConfiguration.newPublic(InetAddressFactory.newNonLoopback().getHostAddress(),
getMasterUri());
nodeMainExecutor.execute(image, nodeConfiguration.setNodeName("android/video_view"));
}
}