Changeset 1135


Ignore:
Timestamp:
04/28/21 03:53:58 (3 years ago)
Author:
Maciej Komosinski
Message:

Validate joint length in Model: not just maximum but also minimum allowed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/model.cpp

    r1039 r1135  
    10081008                                                        logPrintf("Model", "internalCheck", LOG_ERROR, "Joint #%d too long (its length %g exceeds allowed %g)%s", i, j->d(), getMaxJoint().d.x, nameForErrors().c_str());
    10091009                                                }
     1010                                                else if (j->d() < getMinJoint().d.x)
     1011                                                {
     1012                                                        ret = 0;
     1013                                                        logPrintf("Model", "internalCheck", LOG_ERROR, "Joint #%d too short (its length %g is below allowed %g)%s", i, j->d(), getMinJoint().d.x, nameForErrors().c_str());
     1014                                                }
    10101015                                        }
    10111016                                }
Note: See TracChangeset for help on using the changeset viewer.