Commit aab29bc
Fix crash when calling setPose service on static and nolink entity (#2988)
Gazebo allows loading static models without any links. However, if a /world/<world>/set_pose service call is made targeting such a model, the physics system crashes , because the underlying physics code assumes every model has at least one link.
After Fix : Before executing set_pose, the code now checks whether the target model contains at least one link.
---------
Signed-off-by: momo <[email protected]>
Co-authored-by: Ian Chen <[email protected]>1 parent ec0cac5 commit aab29bc
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2485 | 2485 | | |
2486 | 2486 | | |
2487 | 2487 | | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
2488 | 2496 | | |
2489 | 2497 | | |
2490 | 2498 | | |
| |||
0 commit comments