Skip to content

Commit

Permalink
Fix bug in SampledConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bjack205 committed Mar 28, 2022
1 parent 5731b66 commit 22020a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RobotDynamics"
uuid = "38ceca67-d8d3-44e8-9852-78a5596522e1"
authors = ["Brian Jackson <[email protected]>"]
version = "0.4.4"
version = "0.4.5"

[deps]
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
Expand Down
2 changes: 1 addition & 1 deletion src/trajectories.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function SampledTrajectory{Nx,Nu}(X::Vector, U::Vector; kwargs...) where {Nx, Nu
if length(U) == length(X)
push!(Z, KnotPoint{Nx,Nu}(length(X[end]), length(U[end]), [X[end]; U[end]], times[N], Inf))
else
push!(Z, KnotPoint{Nx,Nu}(length(X[end]), length(U[end]), [X[end]; U[1]*0], times[N], 0.0))
push!(Z, KnotPoint{Nx,Nu}(length(X[end]), length(U[end]), [X[end]; U[end]*0], times[N], 0.0))
end
return SampledTrajectory(Z)
end
Expand Down

2 comments on commit 22020a2

@bjack205
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/57549

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.5 -m "<description of version>" 22020a22da96f83b59ecc43f025ce3de01bf65ed
git push origin v0.4.5

Please sign in to comment.