Why does changing and recompiling a package cause other container to crash, but recompiling the entire project allows it to run normally? #5211
-
Hello, When I add a variable in TrajectoryPoint.idl in autoware_auto_planning_msgs, it causes motion_planning_container to crash.Error message as follows:
But when I recompile the entire Autoware project, it can run normally. Why is that? Is there any solution without recompiling the entire Autoware project? Can someone please assist? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you do not rebuild all packages that use the |
Beta Was this translation helpful? Give feedback.
-
since the answer has been there a while, i will close this and mark it answered |
Beta Was this translation helpful? Give feedback.
If you do not rebuild all packages that use the
TrajectoryPoint
message, then they will still use the "old" message definition which can create wrong memory access.The solution is to build all packages that depend on
autoware_auto_planning_msgs
, which I think can be done with thecolcon build
option--packages-above
(see https://colcon.readthedocs.io/en/released/reference/package-selection-arguments.html).