Skip to content

Commit 31c093c

Browse files
committed
minor URDF fixes
1 parent 7587087 commit 31c093c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Multibody.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ urdf2multibody(joinpath(dirname(pathof(Multibody)), "..", "test/doublependulum.u
121121
`render_fixed = false`: Whether or not to render "fixed" joints. These joints aren't actually joints (no degrees of freedom), they are translated to FixedTranslation or FixedRotation components.
122122
"""
123123
function urdf2multibody end
124-
export urdf2multibody, URDFRevolute, URDFPrismatic
124+
export urdf2multibody, URDFRevolute, URDFPrismatic, NullJoint
125125

126126
const t = let
127127
(@independent_variables t)[1]

src/joints.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,9 @@ end
807807

808808
end
809809

810-
@component function URDFRevolute(; name, r, R, axisflange = false, kwargs...)
810+
@component function URDFRevolute(; name, r, R=I(3), axisflange = false, kwargs...)
811811
if R == I(3) && r == zeros(3)
812-
return j
812+
return Revolute(; axisflange, name, kwargs...)
813813
end
814814

815815
systems = @named begin
@@ -848,7 +848,7 @@ end
848848

849849
@component function URDFPrismatic(; name, r, R, axisflange = false, kwargs...)
850850
if R == I(3) && r == zeros(3)
851-
return j
851+
return Prismatic(; axisflange, name, kwargs...)
852852
end
853853

854854
systems = @named begin

0 commit comments

Comments
 (0)