-
Create a new package.
cd ~/catkin_ws/src
catkin_create_pkg tour_bot
-
Clone this repo into new project
cd ~/catkin_ws/src/tour_bot
rm *
git clone https://github.com/nbgraham/gaitech_edu.git .
-
Setup in real world
Start it at position C because that is the initial pose in turtlebot_stage_psu.launch -
Setup on turtlebot through ssh (use USB to move entire tour_bot package onto turtlebot or use scp)
roslaunch tour_bot actual_turtlebot.launch
Make sure to remove the Gmapping from the end of 3dsensor.launch if its still there or else the planned map will be overridden by the map that slam mapping is creating
<!-- Gmapping -->
<arg name="custom_gmapping_launch_file" default="$(find turtlebot_navigation)/launch/includes/gmapping/$(arg 3d_sensor)_gmapping.launch.xml"/>
<include file="$(arg custom_gmapping_launch_file)"/>
- Run the project on rowork
rosrun tour_bot map_navigation.py
This is the actual planning that sends velocity commands
rosrun tour_bot control.py
This is just a user interface that send goals to map_navigation
-
Move the map model to gazebo models.
cp -r ~/catkin_ws/src/tour_bot/src/maps/FinalProjectMap ~/.gazebo/models
-
Run the project
roslaunch tour_bot gazebo_turtlebot.launch
This launches simulation in gazebo
rosrun tour_bot map_navigation.py
rosrun tour_bot control.py
You can only input 'g' for the gazebo touring option.
- If you get an issue about contacting X Display, try
ssh -X turtlebot@<host>
- If you get "no module tour_bot.msg" make sure to
catkin_make
andsource ~/catkin_ws/devel/setup.bash
- If you get "could not find executable .py", make sure it has executable permissions
chmod +x <name>.py
- Create a world (probably need to create an actual environment and use the robot to map it
- Choose new points as destinations and add those options to the command line options
- Add an option to tour all of the destinations
- Reduce status print statements and add print outs for options and description for each destination
- Document everything we have done