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

hector_quadrotor color settings for laserscan

asked 2013-10-04 01:53:39 -0500

neptun gravatar image

Hi,

I am trying to reproduce the same color behaviour from the "hector_quadrotor outdoor scenario demo" youtube clip. In this clip in the top down view from rviz the hector team gets a nice color visualization of the laserscan.

What settings do you choose in rviz under the LaserScan category to achieve the same?

I tried various and I'm currently using:

  • Topic: /scan
  • Queue Size: 10
  • List item
  • Selectable: yes
  • Style: Points
  • Alpha:10
  • Decay Time: 10
  • Position Transformer: XYZ
  • Color Transformer: AxisColor Axis: Z
  • Autocompute Value Bounds: yes
  • Use Fixed Frame: yes

With this setting I get a very colorful image but to me the colors don't make sense at all. There is no consisting color change as it can be observed in the hector youtube clip. For example I get green lines after blue ones and then blue again.

I use Ubuntu 12.04 and ROS fuerte and run the outdoor_flight_gazebo.launch file from the hector_quadrotor_demo package.

Thanks a lot.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2013-10-04 02:32:27 -0500

The culprit is the "autocompute value bounds" option. This means that for every scan the min/max values for coloration are computed in isolation, so coloring is not consistent across multiple scans. Switching off the autocompute, you can set the bounds yourself manually. It´s of course advisable that you are using some reasonable fixed frame for this to work as intended.

edit flag offensive delete link more

Comments

Perfect, thanks! I tried it without "autocompute value bounds" but due to wrong min/max values I never got the desired result. Now it works!

neptun gravatar image neptun  ( 2013-10-06 21:45:23 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-04 01:53:39 -0500

Seen: 341 times

Last updated: Oct 04 '13