89-685: Introduction to Robotics
Fall 2016: Assignment 1
Due at 23:59:59, Wednesday, December 21th, 2016.
The goal of this assignment is to get you started writing software that controls a (simulated) robot using ROS.
In this lab you will create a ROS node that will drive the robot around with a simple wanderer algorithm, much like a Roomba robot vaccum cleaner. More specifically, the robot should move forward until it reaches an obstacle, then rotate in place until the way ahead is clear, then move forward again and repeat.
Before you start this assignment, you should make sure that you understand the concepts in ROS
tutorials 1-6, 8, 11 or 12, and 13.
In addition, go over all the code samples from class and make sure you understand them thoroughly.
Also make sure that the turtlebot_gazebo packages are installed on your mcahine.
Make a new ROS package called
wander_bot, with the appropriate dependencies.
Fill in your name and ID in the package manifest file.
Copy this launch file into a
launch sub-directory of
your package. This launch file runs the Gazebo simulator and the wander_bot node that you are going to write.
Your task is now to write the wander_bot node. The node should implement a simple algorithm:
if the robot is moving sufficiently close to an obstacle in front of it, then rotate it in the direction that is more free from obstacles until the way ahead is clear; otherwise move forward by default.
You can start from the Stopper node that we have developed in class.
Make sure that the wander_bot node works, by running it and watching the robot in the simulator.
- Make sure that your code is tidy and well-commented.
- All parameter values (such as the rotation speed of the robot) should be configurable via the launch file.
You should do this lab on your own. All the work you turn in should be yours, and not done in collaboration with anyone else. If you use any external sources of inspiration, other than ros.org, then let us know in a
What to Hand In
You should hand in everything that someone else needs to run your
code. For this assignment, that means your source code, manifest file,
CMakeLists.txt (if you're using C++), and launch files.
You should not hand in executable files, or any other files
that can be regenerated.
Your code should be easy to run. After getting a copy of your code, running
should be sufficient to start up Gazebo and make the robot move.
Finally, zip all the necessary files and submit the zip file to: email@example.com.
catkin-make --pkg wander_bot
roslaunch wander_bot wander_bot.launch