o3de / o3de-extras

Other
58 stars 60 forks source link

Fix ROS 2 System component to work with Simulate in Editor #708

Closed michalpelka closed 2 weeks ago

michalpelka commented 2 weeks ago

What does this PR do?

This PR prevents null pointer dereference when the ROS2 System component is deactivated at the start of the simulation in the editor.

705

How was this PR tested?

Run against manipulation template with o3de/stabilization/2409

Note: This is PR is crash-fix. ROS 2 functionality is partially usable in simulation mode. The ROS 2, sensors, and others are paused on the Editor's window loses focus. However, I think it is unrelated to ROS 2 and is some feature or bug in o3de.