Skip to content

Commit

Permalink
[hironx py] Fix a new bug added in start-jsk#487.
Browse files Browse the repository at this point in the history
Function object cannot be compared with a string.
  • Loading branch information
130s committed Mar 23, 2017
1 parent eaab646 commit e701502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hironx_ros_bridge/src/hironx_ros_bridge/hironx_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _get_geometry(self, method, frame_name=None):
'getCurrentReference', 'getCurrentRPY',
'getReferencePose', 'getReferencePosition',
'getReferenceReference', 'getReferenceRPY']
if method not in _geometry_methods:
if method.__name__ not in _geometry_methods:
raise RuntimeError("Passed method {} is not supported.".format(method))
for kinematic_group in self.Groups:
# The last element is usually an eef in each kinematic group,
Expand Down

0 comments on commit e701502

Please sign in to comment.