Add OnePlugin read/write functions and remove redundant plugin attributes from mjCActuator.

PiperOrigin-RevId: 525708657
Change-Id: I762de238f989b13877d5f9198c83c16ea9dc1d8b
This commit is contained in:
Alessio Quaglino
2023-04-20 04:24:57 -07:00
committed by Copybara-Service
parent 34e62aa3c1
commit 4f5da9c554
5 changed files with 44 additions and 60 deletions
+1
View File
@@ -61,6 +61,7 @@ class mjXWriter : public mjXBase {
void OneEquality(tinyxml2::XMLElement* elem, mjCEquality* pequality, mjCDef* def);
void OneTendon(tinyxml2::XMLElement* elem, mjCTendon* ptendon, mjCDef* def);
void OneActuator(tinyxml2::XMLElement* elem, mjCActuator* pactuator, mjCDef* def);
void OnePlugin(tinyxml2::XMLElement* elem, mjCBase* object);
bool writingdefaults; // true during defaults write
};