This tool sets up the turtlebot2-tutorials environment so that the tutorials can run without setup. It assumes that the ROS setup has been completed.
Use git to copy this entire repository onto your Turtlebot and Master computer and follow the other commands:
git clone --recursive https://github.com/dabit-industries/turtlebot2-tutorials ~/turtlebot2-tutorialsIf you'd like the most recent version of the code on this site, you can update it with following commands:
cd ~/turtlebot2-tutorials
git pull
These commands are to be run on both the Master and Turtlebot computer
- On the command line, navigate to the repository folder:
cd ~/turtlebot2-tutorials
- Run the environment setup program:
source ~/turtlebot2-tutorials/Setup/automated/automate.sh- You should see:
Environment setup successful
- You should see:
- Run our utility to check, copy, and compile all the code:
dabit-setup-utility install- This code requires some interaction, please follow along in the terminal
- This may take a while as it is getting all the dependencies and building all the code
- This code moves the existing
~/catkin_wsand~/workspaceto~/backup/old_workspace_DD-MM-YY_hh-mm-ss
- On the Master Computer, set your MASTER_IP:
change_master IP_OF_TURTLEBOT
- Test a code example:
- In a new terminal:
- type:
roslaunch turtlebot_bringup minimal.launch
- type:
- In a new terminal:
-
type:
rosrun turtlebot_dabit roscpp_hello_world -
You should see the following in your terminal:
[ INFO] [1492930878.699859775]: Hello from ROS node /roscpp_example
-
- In a new terminal:
These commands are to be run on both the master and turtlebot computer
- On the command line, use our setup utility to do an update:
dabit-setup-utility update
- Reset your workspace:
dabit-setup-utility reset- This code moves the existing
~/catkin_wsand~/workspaceto~/backup/old_workspace_DD-MM-YY_hh-mm-ss
- This code moves the existing
- Install the new workspace:
dabit-setup-utility install- This code requires some interaction, please follow along in the terminal
- This may take a while as it is getting all the dependencies and building all the code
- This code moves the existing
~/catkin_wsand~/workspaceto~/backup/old_workspace_DD-MM-YY_hh-mm-ss
- On the Turtlebot, open a terminal and type:
roslaunch turtlebot_dabit turtlebot.launch
rosrun turtlebot_dabit rospy_hello_world.pyrosrun turtlebot_dabit rospy_opencv.py- You need to run
roslaunch turtlebot_bringup 3dsensor.launchbefore running this code
- You need to run
rosrun turtlebot_dabit rospy_example_class
rosrun turtlebot_dabit roscpp_hello_worldrosrun turtlebot_dabit roscpp_opencv- You need to run
roslaunch turtlebot_bringup 3dsensor.launchbefore running this code
- You need to run
rosrun turtlebot_dabit roscpp_pcl_examplerosrun turtlebot_dabit roscpp_publisherrosrun turtlebot_dabit roscpp_subscriber
roslaunch turtlebot_dabit arduino.launch
WORK-IN-PROGRESS
- rqt applications don't run
- I.E.
rqt_image_viewdoesn't run sudo apt remove python-qt4
- I.E.