-
Notifications
You must be signed in to change notification settings - Fork 190
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
Array message versions of PoseStamped and TransformStamped #144
Comments
I don't think that it makes a lot of sense to create a generic datatype like that which can be represented by a single line of msg format unless it has a strong semantic meaning. Otherwise just use: with geometry_msgs/PoseStampedArray.msg Which is actually harder to address with the structured datatype as you'll have to use
versus just using the array of PoseStamped datatypes.
|
I agree that the Asking for To take an example, let's say I want to publish/log the 3D pose of all detected objects in an image. A To summarize: Especially because |
This may be just an unlucky choice of example, but: wouldn't a custom message called A This is the "lack of semantics" I believe @tfoote is referring to. |
I totally agree with the problem of missing semantics for these kinds of message definitions. But this is the same for all the A |
IIUC the existence of the Their use is actually discouraged, for almost all intents and purposes.
Again, this may be too localised (as in: to your example), but: see vision_msgs (exactly created to avoid the situation you describe). It's currently on a personal account, but is in the works to be hosted on a Edit: I would say the way forward for these kind of discussions is to standardise msgs where possible, and preferably msgs with semantics. The situation you describe would be remedied by getting the messages that are used standardised, not by extending That may be naive though, instead of pragmatic .. |
The usage of I basically just wanted to make the point that generic (semantically less meaningful) message definitions are likely more often used and the benefit of standardising them is that e.g. bagfiles can be used at a later time without needing to find their message definitions in some 3rd party repository. IMHO, message definitions should be used to standardise commonly used messages for communication and logging to prevent multiple incompatible definitions. Semantic meaning is important but not more important than having a standardised interface for communication and logging. |
I agree completely that we want to standardize commonly used messages, but commonly using a message without semantic will lead to errors of interpretation. If I tell you to transform a data structure We've made the friction quite low for how to define and share new message datatypes. Anyone can create a package and propose new messages. To become commonly used you need to be able to design it at the right abstraction level for reuse in all the "common" use cases that you expect. Usually a well defined message will start solving the use cases of the first user, then pick up some more users. Maybe evolve a little bit to add or remove data, and eventually become a commonly used message because it's made available and easy to use. There are potentially datastructures that can be defined and used as submessages, but good designs need to understand and respresent not just the structure but the semantics to be easily reusable. |
Hi all, just wanted to note for any future user searching for a solution to the "missing" |
Package
geometry_msgs
hasPoseArray
, a list ofPose
s defined. This is the onlyArray
version of otherwise single message instances, likePoseStamped
,TransformStamped
, ...Would it make sense to also add a
PoseStampedArray
and/orTransformStampedArray
?The text was updated successfully, but these errors were encountered: