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

ROSjava VisualizationView

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

LeopoldPodmolík gravatar image

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

Hi,

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(R.id.visualization);
...
CameraControlLayer cameraControlLayer = new CameraControlLayer(this, nodeMainExecutor.getScheduledExecutorService());
VisualPanel.addLayer(cameraControlLayer);
OccupancyGridLayer Map = new OccupancyGridLayer("map");

VisualPanel.addLayer(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
1

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

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
0

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

LeopoldPodmolík gravatar image

I find working application use rosjava https://bitbucket.org/zimmrmn3/rviz-for-android/overview . 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

Stats

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

Seen: 1,432 times

Last updated: Feb 13 '13