Added linear object collection without manually specifying the degrees of freedom for the object.