-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove attribute type
from <sensor>
and infer type from child tags
#175
Comments
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). The type is used to distinguish between different implementation types. Take the |
Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz). Hmm. Is there a way to capture Looking at the gazebo implementations |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig). Right, we can still remove the Type is useful in cases where child data would be duplicated. I think there are a few sensors that use the We could also make |
Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz). While de-duplicating the type info would be nice, I have to admit adding |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). The multi camera has multiple child
|
|
Original report (archived issue) by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).
Issue
The type attribute duplicates information that can be inferred from the child tags. It also gets in the way of custom sensors that don't fit one of the predefined types.
Proposal
This proposes to remove the attribute
type
from the tag<sensor>
.This sensor is a camera sensor because it has parameters for a camera.
This sensor doesn't have a type known by SDFormat, but that's OK because a plugin is responsible for it.
The text was updated successfully, but these errors were encountered: