gazebosim / gazebosim/sdformat

gz sdf --inertial-stats should process world files

Open
#1,342 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
C++
Stars
216
Forks
125
Avg merge
1d 14h
Merged PRs (30d)
14

Description

## 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

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation and tests for `gz sdf --inertial-stats`, then inspect how world files and their models are parsed. Done means the command accepts a world file and prints each model's name with its aggregate inertial statistics, while preserving existing single-model behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.