Remove hard-coded nPOS and nVEL from mjCModel.
PiperOrigin-RevId: 661370196 Change-Id: Ib2c1876dfea55dbf496e2358000f24bbde29fc52
This commit is contained in:
committed by
Copybara-Service
parent
da15aa6a0e
commit
ec43ec7c30
@@ -424,6 +424,11 @@ class mjCJoint : public mjCJoint_, private mjsJoint {
|
||||
bool is_limited() const;
|
||||
bool is_actfrclimited() const;
|
||||
|
||||
static int nq(mjtJoint joint_type);
|
||||
static int nv(mjtJoint joint_type);
|
||||
int nq() const { return nq(spec.type); }
|
||||
int nv() const { return nv(spec.type); }
|
||||
|
||||
private:
|
||||
int Compile(void); // compiler; return dofnum
|
||||
void PointToLocal(void);
|
||||
|
||||
Reference in New Issue
Block a user