Check my website out for more details: https://vigneshr2306.wordpress.com/autonomous-reconnaissance-robot-for-a-simulated-disaster-environment/
In your remote PC, do the following:
- Clone the repository into the
catkin_ws/src
. This includes the necessary packages such asturtlebot3 navigation
,turtlebot3_slam
,apriltag_ros
,explore_lite
. - Go to
catkin_ws
andcatkin_make
. - Source the ``catkin_ws
using
source devel/setup.bash```
In your Turtlebot3, do the following:
SSH
into your raspberrypi of your turtlebot from your remote PC by enteringsudo ssh ubuntu@ip_address
. Enter the password when required.- Install the
apriltag_ros
package for apriltag detection usingsudo apt install ros-noetic-apriltag-ros
- Install the
raspicamnode
package for raspberrypi camera control using the instructions fromhttps://github.com/UbiquityRobotics/raspicam_node.git
- Calibrate the camera by following the instructions from the same website.
- Source the
catkin_ws
usingsource devel/setup.bash
Run roscore
in your PC. Make sure to setup the ~/.bashrc file with the right IP address of the PC and TurtleBot3 and ROS_MASTER_URI
and ROS_HOSTNAME
as per the instructions from https://emanual.robotis.com/docs/en/platform/turtlebot3/quick-start/#pc-setup
In the Turtlebot3, do the following:
- To bringup the turtlebot, run
roslaunch turtlebot3_bringup turtlebot3_robot.launch
- To run the raspicam_node, run
roslaunch raspicam_node camerav2_1280x960_10fps.launch enable_raw:=true
- To run the apriltag detection, run
roslaunch turtlebot3_mr apriltag_gazebo.launch
In the remote PC, do the following:
- To execute the move_base node, run
roslaunch turtlebot3_navigation move_base.launch
- To execute the gmapping node, run
roslaunch turtlebot3_slam turtlebot3_slam.launch
- To execute the explore_lite frontier exploration,
roslaunch explore_lite explore.launch
- To record all the topics for future reference, run
rosbag record -a
- After exploration, save the map by running
rosrun map_server map_saver -f ~/map
- To view the output of the raspicam_node and /tag_detections node,
rqt_image_view
- Run the pose estimation script by running
rosrun turtlebot3_navigation detection.py