Skip to content

u-t-autonomous/turtlebots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

turtlebots

Network Configuration:

  1. On your remote PC, run the following command:

ifconfig

Copy and make note of the remote PC's IP Address

  1. Open the remote PC's .bashrc file:

nano .bashrc

3.Add the following lines to the end of the .bashrc file if they are not already there:

export ROS_MASTER_URI=http://IP_OF_REMOTE_PC:11311

export ROS_HOSTNAME=IP_OF_REMOTE_PC

  1. Turn on turtlebot and connect it to a monitor via HDMI.
  2. Repeat steps 1-3, this time on the turtlebot, and add these lines to the .bashrc instead:

export ROS_MASTER_URI=http://IP_OF_REMOTE_PC:11311

export ROS_HOSTNAME=IP_OF_TURTLEBOT

Date and Time:

Run: timesync.sh pi@IP_OF_TURTLEBOT

SLAM:

  1. ssh into turtlebot with the following command:

ssh pi@IP_OF_TURTLEBOT

  1. On a new terminal, run the turtlebot bringup node:

roslaunch turtlebot3_bringup turtlebot3_robot.launch

  1. On a new terminal, launch SLAM:

export TURTLEBOT3_MODEL=waffle roslaunch turtlebot3_slam turtlebot3_slam.launch slam_methods:=gmapping

  1. On a new terminal, run the teleoperation node:

export TURTLEBOT3_MODEL=waffle roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch

This will allow you to control the robot with the WASD and X keys

  1. Move the robot around and a map of it's surroundings will automatically be generated

  2. To Save Map:

rosrun map_server map_saver -f ~/map

This last argument can be changed to whatever name/save location you desire.

Navigation:

  1. ssh into turtlebot with the following command:

ssh pi@IP_OF_TURTLEBOT

For the current setup(3/3/20): 192.168.0.150

  1. On a new terminal, run the turtlebot bringup node:

roslaunch turtlebot3_bringup turtlebot3_robot.launch

  1. On a new terminal, launch navigation node:

roslaunch turtlebot3_navigation turtlebot3_navigation.launch map_file:=$HOME/map.yaml

For suda's experiment, map file is suda_experiment.yaml

This last argument is the path to your map file, if you saved it somewhere else or with a different name you will need to adjust the command accordingly.

  1. Click the 2D Pose Estimate button.

  2. Click on the approxtimate point in the map where the TurtleBot is located and drag the cursor to indicate the direction the turtlebot is facing.

  3. Optionally, you can move the robot back and forth with tools like the turtlebot3_teleop_keyboard node to give the robot a better sense of it's position on the map.

  4. You should now be able to send the turtlebot navigation goals with the 2d Nav goal button at the top.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published