Skip to content

Commit

Permalink
pr fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Lautman committed Mar 14, 2019
1 parent 70e335f commit 693f265
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ def test_full_srdf(self):
self.assertTrue( xml_matches(robot.to_xml_string(False),expected))


# def test_simple_srdf(self):
# _, package_path = get_resource("packages", PKG)
# fname = os.path.join(
# package_path, "share", PKG, "resources", "pr2_desc.1.srdf")
# stream = open(fname, 'r')
# robot = SRDF.from_xml_string(stream.read())
# stream.close()
# self.assertTrue(len(robot.virtual_joints)==0)
# self.assertTrue(len(robot.groups)==0)
# self.assertTrue(len(robot.group_states)==0)
# self.assertTrue(len(robot.disable_collisionss)==0)
# self.assertTrue(len(robot.end_effectors)==0)
def test_simple_srdf(self):
_, package_path = get_resource("packages", PKG)
fname = os.path.join(
package_path, "share", PKG, "resources", "pr2_desc.1.srdf")
stream = open(fname, 'r')
robot = SRDF.from_xml_string(stream.read())
stream.close()
self.assertTrue(len(robot.virtual_joints)==0)
self.assertTrue(len(robot.groups)==0)
self.assertTrue(len(robot.group_states)==0)
self.assertTrue(len(robot.disable_collisionss)==0)
self.assertTrue(len(robot.end_effectors)==0)

def test_medium_srdf(self):
_, package_path = get_resource("packages", PKG)
Expand Down

0 comments on commit 693f265

Please sign in to comment.