Skip to content

Commit 11a98db

Browse files
committed
add some joint assemblies
MWE updates
1 parent 5275ee6 commit 11a98db

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,7 +1,8 @@
11
# Find variables that are both array form and scalarized / collected
22
# foreach(println, sort(unknowns(IRSystem(model)), by=string))
33
module Multibody
4-
4+
# Find variables that are both array form and scalarized / collected
5+
# foreach(println, sort(unknowns(IRSystem(model)), by=string))
56
using LinearAlgebra
67
using ModelingToolkit
78
using JuliaSimCompiler
@@ -208,6 +209,4 @@ include("robot/path_planning.jl")
208209
include("robot/robot_components.jl")
209210
include("robot/FullRobot.jl")
210211

211-
212-
213212
end

src/components.jl

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

0 commit comments

Comments
 (0)