Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default world and record the flying #15

Closed
Leprechault opened this issue Jun 1, 2024 · 3 comments
Closed

Change the default world and record the flying #15

Leprechault opened this issue Jun 1, 2024 · 3 comments

Comments

@Leprechault
Copy link

Please, I'd like to know what modification I need to make for changing the world in the gazebo and how I can record the flying using the drone RGB camera?

@dakejahl
Copy link
Collaborator

dakejahl commented Jun 3, 2024

Please see the PX4 docs
https://docs.px4.io/main/en/sim_gazebo_gz/gazebo_models.html#example-running-one-host-with-multiple-terminals

python3 Tools/simulation/gz/simulation-gazebo --lawn
PX4_GZ_STANDALONE=1 PX4_SYS_AUTOSTART=4001 PX4_SIM_MODEL=gz_x500 PX4_GZ_WORLD=lawn ./build/px4_sitl_default/bin/px4

You can get the video from for example the above model using gz_ros_bridge
https://github.com/gazebosim/ros_gz

ros2 run ros_gz_bridge parameter_bridge /camera@sensor_msgs/msg/Image@gz.msgs.Image

@Leprechault
Copy link
Author

Thanks @dakejahl !!

@dakejahl
Copy link
Collaborator

dakejahl commented Jun 4, 2024

You're welcome!

@dakejahl dakejahl closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants