Skip to content

Commit 2d6a55a

Browse files
committed
add some joint assemblies
MWE updates
1 parent aaf4d95 commit 2d6a55a

File tree

6 files changed

+537
-23
lines changed

6 files changed

+537
-23
lines changed

src/Multibody.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Multibody
2-
2+
# Find variables that are both array form and scalarized / collected
3+
# foreach(println, sort(unknowns(IRSystem(model)), by=string))
34
using LinearAlgebra
45
using ModelingToolkit
56
using JuliaSimCompiler
@@ -172,6 +173,4 @@ include("robot/path_planning.jl")
172173
include("robot/robot_components.jl")
173174
include("robot/FullRobot.jl")
174175

175-
176-
177176
end

src/components.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Can be thought of as a massless rod. For a massive rod, see [`BodyShape`](@ref)
123123
@component function FixedTranslation(; name, r, radius=0.02f0, color = purple)
124124
@named frame_a = Frame()
125125
@named frame_b = Frame()
126-
@parameters r[1:3]=r [
126+
@parameters r[1:3]=collect(r) [
127127
description = "position vector from frame_a to frame_b, resolved in frame_a",
128128
]
129129
r = collect(r)

0 commit comments

Comments
 (0)