Make "acc" the default computation stage for sensors of type user.
PiperOrigin-RevId: 492689134 Change-Id: I21c07c74cb4b94d39c091ae98b169fd1235769d4
This commit is contained in:
committed by
Copybara-Service
parent
66cb7d611b
commit
dee1d6020a
@@ -3159,8 +3159,9 @@ void mjXReader::Sensor(XMLElement* section) {
|
||||
ReadAttrInt(elem, "dim", &psen->dim, true);
|
||||
|
||||
// keywords
|
||||
MapValue(elem, "needstage", &n, stage_map, stage_sz, true);
|
||||
psen->needstage = (mjtStage)n;
|
||||
if (MapValue(elem, "needstage", &n, stage_map, stage_sz)) {
|
||||
psen->needstage = (mjtStage)n;
|
||||
}
|
||||
if (MapValue(elem, "datatype", &n, datatype_map, datatype_sz)) {
|
||||
psen->datatype = (mjtDataType)n;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user