Add function mjs_sensorDim to user API.
Note: change to (unreleased) contact sensor mjSpec API PiperOrigin-RevId: 788507423 Change-Id: Ie639afb7ed01dc3f7bab43a3e812e8e0b0c67d07
This commit is contained in:
committed by
Copybara-Service
parent
a771fc6c09
commit
46dc67b7eb
@@ -10688,6 +10688,20 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
),
|
||||
doc='Delete user payload.',
|
||||
)),
|
||||
('mjs_sensorDim',
|
||||
FunctionDecl(
|
||||
name='mjs_sensorDim',
|
||||
return_type=ValueType(name='int'),
|
||||
parameters=(
|
||||
FunctionParameterDecl(
|
||||
name='sensor',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjsSensor', is_const=True),
|
||||
),
|
||||
),
|
||||
),
|
||||
doc='Return sensor dimension.',
|
||||
)),
|
||||
('mjs_defaultSpec',
|
||||
FunctionDecl(
|
||||
name='mjs_defaultSpec',
|
||||
|
||||
Reference in New Issue
Block a user