Skip to content
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

Add SinCosRevolute joint type #512

Merged
merged 2 commits into from
Nov 9, 2018
Merged

Add SinCosRevolute joint type #512

merged 2 commits into from
Nov 9, 2018

Conversation

tkoolen
Copy link
Collaborator

@tkoolen tkoolen commented Nov 8, 2018

@rdeits, so I got the trig poly type working with RBD.jl (I'll probably create a new package for that at some point), but then I thought: you don't even need that if you just add a joint type that uses [s, c] = [sin(theta); cos(theta)] as its configuration vector (just another overparameterized joint type, just like e.g. QuaternionSpherical). Then you can just run regular polynomials through the algorithms.

Also add some missing @boundschecks and remove some bad @inbounds annotations.

@codecov-io
Copy link

codecov-io commented Nov 8, 2018

Codecov Report

Merging #512 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #512      +/-   ##
==========================================
+ Coverage   99.28%   99.29%   +<.01%     
==========================================
  Files          37       38       +1     
  Lines        1681     1696      +15     
==========================================
+ Hits         1669     1684      +15     
  Misses         12       12
Impacted Files Coverage Δ
src/joint_types/quaternion_spherical.jl 100% <ø> (ø) ⬆️
src/joint_types/joint_types.jl 100% <ø> (ø) ⬆️
src/joint_types/revolute.jl 100% <100%> (ø) ⬆️
src/joint_types/prismatic.jl 100% <100%> (ø) ⬆️
src/joint_types/sin_cos_revolute.jl 100% <100%> (ø)
src/joint_types/spquat_floating.jl 100% <100%> (ø) ⬆️
src/joint.jl 100% <100%> (ø) ⬆️
src/joint_types/quaternion_floating.jl 100% <100%> (ø) ⬆️
src/mechanism_modification.jl 97.11% <0%> (-0.03%) ⬇️
src/spatial/util.jl 100% <0%> (ø) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9396284...2ebb988. Read the comment docs.

@tkoolen tkoolen merged commit 34d2fef into master Nov 9, 2018
@tkoolen tkoolen deleted the tk/sincosrevolute branch November 9, 2018 02:10
@rdeits
Copy link
Collaborator

rdeits commented Nov 9, 2018

Oh, awesome! I feel like we must have talked about doing that a long time ago, but it's really cool to see it actually working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants