mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-12 21:09:50 +08:00
LaserScan: fixed destination format when source is empty with operator+
This commit is contained in:
@@ -387,7 +387,7 @@ LaserScan LaserScan::operator+(const LaserScan & scan)
|
||||
{
|
||||
if(this->empty())
|
||||
{
|
||||
dest = LaserScan(scan.data().clone(), 0, 0, this->format());
|
||||
dest = scan.clone();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user