PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.38k stars 13.46k forks source link

Is it possible to get a camera image from the MavSDK using the Gazebo simulator? #19106

Closed takata1021 closed 2 years ago

takata1021 commented 2 years ago

I am making an application that acquires and displays images from the camera protocol of MavSDK. I don't know how to run the app on the Gazebo simulator.

1.The user guide says only "make px4_sitl_default gazebo_plane_cam", but can I extend MakeFile to use "iris_fpv_cam"? 2.Is it possible to edit MakeFile to increase the drones available in Gazebo?

Jaeyoung-Lim commented 2 years ago

@takata1021 The iris_fpv_cam is a model for getting a camera wrapper for ROS applications and not simulating a mavlink camera manager. Therefore you cannot use this model with mavsdk to acquire images. (This is also why it has intentionally been left out of the make target)

Duplicate of https://github.com/PX4/PX4-SITL_gazebo/issues/843

takata1021 commented 2 years ago

Thank you