From df1cd542f4de3d93df7a5e316b8a459a69284f71 Mon Sep 17 00:00:00 2001 From: Prabin Rath Date: Sat, 28 May 2022 21:18:45 +0530 Subject: [PATCH] ROS Noetic Compatibility Changes --- scripts/assigner.py | 2 +- scripts/filter.py | 2 +- scripts/functions.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/assigner.py b/scripts/assigner.py index 7a05a0f..365fd1f 100755 --- a/scripts/assigner.py +++ b/scripts/assigner.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #--------Include modules--------------- from copy import copy diff --git a/scripts/filter.py b/scripts/filter.py index 4fbd545..2711a03 100755 --- a/scripts/filter.py +++ b/scripts/filter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # --------Include modules--------------- from copy import copy diff --git a/scripts/functions.py b/scripts/functions.py index 294fdbf..4863f88 100644 --- a/scripts/functions.py +++ b/scripts/functions.py @@ -100,9 +100,9 @@ def index_of_point(mapData, Xp): def point_of_index(mapData, i): y = mapData.info.origin.position.y + \ - (i/mapData.info.width)*mapData.info.resolution + (i//mapData.info.width)*mapData.info.resolution x = mapData.info.origin.position.x + \ - (i-(i/mapData.info.width)*(mapData.info.width))*mapData.info.resolution + (i-(i//mapData.info.width)*(mapData.info.width))*mapData.info.resolution return array([x, y]) # ________________________________________________________________________________