Skip to content

Using gz_frame_id emits a warning; should be part of the SDFormat spec #306

@azeey

Description

@azeey

Environment

  • OS Version: any
  • Source or binary build? any

Description

  • Expected behavior: No warnings when using gz_frame_id to set a custom frame id for a sensor in gz-sim.
  • Actual behavior: The following error is emitted warning that the element gz_frame_id is not part of the SDFormat spec.
Warning [Utils.cc:130] [/sdf/world[@name="imu_sensor"]/model[@name="imu_model"]/link[@name="link"]/sensor[@name="imu_sensor"]/gz_frame_id:/home/addisu/ws/garden/src/gz-sim/test/worlds/imu.sdf:L75]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].

I think we'd want this tag in SDFormat. I would also say we could just use frame_id instead of gz_frame_id.

Steps to reproduce

  1. Modify gz-sim/test/worlds/imu.sdf to use gz_frame_id
  2. Run the world in gz sim.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions