Skip to content

Commit

Permalink
Melodic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ktelegenov committed May 2, 2021
1 parent 09ecfd9 commit 1501a0b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 152 deletions.
34 changes: 24 additions & 10 deletions docs/source/1-ros-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,28 @@ Official definition on ROS WiKi is:
System Setup
^^^^^^^^

Assuming you have workstation with installed Ubuntu 16.04, execute following command in the terminal. Open terminal by pressing ``CTRL + ALT + T``.
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
wget https://raw.githubusercontent.com/risckaust/risc-documentations/master/src/initial_settings/ubuntu_sim_ros_kinetic.sh # Press enter
source ubuntu_sim_ros_kinetic.sh # Will take some time to install
wget https://raw.githubusercontent.com/PX4/Devguide/master/build_scripts/ubuntu_sim_ros_melodic.sh # Press enter
In this tutorial, we are going to work with a specific version of ROS called Kinetic. Also, some ROS packages are needed in order to perform the simulation exercises mentioned in this tutorial. The following sections will guide you through the installation procedures.
Run the script to install, will take some time.

.. code-block:: bash
bash ubuntu_sim_ros_melodic.sh
You might need to re-run two previous commmands if you get some erros.

Next step execute below commands to install and build PX4 Firmware

.. code-block:: bash
wget https://raw.githubusercontent.com/risckaust/risc-documentations/master/src/additional_install.sh
bash additional_install.sh
In this tutorial, we are going to work with a specific version of ROS called Melodic. Also, some ROS packages are needed in order to perform the simulation exercises mentioned in this tutorial. The following sections will guide you through the installation procedures.

Install TurtleBot packages
""""""""
Expand All @@ -74,7 +88,7 @@ Open application called **Terminator** (you can install it by running following

.. code-block:: bash
sudo apt-get install ros-kinetic-turtlebot ros-kinetic-turtlebot-apps ros-kinetic-turtlebot-interactions ros-kinetic-turtlebot-simulator ros-kinetic-turtlebot-gazebo -y
sudo apt-get install ros-melodic-turtlebot ros-melodic-turtlebot-apps ros-melodic-turtlebot-interactions ros-melodic-turtlebot-simulator ros-melodic-turtlebot-gazebo -y
After installation is done, check that the simulation works in Gazebo. Execute the following commands in a shell terminal.
Expand Down Expand Up @@ -483,11 +497,11 @@ You will get something similar to:
user ~ $ export | grep ROS
declare -x ROSLISP_PACKAGE_DIRECTORIES="/home/user/catkin_ws/devel/share/common-lisp"
declare -x ROS_DISTRO="kinetic"
declare -x ROS_ETC_DIR="/opt/ros/kinetic/etc/ros"
declare -x ROS_DISTRO="melodic"
declare -x ROS_ETC_DIR="/opt/ros/melodic/etc/ros"
declare -x ROS_MASTER_URI="http://localhost:11311"
declare -x ROS_PACKAGE_PATH="/home/user/catkin_ws/src:/opt/ros/kinetic/share:/opt/ros/kinetic/stacks"
declare -x ROS_ROOT="/opt/ros/kinetic/share/ros"
declare -x ROS_PACKAGE_PATH="/home/user/catkin_ws/src:/opt/ros/melodic/share:/opt/ros/melodic/stacks"
declare -x ROS_ROOT="/opt/ros/melodic/share/ros"
The most important variables are the **ROS_MASTER_URI** and the **ROS_PACKAGE_PATH**.
Expand Down Expand Up @@ -1168,7 +1182,7 @@ To install ``turtlesim``
.. code-block:: bash
sudo apt-get install ros-kinetic-turtlesim
sudo apt-get install ros-melodic-turtlesim
To run the ``turtlesim`` node and control the turtle using keyboard, execute
Expand Down
10 changes: 8 additions & 2 deletions src/additional_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ pip3 install jinja2
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio -y
DONT_RUN=1 make px4_sitl_default gazebo

source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd):$(pwd)/Tools/sitl_gazebo
#source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
#export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd):$(pwd)/Tools/sitl_gazebo

## Setup environment variables

echo "source /home/risc/src/Firmware/Tools/setup_gazebo.bash" >> ~/.bashrc
echo "source /home/risc/src/Firmware" >> ~/.bashrc
echo "source /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
36 changes: 0 additions & 36 deletions src/ubuntu_sim_common_deps.sh

This file was deleted.

104 changes: 0 additions & 104 deletions src/ubuntu_sim_ros_melodic.sh

This file was deleted.

0 comments on commit 1501a0b

Please sign in to comment.