Skip to content

Commit

Permalink
urdf: Changed ordering of tags to match that of romeo.urdf
Browse files Browse the repository at this point in the history
test: Added in romeo test (fuerte branch)
  • Loading branch information
eacousineau committed Jul 11, 2013
1 parent 7518c17 commit d2897a1
Show file tree
Hide file tree
Showing 6 changed files with 2,134 additions and 147 deletions.
24 changes: 12 additions & 12 deletions urdf_parser_py/src/urdf_parser_py/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def check_valid(self):
assert self.xyz is not None or self.rpy is not None

xmlr.reflect(Pose, params = [
xmlr.Attribute('rpy', 'vector3', False),
xmlr.Attribute('xyz', 'vector3', False)
xmlr.Attribute('xyz', 'vector3', False),
xmlr.Attribute('rpy', 'vector3', False)
])


Expand Down Expand Up @@ -200,9 +200,9 @@ def __init__(self, mass = 0.0, inertia = None, origin=None):
self.origin = origin

xmlr.reflect(Inertial, params = [
origin_element,
xmlr.Element('mass', 'element_value'),
xmlr.Element('inertia', Inertia, False),
origin_element
xmlr.Element('inertia', Inertia, False)
])


Expand All @@ -227,17 +227,17 @@ def __init__(self, effort=None, velocity=None, lower=None, upper=None):

xmlr.reflect(JointLimit, params = [
xmlr.Attribute('effort', float),
xmlr.Attribute('velocity', float),
xmlr.Attribute('lower', float),
xmlr.Attribute('upper', float)
xmlr.Attribute('upper', float),
xmlr.Attribute('velocity', float)
])

#FIXME: we are missing __str__ here.
class JointMimic(xmlr.Object):
def __init__(self, joint_name=None, multiplier=None, offset=None):
self.joint_name = joint_name
self.joint = joint_name
self.multiplier = multiplier
self.offset = offset
self.offset = offset

xmlr.reflect(JointMimic, params = [
xmlr.Attribute('joint', str),
Expand Down Expand Up @@ -284,10 +284,10 @@ def check_valid(self):
xmlr.reflect(Joint, params = [
name_attribute,
xmlr.Attribute('type', str),
xmlr.Element('parent', 'element_link'),
xmlr.Element('child', 'element_link'),
origin_element,
xmlr.Element('axis', 'element_xyz', False),
xmlr.Element('parent', 'element_link'),
xmlr.Element('child', 'element_link'),
xmlr.Element('limit', JointLimit, False),
xmlr.Element('dynamics', JointDynamics, False),
xmlr.Element('safety_controller', SafetyController, False),
Expand All @@ -307,9 +307,9 @@ def __init__(self, name=None, visual=None, inertial=None, collision=None, origin
xmlr.reflect(Link, params = [
name_attribute,
origin_element,
xmlr.Element('inertial', Inertial, False),
xmlr.Element('visual', Visual, False),
xmlr.Element('collision', Collision, False),
xmlr.Element('inertial', Inertial, False)
xmlr.Element('collision', Collision, False)
])


Expand Down
130 changes: 0 additions & 130 deletions urdf_parser_py/test/pelican_gen_mer.patch

This file was deleted.

5 changes: 0 additions & 5 deletions urdf_parser_py/test/pelican_test.sh

This file was deleted.

File renamed without changes.
Loading

0 comments on commit d2897a1

Please sign in to comment.