Skip to content

Tracking bug for message initialization in C++ #396

Closed

Description

@clalancette

In porting efforts we've run into several bugs where the zero initialized behavior is relied upon, causing bugs. Having a zero initialization method as a way to make porting less fragile would be valuable. And likely can be used in other cases when the optimization of using uninitialized constructors are not as important.

This is a tracking bug to deal with field initialization of generated message code in C++ (originally discussed in ros2/geometry2#25).

Activity

  1. added
    in progress
    on Sep 6, 2017
  2. clalancette commented on Sep 6, 2017

    @clalancette
    ContributorAuthor

    CI:

    • Linux Build Status
    • Linux-aarch64 Build Status
    • macOS Build Status
    • Windows Build Status
    • Windows Debug Build Status
  3. self-assigned this
    on Sep 6, 2017
  4. added
    in review
    in progress
    and removed
    in progress
    in review
    on Sep 6, 2017
  5. changed the title [-]Tracking bug for message initialization[/-] [+]Tracking bug for message initialization in C++[/+] on Sep 8, 2017
  6. mikaelarguedas commented on Sep 15, 2017

    @mikaelarguedas
    Member

    I can't find a meta-ticket for all message initialization regardless of the language so I'm posting here. Feel free to move this comment to the relevant ticket that I couldnt find.
    We originally said we didnt need to modify the Python message generation because all messages are initialized by default. But now that we offer the ability to initialize messages with only language default or with default values from msg if they exist and language zeros otherwise I think we should provide the same feature in Python

  7. added
    in review
    and removed
    in progress
    on Oct 4, 2017
  8. added
    in progress
    in review
    and removed
    in review
    in progress
    on Oct 17, 2017
  9. clalancette commented on Nov 1, 2017

    @clalancette
    ContributorAuthor

    All of the pieces are now in, we can close this out.

  10. removed
    in review
    on Nov 1, 2017
  11. added
    in review
    on Nov 1, 2017
  12. mikaelarguedas commented on Nov 1, 2017

    @mikaelarguedas
    Member

    closing this now that the connected tickets have been closed / merged.
    @clalancette will open another ticket to track the changes that could/should be reverted in other repos now that message fields are initialized by default

  13. removed
    in review
    on Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions