3 from .urdf_test_case
import UrdfTestCase, PKG
4 from urdf_parser_py.urdf
import URDF, Mesh, Cylinder, Sphere
6 file =
'dual_panda/dual_panda_example.urdf.xacro' 11 urdf = self.
xacro(file)
15 urdf = self.
xacro(file, args=
'arm_id_1:=%s' % arm_id)
16 for link
in [
'%s_link%s' % (arm_id, i)
for i
in range(0, 9)]:
21 urdf = self.
xacro(file, args=
'arm_id_1:=%s' % arm_id)
22 for joint
in [
'%s_joint%s' % (arm_id, i)
for i
in range(1, 9)]:
27 urdf = self.
xacro(file, args=
'arm_id_2:=%s' % arm_id)
28 for link
in [
'%s_link%s' % (arm_id, i)
for i
in range(0, 9)]:
33 urdf = self.
xacro(file, args=
'arm_id_2:=%s' % arm_id)
34 for joint
in [
'%s_joint%s' % (arm_id, i)
for i
in range(1, 9)]:
38 if __name__ ==
'__main__':
40 rosunit.unitrun(PKG,
'dual_panda_example.urdf.xacro', TestPandaArmExampleURDF)
def test_generate_urdf_without_args_is_possible(self)
def test_custom_arm_id_2_renames_joints(self)
def test_custom_arm_id_1_renames_joints_1_up_to_8(self)
def assertContainsLink(self, urdf, link)
def test_custom_arm_id_1_renames_links_0_up_to_8(self)
def assertContainsJoint(self, urdf, joint)
def xacro(self, file, args='')
def test_custom_arm_id_2_renames_links_0_up_to_8(self)