Skip to content

Commit

Permalink
add some joint assemblies
Browse files Browse the repository at this point in the history
MWE

updates
  • Loading branch information
baggepinnen committed Aug 8, 2024
1 parent aaf4d95 commit 2d6a55a
Show file tree
Hide file tree
Showing 6 changed files with 537 additions and 23 deletions.
5 changes: 2 additions & 3 deletions src/Multibody.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Multibody

# Find variables that are both array form and scalarized / collected
# foreach(println, sort(unknowns(IRSystem(model)), by=string))
using LinearAlgebra
using ModelingToolkit
using JuliaSimCompiler
Expand Down Expand Up @@ -172,6 +173,4 @@ include("robot/path_planning.jl")
include("robot/robot_components.jl")
include("robot/FullRobot.jl")



end
2 changes: 1 addition & 1 deletion src/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Can be thought of as a massless rod. For a massive rod, see [`BodyShape`](@ref)
@component function FixedTranslation(; name, r, radius=0.02f0, color = purple)
@named frame_a = Frame()
@named frame_b = Frame()
@parameters r[1:3]=r [
@parameters r[1:3]=collect(r) [
description = "position vector from frame_a to frame_b, resolved in frame_a",
]
r = collect(r)
Expand Down
Loading

0 comments on commit 2d6a55a

Please sign in to comment.