Ask Your Question
0

gazebo_ros_block_laser FOV limitation of -90 to +90 degrees?

asked 2012-01-05 10:51:45 -0500

WW gravatar image

updated 2014-01-28 17:11:05 -0500

ngrennan gravatar image

Hi guys,

I'm trying to use the gazebo_ros_block_laser to provide point cloud data of a -180 to 180 degree (360 degree) field of view. However visualizing using RVIZ , only -90 degree to +90 degree looks very good. Everything else behind the lidar system looks incorrect. Is this a known design limitation of gazebo_ros_block_laser or am I using this incorrectly?

Thanks guys, WW

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-02-09 10:40:18 -0500

WW gravatar image

I was able to figure this out, if anyone is curious. Changing the ray transform order in MultiRayShape.cc (gazebo) to yaw->pitch from pitch->yaw did the trick. Now my 360 degree lidar point cloud looks perfect. Without this change, the vertical component of the point cloud distance becomes inverted in the rear semi circle of the horizontal fov. Difficult to notice with small horizontal range.

Change line 116 to this: axis.Set(cos(pitchAngle.GetAsRadian()) * cos(yawAngle.GetAsRadian()), cos(pitchAngle.GetAsRadian()) * sin(yawAngle.GetAsRadian()), sin(pitchAngle.GetAsRadian()));

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-01-05 10:51:45 -0500

Seen: 151 times

Last updated: Feb 09 '12