Skip to content

Commit 3797d61

Browse files
committed
deactivate robot jacobian calculation
1 parent 9485e4a commit 3797d61

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/src/examples/robot.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,14 @@ fkine(prob.u0, prob.p, 0)
130130
!!! note
131131
The function `fkine` above takes the full state of the robot model, as opposed to only the joint angles.
132132

133-
### Jacobian
134-
We can compute the Jacobian ``J`` of the forward-kinematics function using the package ForwardDiff (this Jacobian is often referred to as the _analytical Jacobian_, which in the 6DOF case is different from the _geometrical Jacobian_ that is used in the relation ``v = J\dot{q}``). The Jacobian of the end-effector positional coordinates will be a 3×36 matrix, since we have 36-dimensional state of the robot after simplification. Since the end-effector coordinates do not depend on all the state variables, we may ask which variables it depends on by finding non-zero columns of ``J``
135-
```@example robot
136-
using ModelingToolkit.ForwardDiff
137-
J = ForwardDiff.jacobian(x->fkine(x, prob.p, 0), prob.u0)
138-
nonzero_inds = findall(any(!iszero, J, dims=1)[:])
139-
unknowns(ssys)[nonzero_inds]
140-
```
141-
We see that the end-effector position depends on all mechanical angles except for the last one, which is expected since the end-effector origin is on the axis of rotation of joint 6.
142-
133+
```@setup
134+
# ### Jacobian # Temporarily deactivated
135+
# We can compute the Jacobian ``J`` of the forward-kinematics function using the package ForwardDiff (this Jacobian is often referred to as the _analytical Jacobian_, which in the 6DOF case is different from the _geometrical Jacobian_ that is used in the relation ``v = J\dot{q}``). The Jacobian of the end-effector positional coordinates will be a 3×36 matrix, since we have 36-dimensional state of the robot after simplification. Since the end-effector coordinates do not depend on all the state variables, we may ask which variables it depends on by finding non-zero columns of ``J``
136+
# ```@example robot
137+
# using ModelingToolkit.ForwardDiff
138+
# J = ForwardDiff.jacobian(x->fkine(x, prob.p, 0), prob.u0)
139+
# nonzero_inds = findall(any(!iszero, J, dims=1)[:])
140+
# unknowns(ssys)[nonzero_inds]
141+
# ```
142+
# We see that the end-effector position depends on all mechanical angles except for the last one, which is expected since the end-effector origin is on the axis of rotation of joint 6.
143+
```

0 commit comments

Comments
 (0)