Skip to content
Snippets Groups Projects
Commit a56d63bc authored by holzheim's avatar holzheim
Browse files

Updated Mobile Robot Instructions

parent bcdce4a0
Branches
Tags
No related merge requests found
moveit_tutorials @ f77a29c7
Subproject commit f77a29c7c3281ae82c6a4d793c39bed61c45cfb4
panda_moveit_config @ 625be994
Subproject commit 625be99465d1cf897297f0fde414f90349e3015f
File mode changed from 100644 to 100755
universal_robot @ 6507bb67
Subproject commit 6507bb6756d0065d49b76230ff55f875f099a827
# Mobile robot
## Launching in Simulation
- First install the package *turtlebot3_simulations* in your catkin workspace and build it.
```bash
cd ~/catkin_ws/src/
```
```bash
git clone -b melodic-devel https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
```
```bash
cd ~/catkin_ws
```
```bash
catkin build
```
```bash
source ~/.bashrc
```
- Export the name of the Turtlebot model we will use to the environment variable *TURTLEBOT3_MODEL* by the following command. Make sure to source the *.bashrc* file afterwards.
```bash
echo "export TURTLEBOT3_MODEL=burger" >> ~/.bashrc
```
```bash
source ~/.bashrc
```
- Now launch one of the predefined environments for `Gazebo` from the just installed **turtlebot3_gazebo** package. All the launch files with different envrionments can be listed to the terminal by the following commands.
```bash
roscd turtlebot3_gazebo
```
```bash
ls launch
```
- For the next examples we will use the **turtlebot3_world.launch** file.
```bash
roslaunch turtlebot3_gazebo turtlebot3_world.launch
```
## Launching a SLAM node
- Launching the SLAM node
```bash
roslaunch turtlebot3_slam turtlebot3_slam.launch
```
- Operating the node using the keyboard.
```bash
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
```
- Operate the robot using a script. Maybe you have to make to skript *simple_auto_drive.py* executable. Following instructions show you how to make it executable.
```bash
roscd ~/catkind_ws/src/task_3/scripts
```
```bash
chmod +x simple_auto_drive.py
```
```bash
rosrun task_3 simple_auto_drive.py
```
You can stop the script by typing `Ctrl` + `C` into the terminal where the node is running.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment