🐍 Python API¶
All classes listed here are available directly from the top-level franky module, e.g. from franky import Robot.
For a task-oriented introduction, see the guide.
Robot¶
The central classes for connecting to and configuring the robot. See the Robot chapter of the guide for an introduction.
A class representing a Franka robot, and the main entry point of franky. |
|
A wrapper around franka::Model that uses Eigen types. |
|
Enumerates the seven joints, the flange, and the end effector of a robot. |
|
Full state of the robot |
|
Enumerates errors that can occur while controlling a franka::Robot. |
|
Describes the robot's current mode. |
|
Used to decide whether to enforce realtime mode for a control loop thread. |
|
Available controller modes for a franka::Robot. |
|
Type of control signal. |
|
Represents a duration with millisecond resolution. |
|
Relative dynamics factors |
|
A template class representing a dynamics limit with a maximum value. |
|
A template class representing a dynamics limit with a maximum value. |
Geometry and Kinematic State¶
Types describing poses, twists, and joint-space and Cartesian-space states. See the Geometry chapter of the guide for an introduction.
A rigid 3D transformation consisting of a translation and a rotation. |
|
Twist of a frame. |
|
Acceleration of a frame (2nd time derivative of a pose, consisting of a linear and an angular acceleration). |
|
Cartesian pose of a robot. |
|
Cartesian velocity of a robot. |
|
Elbow state of the robot. |
|
Flip direction of a joint. |
|
Cartesian state of a robot. |
|
Stores values for Cartesian pose motion generation. |
|
Stores values for Cartesian velocity motion generation. |
|
Joint state of a robot. |
|
Stores values for joint position motion generation. |
|
Stores values for joint velocity motion generation. |
|
Stores joint-level torque commands without gravity and friction. |
|
Enum class for reference types. |
|
Cartesian impedance reference expressed in the base frame. |
|
Joint-space reference for joint impedance motions. |
Trajectory Motions¶
Motion types for the four trajectory control modes. See the Trajectory Control chapter of the guide for an introduction.
Joint Position Control¶
Joint motion with a single target. |
|
Joint waypoint motion. |
|
A position waypoint with a target and optional parameters. |
|
Stop motion for joint position control mode. |
|
Base class for motions. |
Joint Velocity Control¶
Joint velocity motion with a single target. |
|
Joint velocity waypoint motion. |
|
A waypoint with a target and optional parameters. |
|
Stop motion for joint velocity control mode. |
|
Base class for motions. |
Cartesian Position Control¶
Cartesian motion with a single target. |
|
Cartesian waypoint motion. |
|
A position waypoint with a target and optional parameters. |
|
Stop motion for cartesian pose control mode. |
|
Base class for motions. |
Cartesian Velocity Control¶
Cartesian velocity motion with a single target velocity. |
|
Cartesian velocity waypoint motion. |
|
A waypoint with a target and optional parameters. |
|
Stop motion for cartesian velocity control mode. |
|
Base class for motions. |
Impedance and Torque Control¶
Client-side impedance controllers running in torque mode. See the Impedance Control chapter of the guide for an introduction.
Base class for motions. |
|
Base class for client-side joint impedance motions. |
|
Client-side joint impedance controller. |
|
Client-side joint impedance controller with a dynamic online reference. |
|
A long-lived session for streaming joint impedance tracking commands. |
|
Runtime-adjustable stiffness and damping gains for joint impedance motions. |
|
Parameters for joint impedance motions. |
|
Base class for client-side cartesian impedance motions. |
|
Cartesian impedance motion. |
|
Cartesian impedance tracking motion. |
|
Long-lived session for streaming Cartesian impedance tracking commands. |
|
Sentinel type for |
|
Runtime-adjustable stiffness and damping gains for Cartesian impedance motions. |
|
Parameters for the impedance motion. |
|
Parameters for the Cartesian impedance motion. |
|
Runtime-adjustable gains for a nullspace task. |
|
Joint-posture objective projected into the Cartesian nullspace. |
|
Manipulability maximization objective projected into the Cartesian nullspace. |
|
Per-joint friction feedforward settings for torque-control motions. |
|
Shared torque safety limits and soft joint-limit repulsion settings for torque-control motions. |
|
Graceful stop for torque-control (impedance) motions. |
|
Parameters for the torque-control stop motion (StopMotion<franka::Torques>). |
|
Direct joint torque control with a signal watchdog. |
|
Parameters for SimpleTorqueMotion. |
Reactions¶
Real-time reactions to sensor events. See the Real-Time Reactions chapter of the guide for an introduction.
A reaction that can be attached to a motion. |
|
A condition on the robot state. |
|
A measure on the robot state. |
|
A reaction that replaces the current motion with a torque motion. |
|
A reaction that replaces the current motion with a joint position motion. |
|
A reaction that replaces the current motion with a joint velocity motion. |
|
A reaction that replaces the current motion with a Cartesian pose motion. |
|
A reaction that replaces the current motion with a Cartesian velocity motion. |
Gripper¶
Control of the Franka Hand. See the Gripper chapter of the guide for an introduction.
A wrapper around the franka::Gripper class that adds asynchronous functionality. |
|
Describes the gripper state. |
|
A future that will eventually contain a boolean result, e.g. of an asynchronous gripper command. |
Desk API¶
Programmatic access to the Franka Desk web interface. See the Desk API chapter of the guide for an introduction.
Robot web session for the current Franka Desk API (v1). |
|
Desk web session for the legacy Franka Desk API. |
|
Base class for sessions with the Franka Desk web interface. |
|
Buttons on the Franka Desk Pilot interface. |
|
A single Pilot button state change. |
|
State of the robot's joint brakes. |
|
Operating mode of the robot as reported by Franka Desk. |
Exceptions¶
Base class for all exceptions used by libfranka. |
|
CommandException is thrown if an error occurs during command execution. |
|
ControlException is thrown if an error occurs during motion generation or torque control. |
|
Exception thrown by the gripper class. |
|
IncompatibleVersionException is thrown if the robot does not support this version of libfranka. |
|
Exception thrown when an invalid motion type is used. |
|
InvalidOperationException is thrown if an operation cannot be performed. |
|
ModelException is thrown if an error occurs when loading the model library. |
|
Exception thrown when a motion is started more than once. |
|
NetworkException is thrown if a connection to the robot cannot be established, or when a timeout occurs. |
|
ProtocolException is thrown if the robot returns an incorrect message. |
|
Exception thrown when the reaction recursion limit (16) is reached. |
|
RealtimeException is thrown if realtime priority cannot be set. |
|
Thrown when a SimpleTorqueMotion does not receive a new torque signal in time. |
|
Base class for errors raised by the Desk classes. |
|
Raised when the Franka web API returns an error response. |
|
Raised when control over the robot could not be obtained within the timeout. |