[ playerstage-Bugs-3125434 ] Bug in laserrescan driver

"SourceForge.net" <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Bugs item #3125434, was opened at 2010-12-02 12:06
Message generated for change (Tracker Item Submitted) made by black_ivory
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3125434&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: player
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Black Ivory (black_ivory)
Assigned to: Brian Gerkey (gerkey)
Summary: Bug in laserrescan driver

Initial Comment:
If the laserrescan-driver is used to generate an interpolated scan with an angle that doesn't completely overlap the angle of the original laser-range-finder it generates values for single beams (the first one) which are over 600 meters.

example:
original scan( min_angle -1,57 max_angle 1,57, scan_count 511)
interpolated scan( min_angle: -1,5708 max_angle: 1,5708 scan_count 181)

This large value produced crashes of other drivers for mapping (usually bad_allocs) 

My solution:
- fixed the bug that produced the really high value (caused by casting from small negative value to unsigned int)
- print a warning of the angles of original and interpolated scan don't overlap completely.

I don't know what format to use for patches so I attached my complete version of laserrescan.cc

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433164&aid=3125434&group_id=42445

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.