A joint connects a parent link to a child link. The pose of the
child link frame relative to the parent link frame is
$${}^{parent}T_{child}(q) = T_{origin}\, M(q)\, T_{post},$$
where \(T_{origin}\) is the fixed joint frame (the URDF <origin>),
\(M(q)\) is a rotation by \(q + offset\) about axis
(revolute and continuous joints) or a translation by
\((q + offset)\) along axis (prismatic joints), and
\(T_{post}\) is an optional fixed transform applied after the motion.
URDF joints use \(T_{post} = I\); Denavit-Hartenberg models use it to
place the link frame at the DH frame. The axis is expressed in the joint
frame and normalized.
Usage
robot_joint(
name,
type = c("revolute", "continuous", "prismatic", "fixed"),
parent,
child,
origin = robot_pose(),
axis = c(0, 0, 1),
limits = NULL,
velocity = NULL,
acceleration = NULL,
effort = NULL,
offset = 0,
post = NULL
)Arguments
- name
Joint name.
- type
One of
"revolute","continuous","prismatic","fixed".- parent, child
Names of the parent and child links.
- origin
Fixed
robot_pose(SE(3)) of the joint frame in the parent link frame.- axis
Joint axis in the joint frame.
- limits
Length-2 vector
c(lower, upper)of position limits.- velocity, acceleration, effort
Optional nonnegative limits.
- offset
Constant added to the joint variable before the motion.
- post
Optional fixed
robot_poseapplied after the motion.