Skip to content

Commit 22020a2

Browse files
committed
Fix bug in SampledConstructor
1 parent 5731b66 commit 22020a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RobotDynamics"
22
uuid = "38ceca67-d8d3-44e8-9852-78a5596522e1"
33
authors = ["Brian Jackson <[email protected]>"]
4-
version = "0.4.4"
4+
version = "0.4.5"
55

66
[deps]
77
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"

src/trajectories.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function SampledTrajectory{Nx,Nu}(X::Vector, U::Vector; kwargs...) where {Nx, Nu
107107
if length(U) == length(X)
108108
push!(Z, KnotPoint{Nx,Nu}(length(X[end]), length(U[end]), [X[end]; U[end]], times[N], Inf))
109109
else
110-
push!(Z, KnotPoint{Nx,Nu}(length(X[end]), length(U[end]), [X[end]; U[1]*0], times[N], 0.0))
110+
push!(Z, KnotPoint{Nx,Nu}(length(X[end]), length(U[end]), [X[end]; U[end]*0], times[N], 0.0))
111111
end
112112
return SampledTrajectory(Z)
113113
end

0 commit comments

Comments
 (0)