Make mjs_findElement find meshes by file name.
PiperOrigin-RevId: 780150428 Change-Id: Ie500062fa8cca755683b66540e84ede588d7c331
This commit is contained in:
committed by
Copybara-Service
parent
7a09145161
commit
1a4ddca6cf
@@ -246,12 +246,15 @@ class mjCModel : public mjCModel_, private mjSpec {
|
||||
mjCDef* FindDefault(std::string name); // find defaults class name
|
||||
mjCDef* AddDefault(std::string name, mjCDef* parent = nullptr); // add defaults class to array
|
||||
mjCBase* FindObject(mjtObj type, std::string name) const; // find object given type and name
|
||||
mjCBase* FindTexture(std::string_view name) const; // find texture given 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
|
||||
mjSpec* FindSpec(const mjsCompiler* compiler_); // find spec given mjsCompiler
|
||||
void ActivatePlugin(const mjpPlugin* plugin, int slot); // activate plugin
|
||||
|
||||
// find asset given name checking both name and filename
|
||||
template <class T>
|
||||
mjCBase* FindAsset(std::string_view name, const std::vector<T*>& list) const;
|
||||
|
||||
// accessors
|
||||
std::string get_meshdir() const { return meshdir_; }
|
||||
std::string get_texturedir() const { return texturedir_; }
|
||||
|
||||
Reference in New Issue
Block a user