Expose 'flags' option for loadURDF, to allow customization of the URDF loading process while maintaining backward compatibility.
For example: URDF_USE_INERTIA_FROM_FILE flag. By default, URDF2Bullet will re-compute the inertia tensor based on mass and volume, because most URDF files have bogus Inertia values.
This commit is contained in:
@@ -79,6 +79,7 @@ enum EnumUrdfArgsUpdateFlags
|
||||
URDF_ARGS_INITIAL_ORIENTATION=4,
|
||||
URDF_ARGS_USE_MULTIBODY=8,
|
||||
URDF_ARGS_USE_FIXED_BASE=16,
|
||||
URDF_ARGS_HAS_CUSTOM_URDF_FLAGS = 32
|
||||
};
|
||||
|
||||
|
||||
@@ -89,6 +90,7 @@ struct UrdfArgs
|
||||
double m_initialOrientation[4];
|
||||
int m_useMultiBody;
|
||||
int m_useFixedBase;
|
||||
int m_urdfFlags;
|
||||
};
|
||||
|
||||
struct MjcfArgs
|
||||
|
||||
Reference in New Issue
Block a user