-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmagicalThingy1.1
More file actions
executable file
·28 lines (28 loc) · 1.14 KB
/
magicalThingy1.1
File metadata and controls
executable file
·28 lines (28 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
#Install Planning, mapping and navigation dependencies
sudo apt-get update
sudo apt-get install ros-melodic-hector-mapping ros-melodic-amcl ros-melodic-map-server ros-melodic-move-base ros-melodic-rosserial-python ros-melodic-hls-lfcd-lds-driver ros-melodic-serial ros-melodic-dwa-local-planner ros-melodic-gmapping
#make a catkin workspace, and build it
cd ~
mkdir turtlekin_ws
cd ~/turtlekin_ws/
mkdir src
#clone and copy the turtlebot simulation files
git clone https://github.com/hussamayoub/turtlebot3melodic.git
cp -r turtlebot3melodic/turtle* src/
rm -rf turtlebot3melodic/
#build the catkin workspace
source /opt/ros/melodic/setup.bash
catkin_make
#source again, and export ROS settings
export ROS_MASTER_URI='http://localhost:11311'
export ROS_IP=0.0.0.0
#add proper sourcing to bashrc
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
echo "source ~/turtlekin_ws/devel/setup.sh" >> ~/.bashrc
echo "export TURTLEBOT3_MODEL=waffle" >> ~/.bashrc
#Launch the maze
source /opt/ros/melodic/setup.bash
export TURTLEBOT3_MODEL=waffle
source ~/turtlekin_ws/devel/setup.sh
roslaunch turtlebot3_gazebo turtlebot3_maze.launch