| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef MUJOCO_SRC_XML_XML_BASE_H_ |
| | #define MUJOCO_SRC_XML_XML_BASE_H_ |
| |
|
| | #include <cstdlib> |
| | #include <string> |
| |
|
| | #include <mujoco/mjmodel.h> |
| | #include <mujoco/mjspec.h> |
| | #include "xml/xml_util.h" |
| | #include "tinyxml2.h" |
| |
|
| |
|
| | |
| | extern const int joint_sz; |
| | extern const int camlight_sz; |
| | extern const int lighttype_sz; |
| | extern const int integrator_sz; |
| | extern const int collision_sz; |
| | extern const int cone_sz; |
| | extern const int jac_sz; |
| | extern const int solver_sz; |
| | extern const int equality_sz; |
| | extern const int texture_sz; |
| | extern const int colorspace_sz; |
| | extern const int builtin_sz; |
| | extern const int mark_sz; |
| | extern const int dyn_sz; |
| | extern const int gain_sz; |
| | extern const int bias_sz; |
| | extern const int stage_sz; |
| | extern const int datatype_sz; |
| | extern const mjMap angle_map[]; |
| | extern const mjMap enable_map[]; |
| | extern const mjMap bool_map[]; |
| | extern const mjMap fluid_map[]; |
| | extern const mjMap TFAuto_map[]; |
| | extern const mjMap joint_map[]; |
| | extern const mjMap geom_map[]; |
| | extern const mjMap camlight_map[]; |
| | extern const mjMap lighttype_map[]; |
| | extern const mjMap integrator_map[]; |
| | extern const mjMap collision_map[]; |
| | extern const mjMap impedance_map[]; |
| | extern const mjMap reference_map[]; |
| | extern const mjMap cone_map[]; |
| | extern const mjMap jac_map[]; |
| | extern const mjMap solver_map[]; |
| | extern const mjMap equality_map[]; |
| | extern const mjMap texture_map[]; |
| | extern const mjMap colorspace_map[]; |
| | extern const mjMap texrole_map[]; |
| | extern const mjMap builtin_map[]; |
| | extern const mjMap mark_map[]; |
| | extern const mjMap dyn_map[]; |
| | extern const mjMap gain_map[]; |
| | extern const mjMap bias_map[]; |
| | extern const mjMap stage_map[]; |
| | extern const mjMap datatype_map[]; |
| | extern const mjMap meshtype_map[]; |
| | extern const mjMap meshinertia_map[]; |
| | extern const mjMap flexself_map[]; |
| | extern const mjMap elastic2d_map[]; |
| |
|
| |
|
| | |
| |
|
| | class mjXBase : public mjXUtil { |
| | public: |
| | mjXBase(); |
| | virtual ~mjXBase() = default; |
| |
|
| | |
| | virtual void Parse(tinyxml2::XMLElement* root, const mjVFS* vfs = nullptr) {}; |
| |
|
| | |
| | virtual std::string Write(char *error, std::size_t error_sz) { |
| | return ""; |
| | }; |
| |
|
| | |
| | virtual void SetModel(mjSpec*, const mjModel* = nullptr); |
| |
|
| | |
| | static int ReadAlternative(tinyxml2::XMLElement* elem, mjsOrientation& alt); |
| |
|
| | protected: |
| | mjSpec* spec; |
| | }; |
| |
|
| | #endif |
| |
|