rebot_control.joint_filter¶
Joint-target conditioning between the caller (IK, joint commands) and the servo thread.
Per control cycle, in this order:
clip to the soft joint limits;
refuse a target more than
max_jumpfrom the previous target (CommandRejected): a jump that large in one cycle is a bug or a bad IK solution, never a valid command;rate limit: move the target at most
max_joint_speed * dtfrom the previous target (not from the measured position, which would cap the torque instead of the speed);first-order low-pass filter with time constant
filter_tau_s(takes input jitter and IK steps out of the motion).
Module Contents¶
Classes¶
API¶
- class rebot_control.joint_filter.JointTargetFilter(lower: numpy.ndarray, upper: numpy.ndarray, dt: float, max_jump: float, max_speed: float, filter_tau: float, joint_names: list[str] | None = None)¶
Initialization
- reset(q: numpy.ndarray | None) None¶
Start from
q(the measured pose), or forget the history withNone.
- __call__(q_des: numpy.ndarray, q_meas: numpy.ndarray) numpy.ndarray¶