yekigoc / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

Rosjava android RosCameraView error #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/*To get this running in eclipse, first of all, rosjava-android should *be set 
as a library using Properties->Android->Is Library (tick box) *and then include 
the project in any of the *rosjava_core/android/tutorials. You would also 
require all the *necessary jar files in the build path) 

*Due to some apparent XML RPC issues, I use a remote roscore host with *local 
nodes for all my work.*/

In RosCameraPreview,main()

Instead of

imagePublisher =
        node.createPublisher(resolver.resolve("image_raw"), "sensor_msgs/CompressedImage");

it should be

imagePublisher =
        node.createPublisher(resolver.resolve("image_raw/compressed"), "sensor_msgs/CompressedImage");

As image_view expects the compressed image to be published to 
image_raw/compressed or theora. 

Original issue reported on code.google.com by icodera...@gmail.com on 8 Jul 2011 at 8:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b347db3fdf8b.

Original comment by damonkoh...@google.com on 11 Nov 2011 at 2:53