Replace mjs_setActivePlugins with mjs_activatePlugin.

PiperOrigin-RevId: 680613007
Change-Id: Ic03e0dc42a1f5f083e313672bc6e3ccebadc58b3
This commit is contained in:
Alessio Quaglino
2024-09-30 09:45:25 -07:00
committed by Copybara-Service
parent cf13413c0b
commit 6832df3091
11 changed files with 76 additions and 92 deletions
+1 -3
View File
@@ -233,9 +233,7 @@ class mjCModel : public mjCModel_, private mjSpec {
mjCBase* FindObject(mjtObj type, std::string name) const; // find object given type and name
mjCBase* FindTree(mjCBody* body, mjtObj type, std::string name); // find tree object given name
mjSpec* FindSpec(std::string name) const; // find spec given name
void SetActivePlugins(const std::vector<std::pair<const mjpPlugin*, int>>&& active_plugins) {
active_plugins_ = std::move(active_plugins);
}
void ActivatePlugin(const mjpPlugin* plugin, int slot); // activate plugin
// accessors
std::string get_meshdir() const { return meshdir_; }