ZeroPosition

model ZeroPosition "Set absolute position vector of frame_resolve to a zero vector and the orientation object to a null rotation"
    extends Modelica.Blocks.Icons.Block;

    Interfaces.Frame_resolve frame_resolve annotation (Placement(transformation(extent = {
        {-116, -16}, 
        {-84, 16}})));
equation
    Connections.root(frame_resolve.R);
    frame_resolve.R = Modelica.Mechanics.MultiBody.Frames.nullRotation();
    frame_resolve.r_0 = zeros(3);

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-74, 24}, 
                        {80, -20}},
                    textString = "r = 0")}),
        Documentation(info = "<html>\n<p>\nElement consisting of a frame (frame_resolve) that is fixed in the world\nframe and has it's position and orientation identical with the world, i.e.\nthe position vector from origin of world frame to frame_resolve is zero vector\nand the relative orientation between those two frames is identity matrix.\n</p>\n<p>\nThis component provides no visualization.\n</p>\n</html>"));
end ZeroPosition;