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

Hokuyo + RViz, Strange Output

asked 2011-04-12 11:12:20 -0500

Pablo Hevia-Koch gravatar image

updated 2011-04-12 21:29:20 -0500

Hello everyone.

I am running Diamondback installed via apt-get on Ubuntu 10.10. I installed the hokuyo_node (laser drivers package via apt-get) and connected my Hokuyo 04LX-UG01 to the machine.

While starting the hokuyo_node as indicated by the tutorial, and looking at the output in RViz, I only see one straight red line of points. The line doesnt move if I rotate or move the camera around. This behaviour is the same, independent if I start Rviz with: "rosrun rviz rviz -drospack find hokuyo_node/hokuyo_test.vcg" or just as "rosrun rviz rviz" and using a custom tf base link to laser broadcaster.

I forgot to say that if I move my hand near the laser, the points do move and disappear, making the line shorter or larger, but always on 1 dimension.

EDIT: Even if I change the view to FPS or Orbit and move the camera around, the line stays at the same size and position.

Here is an image of the RViz window for clarity.

RViz Output

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-04-12 18:36:27 -0500

I notice you have "TopDownOrtho" selected as view option. Does anything change if you switch to "fps" or "orbit" mode and move the view around? "TopDownOrtho" uses orthographic projection and only lets the camera rotate around the z-axis, which could lead to the described behavior.

edit flag offensive delete link more

Comments

Nope, it doesn't. The grid moves and rotates, but the red points do not. Even in FPS or Orbit, the line stays the same size and position. Thanks for the input.
Pablo Hevia-Koch gravatar image Pablo Hevia-Koch  ( 2011-04-12 21:28:31 -0500 )edit
Ok, other things you could try is wether simulated laser scanners work (e.g. try out a erratic_robot in gazebo or similar) and of course looking at the laser scan using rostopic echo (pretty unlikely though that the scans themselves are faulty).
Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2011-04-12 23:28:45 -0500 )edit

Question Tools

Stats

Asked: 2011-04-12 11:12:20 -0500

Seen: 605 times

Last updated: Apr 12 '11