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
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.
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
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
Duration Period
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
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
Coriolis
Gravity
Jacobian
You can select between “zero” or “body” Jacobian as well as the desired frame inside the block parameters.
Pose
You can select the desired pose frame inside the block parameters.