Replace objid with obj pointers.
This in preparation of adding functions to remove/add elements after compilation. PiperOrigin-RevId: 597286844 Change-Id: I940103ade986c8d057db8cc1e9a98c073ddfab98
This commit is contained in:
committed by
Copybara-Service
parent
889353dfa8
commit
8a9b041388
@@ -1069,7 +1069,7 @@ class mjCWrap : public mjCBase {
|
||||
|
||||
public:
|
||||
mjtWrap type; // wrap object type
|
||||
int objid; // wrap object id (in array corresponding to type)
|
||||
mjCBase* obj; // wrap object pointer
|
||||
int sideid; // side site id; -1 if not applicable
|
||||
double prm; // parameter: divisor, coefficient
|
||||
std::string sidesite; // name of side site
|
||||
@@ -1179,7 +1179,7 @@ class mjCSensor : public mjCBase {
|
||||
mjCSensor(mjCModel*); // constructor
|
||||
void Compile(void); // compiler
|
||||
|
||||
int objid; // id of sensorized object
|
||||
mjCBase* obj; // sensorized object
|
||||
int refid; // id of reference frame
|
||||
};
|
||||
|
||||
@@ -1239,7 +1239,7 @@ class mjCTuple : public mjCBase {
|
||||
~mjCTuple(); // destructor
|
||||
void Compile(void); // compiler
|
||||
|
||||
std::vector<int> objid; // object ids
|
||||
std::vector<mjCBase*> obj; // object pointers
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user