Skip to content

Commit

Permalink
added video for system setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ktelegenov committed Mar 23, 2022
1 parent e7867a4 commit f9c1ef4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
10 changes: 4 additions & 6 deletions docs/source/1-flight-gazebo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Hardware Requirements
Software Requirements
-----

* **Ubuntu 16.04**
* **ROS Kinetic** \(full desktop installation\)
* **Gazebo 7**: will be automatically installed with ROS
* **Ubuntu 20.04**
* **ROS Noetic** \(full desktop installation\)
* **Gazebo**: will be automatically installed with ROS

* **PX4 firmware** installation on Linux: Autopilot software which includes the software-in-the-loop firmware

Expand Down Expand Up @@ -52,8 +52,6 @@ To run SITL wrapped in ROS the ROS environment needs to be updated:
cd ~/src/Firmware
DONT_RUN=1 make px4_sitl_default gazebo
cd ~/catkin_ws
catkin build
Launching Gazebo with ROS Wrappers
------
Expand All @@ -62,7 +60,7 @@ Now, you are ready to launch Gazebo + PX4 SITL app + ROS + MAVROS. To do that, e

.. code-block:: bash
roslaunch px4 mavros_posix_sitl.launch fcu_url:="udp://:14540@127.0.0.1:14557"
roslaunch px4 mavros_posix_sitl.launch
You should be able to see ``/mavros`` topics using ``rostopic list`` in a new terminal. Also if you execute ``rosnode list`` in a new terminal, you should see following

Expand Down
35 changes: 3 additions & 32 deletions docs/source/1-ros-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ What is ROS?

ROS is a software framework for writing robot software. The main aim of ROS is to reuse the robotic software across the globe. ROS consists of a collection of tools, libraries, and conventions that aim to simplify the task of creating complex and robust robot behavior across a wide variety of robotic platforms.

Official definition on ROS WiKi is:
Official definition from ROS Wiki:

.. line-block::

Expand All @@ -52,38 +52,9 @@ In this tutorial, we are going to work with a specific version of ROS called Mel

System Setup
^^^^^^^^
For system setup follow steps from the following video.

Assuming you have workstation with installed Ubuntu 18.04, execute following command in the terminal. Open terminal by pressing ``CTRL + ALT + T``.

.. code-block:: bash
sudo apt install git -y
mkdir src
cd src
git clone https://github.com/PX4/PX4-Autopilot.git Firmware --recursive
bash ./Firmware/Tools/setup/ubuntu.sh
After the installation is done, reboot your computer.

After reboot, open terminal again and run the following script.

.. code-block:: bash
wget https://raw.githubusercontent.com/PX4/Devguide/master/build_scripts/ubuntu_sim_ros_melodic.sh
bash ubuntu_sim_ros_melodic.sh
You might get some errors, so re-run the last command again. You can use arrow-Up key to bring the last command.

Lastly, build the PX4 firmware and add it to environment variables by running following commands.

.. code-block:: bash
cd ~/src/Firmware
DONT_RUN=1 make px4_sitl_default gazebo
echo "source /home/risc/src/Firmware/Tools/setup_gazebo.bash /home/risc/src/Firmware /home/risc/src/Firmware/build/px4_sitl_default" >> ~/.bashrc
echo "export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/risc/src/Firmware:/home/risc/src/Firmware/Tools/sitl_gazebo" >> ~/.bashrc
That's it, the Ubuntu environment is setup for PX4 software-in-the-loop simulations.
https://youtu.be/9Mb-aV3lmZ0

Install TurtleBot packages
""""""""
Expand Down

0 comments on commit f9c1ef4

Please sign in to comment.