Improve URDF geom name loading API.
PiperOrigin-RevId: 505112774 Change-Id: I866e58e664089256a41908dddab9ad79745fb1da
This commit is contained in:
committed by
Copybara-Service
parent
c741dfce7d
commit
929e09f84a
+7
-5
@@ -16,6 +16,7 @@
|
||||
#define THIRD_PARTY_MUJOCO_SRC_XML_XML_URDF_
|
||||
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
#include "user/user_model.h"
|
||||
@@ -50,11 +51,12 @@ class mjXURDF : public mjXBase {
|
||||
void Clear(void); // clear local objects
|
||||
|
||||
// URDF parser variables
|
||||
std::vector<std::string> urName; // body name
|
||||
std::vector<int> urParent; // body parent (index in name vector)
|
||||
std::vector<std::vector<int> > urChildren; // body children (index in name vector)
|
||||
std::vector<std::string> urMat; // material name
|
||||
std::vector<mjRGBA> urRGBA; // material RBG value
|
||||
std::vector<std::string> urName; // body name
|
||||
std::vector<int> urParent; // body parent (index in name vector)
|
||||
std::vector<std::vector<int> > urChildren; // body children (index in name vector)
|
||||
std::vector<std::string> urMat; // material name
|
||||
std::vector<mjRGBA> urRGBA; // material RBG value
|
||||
std::unordered_set<std::string> urGeomNames; // geom name
|
||||
};
|
||||
|
||||
#endif // THIRD_PARTY_MUJOCO_SRC_XML_XML_URDF_
|
||||
|
||||
Reference in New Issue
Block a user