Skip to content

Commit 38129e4

Browse files
Fixed bad variable name. Removed future imports. (#58)
* Fixed the linter and removed some future imports. * Re-added cyberglove future imports.
1 parent 6e19caa commit 38129e4

File tree

16 files changed

+3
-39
lines changed

16 files changed

+3
-39
lines changed

cyberglove/python_lib/cyberglove_calibrer.py

-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626

2727
from __future__ import absolute_import
2828

29-
import os
3029
from builtins import input
31-
3230
import roslib
3331
import rospy
3432
from cyberglove.srv import Calibration as CalibrationSrv

cyberglove/python_lib/cyberglove_library.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import threading
2323
import time
24-
2524
import rosgraph.masterapi
2625
import roslib
2726
import rospy

cyberglove/python_lib/cyberglove_mapper.py

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from __future__ import absolute_import
2828

2929
from builtins import input
30-
3130
import roslib
3231
import rospy
3332
from cyberglove_library import Cyberglove

cyberglove_trajectory/setup.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
2-
from __future__ import absolute_import
32

43
from distutils.core import setup
5-
64
from catkin_pkg.python_setup import generate_distutils_setup
75

86
# fetch values from package.xml

logitech_r400/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from __future__ import absolute_import
2-
31
from distutils.core import setup
4-
52
from catkin_pkg.python_setup import generate_distutils_setup
63

74
# fetch values from package.xml

shuttle_xpress/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from __future__ import absolute_import
2-
31
from distutils.core import setup
4-
52
from catkin_pkg.python_setup import generate_distutils_setup
63

74
# fetch values from package.xml

sr_hazard_light/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from __future__ import absolute_import
2-
31
from distutils.core import setup
4-
52
from catkin_pkg.python_setup import generate_distutils_setup
63

74
# fetch values from package.xml

sr_leap_motion/src/sr_leap_motion.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# You should have received a copy of the GNU General Public License along
1515
# with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
from __future__ import absolute_import
18-
1917
import rospy
2018
from geometry_msgs.msg import Quaternion, TransformStamped
2119
from leap_motion.msg import Human
@@ -73,11 +71,11 @@ def frame(self, human):
7371
self.heartbeat_publisher.publish(not ((not self.left_tfs) and (not self.right_tfs)))
7472

7573
def publish_tfs(self, transforms, root_tf_name):
76-
buffer = Buffer()
74+
tf_buffer = Buffer()
7775
tf_authority = ""
7876
root_tf_found = False
7977
for transform in transforms:
80-
buffer.set_transform(transform, tf_authority)
78+
tf_buffer.set_transform(transform, tf_authority)
8179
if transform.child_frame_id == root_tf_name:
8280
root_tf_found = True
8381
# If the requested root TF name isn't one of the TFs reported by Leap Motion, report all TFs relative to Leap
@@ -90,7 +88,7 @@ def publish_tfs(self, transforms, root_tf_name):
9088
else:
9189
for transform in transforms:
9290
if transform.child_frame_id != root_tf_name:
93-
reparented_tf = buffer.lookup_transform(root_tf_name, transform.child_frame_id, rospy.Time())
91+
reparented_tf = tf_buffer.lookup_transform(root_tf_name, transform.child_frame_id, rospy.Time())
9492
self.transform_broadcaster.sendTransform(reparented_tf)
9593

9694
def common_frame(self, human, hand=None, arm_prefix="ra_", hand_prefix="rh_"):

sr_leap_motion/src/sr_leap_ros_driver.py

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
# You should have received a copy of the GNU General Public License along
1414
# with this program. If not, see <http://www.gnu.org/licenses/>.
1515

16-
17-
from __future__ import absolute_import, division
18-
1916
import Leap
2017
import numpy
2118
import rospy

sr_pedal/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from __future__ import absolute_import
2-
31
from distutils.core import setup
4-
52
from catkin_pkg.python_setup import generate_distutils_setup
63

74
# fetch values from package.xml

sr_pedal/src/sr_pedal/sr_triple_pedal_mock.py

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# You should have received a copy of the GNU General Public License along
1717
# with this program. If not, see <http://www.gnu.org/licenses/>.
1818

19-
from __future__ import absolute_import
20-
2119
import sys
2220
from threading import Lock, Thread
2321
import rospy

sr_piezo_feedback/src/biotac_mock_source.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# You should have received a copy of the GNU General Public License along
1515
# with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
from __future__ import absolute_import
18-
1917
import numpy as np
2018
import rospy
2119
from sr_robot_msgs.msg import Biotac, BiotacAll

sr_piezo_feedback/src/pst_mock_source.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# You should have received a copy of the GNU General Public License along
1515
# with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
from __future__ import absolute_import
18-
1917
import numpy as np
2018
import rospy
2119
from sr_robot_msgs.msg import ShadowPST

sr_piezo_feedback/src/sr_piezo_feedback_node.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# You should have received a copy of the GNU General Public License along
1515
# with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
from __future__ import absolute_import, division
18-
1917
import math
2018
import threading
2119
import time

sr_teleop_manager/scripts/sr_teleop_manager/remote_power_control.py

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# You should have received a copy of the GNU General Public License along
1414
# with this program. If not, see <http://www.gnu.org/licenses/>.
1515

16-
from __future__ import absolute_import
17-
1816
import os
1917
import subprocess
2018
import threading

sr_teleop_manager/setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from __future__ import absolute_import
2-
31
from distutils.core import setup
4-
52
from catkin_pkg.python_setup import generate_distutils_setup
63

74
d = generate_distutils_setup(

0 commit comments

Comments
 (0)