def set_roi(location):
 msg = vehicle.message_factory.command_long_encode(0, 0, mavutil.mavlink.MAV_CMD_DO_SET_ROI, 0, 0, 0, 0, 0, location.lat, location.lon, location.alt)
 vehicle.send_mavlink(msg)

def set_roi ( location ) : msg = vehicle . message_factory . command_long_encode ( 0 , 0 , mavutil . mavlink . MAV_CMD_DO_SET_ROI , 0 , 0 , 0 , 0 , 0 , location . lat , location . lon , location . alt ) vehicle . send_mavlink ( msg )
send mav_cmd_do_set_roi message to point camera gimbal at a specified region of interest .