Open b-adkins opened 1 month ago
Feel free to submit a PR, but this repo isn't really being maintained, so it might never get merged.
find this to be incredibly dangerous when controlling a real robot.
I don't think this was ever meant to be used in production, at least not in its current state.
I tried
dynmsg
to parse config files for controlling a real robot. There does not appear to be an option for it to raise an exception if a message field is missing.I found this issue to be a dealbreaker, due to safety concerns, and so I will not be using this library.
Testing
On ROS 2 Humble, here is my parsing code.
Expected Behavior
The YAML would fail to be parsed into a
geometry_msgs/msg/Pose
, because it is missing a field. It would have to be via an exception, because there is no return code in the function interfaces nor in the return structRosMessage_Cpp
.Actual behavior
It gets parsed into:
using the default value of zero for the missing position z.
I find this to be incredibly dangerous when controlling a real robot. A typo in the config file that omits a key could fail silently during parsing and then send a robot to an unexpected wrong position.