Franka Control Interface (FCI) Logo

Contents:

  • Overview
  • Minimum system and network requirements
  • Compatible versions
  • Installation on Linux
  • Getting started
  • libfranka
  • franka_ros
  • franka_ros2
  • Franka Toolbox for MATLAB
    • Compatible versions
    • System Requirements
    • Installation
    • Getting started
    • Fanka Library for Simulink - Reference
      • Robot Control
      • Robot State
      • Duration Period
      • Gripper State
      • Mass Matrix
      • Coriolis
      • Gravity
      • Jacobian
      • Pose
    • Franka Library for MATLAB - Reference
    • Troubleshooting
  • Franka Toolbox for MATLAB changelog
  • Robot and interface specifications
  • FR3 certification remarks
  • Troubleshooting
  • FAQ
Franka Control Interface (FCI)
  • »
  • Franka Toolbox for MATLAB »
  • Fanka Library for Simulink - Reference
  • View page source

Fanka Library for Simulink - Reference

Hint

Regarding the input/output signal nomenclature, datatypes, and sizes, the libfranka definitions have been fully adopted. You can find the complete list of signals here. The column-major format for signals has been adopted as well.

Robot Control

../_images/robot_control.png

Robot Control Simulink Block.

This is the main block of the Franka Simulink Library. It is responsible for applying the desired robot parameters and control signals to the robot.

The robot settings can be applied through the block parameters.

../_images/block_parameters_robot_control.png

Robot Control Simulink Block Settings.

Hint

If desired, an initial robot configuration can be applied before the main execution of the control loop. Namely, the robot will move to the desired configuration and only then the main execution of the Simulink model will take place. You can define that in the Initial Configuration section of the block settings.

Robot State

../_images/get_robot_state.png

Robot State Simulink Block.

For reading the desired set of signals stemming from the current robot state, you can free-type the names of the signals in the Parameters pane of the block parameters. For the set of available signals and their namings –> Robot State Attributes

../_images/get_robot_state_settings.png

Get initial robot state Simulink Block Settings.

Duration Period

../_images/duration.png

Get duration from last main callback(Sample Time) Simulink Block.

This Simulink block outputs the duration from the last execution step in seconds. Ideally this should be always 0.001 seconds but due to lost packages during communication errors 0.002 secs or 0.003 secs could be seen.

Warning

The step count of the Simulink model does not change during these communication mishaps. It continues to increment even though an execution step has been lost in reality. Therefore, special design considerations are necessary, especially for sensitive position motion generators. For example, refer to the generate_cartesian_pose_motion.slx demo to see how the main “clock” of the application has been designed.

Gripper State

../_images/gripper_state.png

Get current gripper state Simulink Block.

The gripper state block will inform the application about the current gripper state.

Hint

Highly recommended to have a look at the GripperState Struct Reference for the list of available signals and the demo grasp_objects.slx which is provided for getting started.

Mass Matrix

../_images/mass_matrix.png

Get the Mass Matrix of the Robot Model.

Coriolis

../_images/coriolis.png

Get the Coriolis Matrix of the Robot Model.

Gravity

../_images/gravity.png

Get the Gravity Vector of the Robot Model.

Jacobian

../_images/jacobian.png

Get the Jabobian Matrix of the Robot.

You can select between “zero” or “body” Jacobian as well as the desired frame inside the block parameters.

Pose

../_images/pose.png

Get the Robot Pose.

You can select the desired pose frame inside the block parameters.

Previous Next

© Copyright 2023, Franka Robotics GmbH.

Built with Sphinx using a theme provided by Read the Docs.