-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for TORA v0.2.0
#4
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks to @MasonProtter for the help with StaticArrays.jl. ```julia function f(x, state, result) set_configuration!(state, x) set_velocity!(state, x) dynamics!(result, state, x) end x = @svector rand(robot.n_τ) # 2.531 μs (0 allocations: 0 bytes) @Btime $f($x, $robot.statecache[Float64], $robot.dynamicsresultcache[Float64]) dx = @mVector zeros(robot.n_q + robot.n_v) x = @svector rand(2*robot.n_q + 2*robot.n_v + robot.n_τ) h = 0.001 # Current: 2.642 μs (0 allocations: 0 bytes) # Previous: 3.188 μs (12 allocations: 1.83 KiB) @Btime TORA.forward_dynamics_defects!($dx, $robot, $x, $h) ```
`Array{T}` is not a concrete type; replacing them with `Vector{T}`. Could also have used `Array{T,1}`.
``` Before: 2.120 μs (26 allocations: 4.80 KiB) After: 1.110 μs ( 0 allocations: 0 bytes) ```
git-subtree-dir: kinova-ros git-subtree-split: 38293ed73bc230e9ca7e7312fc268736821fd9cc
Replacing `Array{Float64,1}` and `Array{Float64,2}` with their aliases, i.e., `Vector{Float64}` and `Matrix{Float64}`, respectively.
…`ros_kortex` These shall be added as Julia [Artifacts](https://pkgdocs.julialang.org/v1/artifacts/) in the next commit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The diff highlights are:
AFAICT, this includes no breaking changes.