Closed elpiel closed 2 years ago
Got any branch with some non working setup you tried ? I’d like to see if somethings comes to mind
You only need to export the right port from docker-compose and connect to it. I've added resources to the issue to help you out.
Video streaming now works. It needs more time to start but using docker-compose and validating the video from QGroundControl works
We've setup the
typhoon h480 hexrotor
( https://dev.px4.io/master/en/simulation/gazebo_vehicles.html#typhoon-h480-hexrotor) as the default drone in thedocker-compose
file because it supports video stream in theGazebo
simulation.Using the
headless gazebo
enabled docker image I tried to connect and use the video stream from the simulation, but I was not able to make it work. Before we are able to use the Video stream in an application we need to figure out how to connect to the docker container.Please make sure to add documentation (on the what and whys) once this is working
Guidance:
From the C RTSP video proxy:
8554
/live
Example of a connection url (can be used in e.g. VLC):
rtsp://127.0.0.1:8554/live
VLC settings example
Resources:
Related issue: https://github.com/JonasVautherin/px4-gazebo-headless/issues/20
docker-compose
exported ports: https://github.com/AeroRust/mav/blob/main/docker-compose.yml#L7-L8Docker entrypoint of the image and the command to start the RTSP (video stream) proxy: https://github.com/JonasVautherin/px4-gazebo-headless/blob/master/entrypoint.sh#L62-L63
the C video stream proxy: https://github.com/JonasVautherin/px4-gazebo-headless/blob/master/sitl_rtsp_proxy/main.cpp