Create list_dependencies sample to list all dependencies for an MCJF file.
PiperOrigin-RevId: 814816067 Change-Id: Idc6232e5d1ef1ff0318aeacd0e3d4b4a5a303485
This commit is contained in:
committed by
Copybara-Service
parent
6ae9cc8061
commit
e4704cd28b
@@ -481,6 +481,26 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
),
|
||||
doc='Save spec to XML file, return 0 on success, -1 otherwise.',
|
||||
)),
|
||||
('mju_getXMLDependencies',
|
||||
FunctionDecl(
|
||||
name='mju_getXMLDependencies',
|
||||
return_type=ValueType(name='void'),
|
||||
parameters=(
|
||||
FunctionParameterDecl(
|
||||
name='filename',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='char', is_const=True),
|
||||
),
|
||||
),
|
||||
FunctionParameterDecl(
|
||||
name='dependencies',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjStringVec'),
|
||||
),
|
||||
),
|
||||
),
|
||||
doc='Given MJCF filename, fills dependencies with a list of all other asset files it depends on. The search is recursive, and the list includes the filename itself.', # pylint: disable=line-too-long
|
||||
)),
|
||||
('mj_step',
|
||||
FunctionDecl(
|
||||
name='mj_step',
|
||||
@@ -3925,26 +3945,6 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
),
|
||||
doc='Intersect ray with skin, return nearest distance or -1 if no intersection, and also output nearest vertex id.', # pylint: disable=line-too-long
|
||||
)),
|
||||
('mju_getXMLDependencies',
|
||||
FunctionDecl(
|
||||
name='mju_getXMLDependencies',
|
||||
return_type=ValueType(name='void'),
|
||||
parameters=(
|
||||
FunctionParameterDecl(
|
||||
name='filename',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='char', is_const=True),
|
||||
),
|
||||
),
|
||||
FunctionParameterDecl(
|
||||
name='dependencies',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjStringVec'),
|
||||
),
|
||||
),
|
||||
),
|
||||
doc='Given MJCF filename, fills dependencies with a list of all other files it depends on.', # pylint: disable=line-too-long
|
||||
)),
|
||||
('mjv_defaultCamera',
|
||||
FunctionDecl(
|
||||
name='mjv_defaultCamera',
|
||||
|
||||
Reference in New Issue
Block a user