ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROSjava VisualizationView

asked 2013-02-06 13:06:36 -0500

LeopoldPodmolík gravatar image

updated 2013-02-10 22:43:15 -0500


have anybody working example of VisualizationView, because the tutorial map_viewer doesn't work. Now I try use VisualizationView for display map and laser scan, but I am not yet successful. In RViz is all working well, and communication should by OK, in rxgraph are all arrows right connected.

My code:

VisualPanel = (VisualizationView) findViewById(;
CameraControlLayer cameraControlLayer = new CameraControlLayer(this, nodeMainExecutor.getScheduledExecutorService());
OccupancyGridLayer Map = new OccupancyGridLayer("map");

VisualPanel.addLayer(new LaserScanLayer("scan"));
nodeMainExecutor.execute(VisualPanel, nodeConfiguration.setNodeName("android/map_view")

Thanks for any advice

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2013-02-13 14:01:48 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

The visualization view works successfully on some of my android devices, but not on my tablet, Nexus7.(I should say that I rewrote the source code a little to use OccupancyGridLayer as you did.) I don't know the reason, but you should try your application on another kind of android. In addition, I wonder if you set the camera frame to a right position by using VisualizationView.getCamera().jumpToFrame() method.

edit flag offensive delete link more

answered 2013-02-13 22:31:15 -0500

LeopoldPodmolík gravatar image

I find working application use rosjava . But here is also rewrite visualizationview, so for example the map is working but this rewrite visualizitoinview is not compability with old visualizationview so I can't use laserScanLayer or robotLayer... it's pity

edit flag offensive delete link more

Question Tools


Asked: 2013-02-06 13:06:36 -0500

Seen: 1,417 times

Last updated: Feb 13 '13