Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP][ros_bridge] Fix to tork-a/rtmros_nextage#308.
Browse files Browse the repository at this point in the history
130s committed Apr 27, 2017
1 parent 22145d4 commit 4a617de
Showing 2 changed files with 4 additions and 4 deletions.
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
@@ -471,7 +471,6 @@ def getRTCList(self, rtcs_str=None):
required RTCs.
'''
if rtcs_str:
print('[getRTCList][DEBUG] In rtcs_str')
if not isinstance(rtcs_str, basestring):
raise TypeError('rtcs_str needs to be string.')
# Set a new list of RTCs
@@ -501,6 +500,7 @@ def getRTCList(self, rtcs_str=None):
self._RTC_list.append(['rmfo', "AbsoluteForceSensor"])
else:
print "Component rmfo is not loadable."
print('[getRTCList][DEBUG] _RTC_list: {}'.format(self._RTC_list))
return self._RTC_list

# hand interface
6 changes: 3 additions & 3 deletions hironx_ros_bridge/test/test_hironx_client.py
Original file line number Diff line number Diff line change
@@ -85,9 +85,9 @@ def test_getRTCList_customrtcs_args_wrong(self):
'''
# Passing 1st elems from _RTC_LIST_CUSTOM,
# but list is not the right type of arg.
self.assertRaises(
TypeError,
self.robot.getRTCList(rtcs_str=['seq', 'sh', 'fk', 'el', 'co', 'log']))
with self.assertRaises(TypeError):
# http://stackoverflow.com/questions/6103825/how-to-properly-use-unit-testings-assertraises-with-nonetype-objects
self.robot.getRTCList(rtcs_str=['seq', 'sh', 'fk', 'el', 'co', 'log'])

# Passing the list of RTCs falling short of requirement.
self.assertRaises(

0 comments on commit 4a617de

Please sign in to comment.