ros2 / rosidl

Packages which provide the ROS IDL (.msg) definition and code generation.
Apache License 2.0
76 stars 125 forks source link

Tracking bug for message initialization in C #463

Open clalancette opened 7 years ago

clalancette commented 7 years ago

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).

dirk-thomas commented 6 years ago

Revert ros2/rcl#277 when this has been implemented.