gazebosim/sdformat

gz sdf --inertial-stats should process world files

开放

#1,342 创建于 2023年10月30日

 (0 条评论) (0 个反应) (0 位负责人)C++ (122 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (216 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Desired behavior

Currently the gz sdf --inertial-stats command can parse SDFormat files containing a single model and print aggregate inertial statistics (total mass, aggregate center of mass and moment of inertia matrix), but it fails when trying to load an SDFormat world file with Error: Expected a model file but received a world file.

It would be convenient to parse a world file and print the inertial stats for each model contained in the world along with the name of the model.

Alternatives considered

Implementation suggestion

Additional context

贡献者指南