{"id":23064269,"url":"https://github.com/darienmt/px4-sitl-ros-example","last_synced_at":"2026-04-02T03:50:52.438Z","repository":{"id":129409738,"uuid":"158769033","full_name":"darienmt/px4-sitl-ros-example","owner":"darienmt","description":"PX4 SITL ROS Example","archived":false,"fork":false,"pushed_at":"2019-05-19T07:00:35.000Z","size":155,"stargazers_count":13,"open_issues_count":2,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T21:46:18.000Z","etag":null,"topics":["drone","gazebo","px4","ros","ros-kinetic","simulator","sitl"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darienmt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-23T02:06:52.000Z","updated_at":"2024-10-31T18:44:00.000Z","dependencies_parsed_at":"2023-04-05T02:48:49.060Z","dependency_job_id":null,"html_url":"https://github.com/darienmt/px4-sitl-ros-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darienmt%2Fpx4-sitl-ros-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darienmt%2Fpx4-sitl-ros-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darienmt%2Fpx4-sitl-ros-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darienmt%2Fpx4-sitl-ros-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darienmt","download_url":"https://codeload.github.com/darienmt/px4-sitl-ros-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246961927,"owners_count":20861186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drone","gazebo","px4","ros","ros-kinetic","simulator","sitl"],"created_at":"2024-12-16T04:17:39.014Z","updated_at":"2026-04-02T03:50:52.393Z","avatar_url":"https://github.com/darienmt.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PX4 SITL ROS Example\nThis repo contains examples of [PX4 SITL with Gazebo](https://dev.px4.io/en/simulation/gazebo.html).\n\n## Cloning the repo\n\nThe [PX4 firmware](https://github.com/PX4) is installed as [git submodule](https://blog.github.com/2016-02-01-working-with-submodules/). The examples here assume to use that code without modifications, and it is separated from the `src/` directory. To clone this repo, you need to use the following command instead of the regular `git clone`:\n\n```\ngit clone --recursive \u003cproject_url\u003e\n```\n\n## Making the PX4.\n\nBefore running anything, you need to make the PX4 Firmware, follow the instruction [here](https://dev.px4.io/en/setup/dev_env.html) executed in the directory `/px4-firmware`. The last step of those instructions could be:\n\n```\nmake px4_sitl gazebo\n```\nAnd then ctl+c to turn off the execution when successfully you see the drone on Gazebo.\n\nMore information about other targets could be found [here](https://dev.px4.io/en/simulation/gazebo.html)\n\n## Dependencies\n\nThis code depends on a few packages most of them are already installed on a full-desktop-ROS installation and the compilation of the PX4 firmware. In addition to that, you need to install [MAVROS](https://dev.px4.io/en/ros/mavros_installation.html).\n\n## Compiling the examples\n\nTo compile the examples use catkin:\n\n```\ncatkin_make\n```\n\n## Running the examples\n\nEach example will have a `launch-*.sh` script that will set up the environment variables as described [here](https://dev.px4.io/en/simulation/ros_interface.html) to run the example package and PX4. Those common variables are expressed in [launch-common.sh](./launch-common.sh).\n\n# Examples description\n\n- **Running PX4 + Gazebo**: [`launch-px4-sitl.sh`](./launch-px4-sitl.sh)\n\n- **Offboard example**: [`launch-offb.sh`](./launch-offb.sh). This is the [MAVROS Offboard control example](https://dev.px4.io/en/ros/mavros_offboard.html) wrapped on a [ROS package `offb`](./src/offb). The script uses the launch file [`offb.launch`](./src/offb/launch/offb.launch) including the [`mavros_posix_stil.launch`](https://github.com/PX4/Firmware/blob/master/launch/mavros_posix_sitl.launch).\n\n- **Offboard velocity example**: [`launch-offb-velocity.sh`](./launch-offb-velocity.sh). Offboard control example from [Intel Aero sample apps](https://github.com/intel-aero/sample-apps/tree/master/ros/src/aero_offboard_velocity). [Video](https://youtu.be/4gEOPgVSwko)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarienmt%2Fpx4-sitl-ros-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarienmt%2Fpx4-sitl-ros-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarienmt%2Fpx4-sitl-ros-example/lists"}