-
Notifications
You must be signed in to change notification settings - Fork 5
pyFRI.tools.state_estimators
Chris Mower edited this page Jul 24, 2023
·
1 revision
The pyFRI.tools.state_estimators
provides an interface to monitor various aspects of the robot state.
The JointStateEstimator
class keeps track of the joint position, velocity, and acceleration using the finite difference method.
The joint velocities and accelerations are estimated using a window of the previous three joint positions.
Initialize the JointStateEstimator
with the specified client.
Parameters:
-
client
[pyFRI.LBRClient
]: An instance of the client for communication with the robot.
Get the joint positions from the buffer.
Parameters:
-
idx
[int
]: The index of the joint positions relative to the latest data.
Returns:
-
q
[numpy.ndarray
]: A numpy array containing the joint positions at the specified index.
Get the joint velocities from the buffer.
Parameters:
-
idx
[int
]: The index of the joint velocities relative to the latest data.
Returns:
-
dq
[numpy.ndarray
]: A numpy array containing the joint velocities at the specified index.
Get the joint accelerations from the buffer.
Parameters:
-
idx
[int
]: The index of the joint accelerations relative to the latest data.
Returns:
-
dq
[numpy.ndarray
]: A numpy array containing the joint accelerations at the specified index.
Get the current joint positions.
Returns:
-
q
[numpy.ndarray
]: A numpy array containing the current joint positions.
Get the current joint velocities.
Returns:
-
dq
[numpy.ndarray
]: A numpy array containing the current joint velocities.
Get the current joint accelerations.
Returns:
-
ddq
[numpy.ndarray
]: A numpy array containing the current joint accelerations.
TODO
TODO
TODO
TODO
TODO
TODO