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

Rviz only showing 90 deg FOV [closed]

asked 2012-01-02 23:17:28 -0500

mrath gravatar image

updated 2012-01-03 22:43:25 -0500

Hi, I am working with a mobile robot equipped with two Sick S300 scanners, which each have a 270 degree field of view. I managed to get the scanners working, and publishing the scans on the LaserScan topic fine.

However, when I add a LaserScan view to Rviz (which shows the robot model and sensor data from the ultrasonic sensors just fine), only a 90 degree field of view is shown.

I have tried to plot samples of each scanner topic in Matlab, and there I can see the full 270 degree FOV just fine, so the problem is not in the driver I'm using, nor is it in the publishing of the topics.

This is the plot in Matlab, the X is the position of the scanner, and the separate scanners are color coded.

I have indicated with the arrows the FOV of each scanner as shown in Rviz.

Sorry for the incredibly bad graphics.

image description

Update:

I noticed a warning when loading Rviz:

File r300_draw.c function r300TryDrawPrims line 671

Rendering was 19 commands larger than predicted size. We might overflow command buffer.

After seeing this, I tried to remove the robot model (URDF with an STL mesh) from the Rviz config, and there was much more continuous display of the laser scan (another problem I had). Upon adding the robot model to the view again, the full scan, 270 deg, for both scanners is shown (but still with poor visualization of the data).

Is my STL file causing some sort of corruption, or is it perhaps too complex / has too many points?

The strange thing is that I have to remove and re-add the robot model to the Rviz view to see the complete scan.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2012-04-26 23:18:43

Comments

Have you tried a simulated laser scanner or played back a logfile with laser scans from another laser scanner? Do you see a undistorted 90 deg slice of the correct scan, or is the visualized 90 deg scan distorted (e.g. 270 deg cramped into 90 deg)? Have you closely checked angle_increment etc. ?
Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2012-01-03 00:24:31 -0500 )edit
It is merely a 90deg slice of the full 270 deg scan. Check updated question for additional info I just noticed now.
mrath gravatar image mrath  ( 2012-01-03 22:16:52 -0500 )edit
so if you remove and re-add the model, the scan shows up correctly? can you post your model for reference?
hsu gravatar image hsu  ( 2012-01-16 06:45:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-01-03 00:28:38 -0500

Ben_S gravatar image

Hi mrath, try checking the header data of your laserscan messages for errors regarding the angle_min, _max and _increment parameters. (rostopic echo /scan -n 1)

Maybe the driver is publishing incorrect bounding-values which prevent rviz from correctly rendering the points beyond the max_angle.

edit flag offensive delete link more

Comments

Thank you for your answer. I double-checked, and the angle limits are correct.
mrath gravatar image mrath  ( 2012-01-03 22:15:57 -0500 )edit
Could you post the complete header of one scan please?
Ben_S gravatar image Ben_S  ( 2012-01-03 22:16:53 -0500 )edit
rostopic echo /laser_front -n 1 header: seq: 128 stamp: secs: 1325679248 nsecs: 230131156 frame_id: /sensor_laser-frontR_link angle_min: -2.35619449615 angle_max: 2.35619449615 angle_increment: 0.00895891431719 time_increment: 0.000190114064026 scan_time: 0.10000000149 range_min: 0.0
mrath gravatar image mrath  ( 2012-01-03 22:26:19 -0500 )edit
whoops, thought I could do it just fine here - but I guess you got the essentials. BTW see the updated question.
mrath gravatar image mrath  ( 2012-01-03 22:27:31 -0500 )edit

Question Tools

Stats

Asked: 2012-01-02 23:17:28 -0500

Seen: 684 times

Last updated: Jan 03 '12