You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: getTransmissionProperties.m
    path of file: ./repos/vitruvio/scripts/robot and actuator properties
    
    the code of the file until where you have to start completion: function  transmissionMass = getTransmissionProperties(transmissionMethod, actuateJointDirectly, robot, robotSelection, jointNames, linkNames, linkCount)
% Based on the selected transmission method and whether the joint is
% actuated remotely or directly, compute the additional mass on all preceding links.

    
function  transmissionMass = getTransmissionProperties(transmissionMethod, actuateJointDirectly, robot, robotSelection, jointNames, linkNames, linkCount)
% Based on the selected transmission method and whether the joint is
% actuated remotely or directly, compute the additional mass on all preceding links.

% For example, if there is a chain transmission to remotely actuate the AFE 
% joint, the mass of this chain is applied to the shank, thigh and hip.

    % Set the mass density depend