Package Details: ros-indigo-amcl 1.12.13-1

Git Clone URL: https://aur.archlinux.org/ros-indigo-amcl.git (read-only)
Package Base: ros-indigo-amcl
Description: ROS - amcl is a probabilistic localization system for a robot moving in 2D.
Upstream URL: http://wiki.ros.org/amcl
Licenses: LGPL
Submitter: rreignier
Maintainer: None
Last Packager: rreignier
Votes: 0
Popularity: 0.000000
First Submitted: 2015-08-28 05:35
Last Updated: 2016-11-24 11:28

Latest Comments

jerry73204 commented on 2018-11-03 20:11

I got this compile error.

$srcdir/amcl/map/map_cspace.cpp:98:34: error: call of overloaded ‘abs(unsigned int)’ is ambiguous
   unsigned int di = abs(i - src_i);

Please include this patch.

diff --git a/src/amcl/map/map_cspace.cpp b/src/amcl/map/map_cspace.cpp
index a516921..763fccd 100644
--- a/src/amcl/map/map_cspace.cpp
+++ b/src/amcl/map/map_cspace.cpp
@@ -95,8 +95,8 @@ void enqueue(map_t* map, unsigned int i, unsigned int j,
   if(marked[MAP_INDEX(map, i, j)])
     return;

-  unsigned int di = abs(i - src_i);
-  unsigned int dj = abs(j - src_j);
+  unsigned int di = abs(static_cast<long int>(i - src_i));
+  unsigned int dj = abs(static_cast<long int>(j - src_j));
   double distance = cdm->distances_[di][dj];

   if(distance > cdm->cell_radius_)