Package URDFModelica/Examples contains GenericRobot: an example simulation of a Unified Robot Description Format URDF https://wiki.ros.org/urdf/XML/robot defined generic robot that shows how few lines of code are needed to simulate almost any kind of robot.
The Python script translates a URDF file to a single Modelica record saved where input -o points to. Use -g option if you only want the URDF to single Modelica record translation without the package generation approach explained elsewhere.
The record also contains two matrices.
GenericRobot_Visualization2 is the same example using DLR Visualization 2 instead of the Standard Library multibody mechanics visualizers.