I am new to matlab driving designer scenario and was looking to create a simulation where an actor would sense an object or moving pedestrian by using a camera or lidar. Once it is in the field of view (radar or sensor), the ego-vehicle would stop or slow down. I am not sure how i would be able to do this. I have ran other scenarios that say emergency breaking but it does not react to the enviroment, but follows the set waypoints.
Any suggestions would be appreciated.