Hi @adnan, welcome to the forum!
Thanks for sharing what you’ve tried so far, and how it’s not working as expected.
Can you try specifically waiting for a vehicle heartbeat?
Waiting for a generic one means it’s possible to connect to some other component (e.g. the BlueOS camera manager), which could explain why your vehicle commands aren’t working properly.