Usage

How to run the main script

From command line

NOTE: make sure to run 'source /opt/ros/indigo/setup.bash' in every command prompt if not in your bash profile

$ mkdir -p catkin_ws/src 
$ cd ~/catkin_ws/src
$ git clone https://github.com/pirobot/rbx1.git 
$ cd rbx1
$ git checkout indigo-devel
$ cd ~/catkin_ws
$ catkin_make
$ source ~/catkin_ws/devel/setup.bash
$ rospack profile

To initiate ROS MASTER, type:

$ roscore

To clone and build the rbx1 repository for Indigo, type:

$ cd ~/catkin_ws/
$ git clone git@github.com:ScrypticLabs/Robotics_Lab1.git src
$ catkin_make
$ source devel/setup.bash

To launch the simulated TurtleBot, type:

$ catkin_make
$ roslaunch rbx1_bringup fake_turtlebot.launch 

To bring up RViz, type:

$ catkin_make
$ rosrun rviz rviz -d `rospack find rbx1_nav`/sim.rv

To run the python script, type:

$ cd ~/catkin_ws
$ python src/Robotics_Lab1/timed_out_and_back.py

Methods

-Main: constructs a robot object and processes user command until there is an error or the user chooses to quit.

-Init: instantiates a robot with parameters.

-Shutdown: logs a message and stops the robot.

-Translate: incrementally moves the robot the distance requested by the user.

-Rotate: incrementally rotates the robot the degrees requested by the user.

Video

Watch demo here