Skip to content

Commit

Permalink
turtlebot3 modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ktelegenov committed May 4, 2021
1 parent ff6046a commit 951e61e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
9 changes: 5 additions & 4 deletions docs/source/1-ros-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Run the script to install, will take some time.
bash ubuntu_sim_ros_melodic.sh
You might need to re-run two previous commmands if you get some errors.
You might need to re-run previous command if you get some errors.

Next step, execute below commands to install and build PX4 Firmware

Expand All @@ -75,7 +75,7 @@ In this tutorial, we are going to work with a specific version of ROS called Mel
Install TurtleBot packages
""""""""

During this tutorial, you will work with a simulated robot called **TurtleBot**, to apply the concepts of ROS. The following image is a picture of the robot you will work with. It is a differential drive robot, that has a Kinect sensor for environmental mapping, wheel encoders for position estimation.
During this tutorial, you will work with a simulated robot called **TurtleBot3**, to apply the concepts of ROS. The following image is a picture of the robot you will work with. It is a differential drive robot, that has a Kinect sensor for environmental mapping, wheel encoders for position estimation.

.. image:: ../_static/kobuki.jpg
:scale: 50 %
Expand All @@ -88,15 +88,16 @@ Open application called **Terminator** (you can install it by running following

.. code-block:: bash
sudo apt-get install ros-melodic-turtlebot ros-melodic-turtlebot-apps ros-melodic-turtlebot-interactions ros-melodic-turtlebot-simulator ros-melodic-turtlebot-gazebo -y
sudo apt-get install ros-melodic-turtlebot3* -y
echo "export TURTLEBOT3_MODEL=burger" >> ~/.bashrc
After installation is done, check that the simulation works in Gazebo. Execute the following commands in a shell terminal.


.. code-block:: bash
roslaunch turtlebot_gazebo turtlebot_world.launch
roslaunch turtlebot3_gazebo turtlebot3_world.launch
You should get something similar to the following.
Expand Down
14 changes: 10 additions & 4 deletions src/additional_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ DONT_RUN=1 make px4_sitl_default 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
#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

cd ~/catkin_ws/src
ln -s ~/src/Firmware/ px4
ln -s ~/src/Firmware/Tools/sitl_gazebo/ mavlink_sitl_gazebo
catkin build
source ~/.bashrc

0 comments on commit 951e61e

Please sign in to comment.