Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nrjsbudhe/autonomous-reconnaisance-using-turtlebot3
Autonomous Navigation. Mapping and Vision-Based Feature Recongnition built in ROS and impletmented on TurtleBot3 hardware
https://github.com/nrjsbudhe/autonomous-reconnaisance-using-turtlebot3
cartographer navigation raspberry-pi-3 ros slam-algorithms
Last synced: 2 months ago
JSON representation
Autonomous Navigation. Mapping and Vision-Based Feature Recongnition built in ROS and impletmented on TurtleBot3 hardware
- Host: GitHub
- URL: https://github.com/nrjsbudhe/autonomous-reconnaisance-using-turtlebot3
- Owner: nrjsbudhe
- Created: 2023-04-06T21:00:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T13:10:48.000Z (4 months ago)
- Last Synced: 2024-10-11T02:02:29.372Z (2 months ago)
- Topics: cartographer, navigation, raspberry-pi-3, ros, slam-algorithms
- Language: Makefile
- Homepage:
- Size: 1.72 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TurtleBotics Reconnaisance Project
## Introduction
In this project, we designed and implemented a completely autonomous system to perform reconnaissance in a simulated disaster environment. AprilTags were used as a proxy for victims in the simulated environment. The primary goals of this exercise were to map the unknown environment, localize the robot and accurately locate the AprilTags. A Turtlebot3 Burger was deployed to accomplish these tasks. The robot equipped with an array of sensors including LDS-01 LIDAR, a Raspberry Pi camera module V2 with Sony IMX219 8-megapixel sensor, and an IMU. Cartographer package was used to implement SLAM. To set up your turtlebot, follow the steps 3.1 to 3.3 on this [website](https://emanual.robotis.com/docs/en/platform/turtlebot3/quick-start/#pc-setup)![alt text](https://github.com/nrjsbudhe/Autonomous-Reconnaisance-using-TurtleBot3/blob/main/images/1.jpeg)
## Connect with the turtlebot
1. The robot is connected to the host PC via SSH. Ensure that the turtlebot and the host PC are connected over the same network.2. The host PC should also act as the ROS master for the system. To configure your system as the ROS master, follow the steps as below:
1. Open the bashrc on the **host PC**, and add the following lines:
`export ROS_MASTER_URI=http://{IP ADDRESS OF HOST PC}:11311``export ROS_HOSTNAME={IP ADDRESS OF HOST PC}`
2. Open the bashrc on the **turtlebot**, and add the following lines:
`ROS_MASTER_URI=http://{IP ADDRESS OF HOST PC}:11311``ROS_HOSTNAME={IP ADDRESS OF TURTLEBOT}`
## Turtlebot Bringup
3. To launch LIDAR, IMU and wheel encoder along with all rostopics, run (on **turtlebot**):
`roslaunch turtlebot3_bringup turtlebot3_robot.launch`## Camera and AprilTag Detection
4. To launch the camera and the apriltag detection node, follow the steps as below (on **turtlebot**):
1. Launch the camera
`roslaunch raspicam_node turtlebotics_camera.launch camera_frame_id:={YOUR DESIRED FRAME ID} image_topic:={YOUR IMAGE TOPIC} camera_info_topic:={YOUR CAMERA INFO TOPIC}`2. Launch the apriltag detection node
`roslaunch apriltag_ros continuous_detection.launch image_topic:={YOUR IMAGE TOPIC} camera_info_topic:={YOUR CAMERA INFO TOPIC}`
5. It is necessary that you add the camera link on your /tf topic as it is not added by default. To add your camera topic, run:
`rosrun tf static_transform_publisher 0.03 0 0.1 0 0 0 base_link camera_frame 100`## Navigation and SLAM
In this project, we have used cartographer to implement SLAM. It is necessary that you install cartographer package on your system by following the instructions on the official [website](https://google-cartographer-ros.readthedocs.io/en/latest/compilation.html#building-installation)6. Once your installation is complete, you need to update the `slam_methods` parameter to `cartographer` in `/opt/ros/noetic/share/turtlebot3_slam/launch/turtlebot3_slam.launch`
We have used explore_lite for planning and exploration of the area.
7. To install explore_lite, run:
`sudo apt install ros-${ROS_DISTRO}-multirobot-map-mergeros-${ROS_DISTRO}-explore-lite`
Cartographer launches the move_base package by default which handles the path planning of the robot. Cartographer's map is probabilistic and its values range between {-1, [0-100]}. Now, explore_lite expects an integer map [-1, 0, 1] which denotes unknown, occupied, and unoccupied space respectively. To convert the probabilistic map of cartograher into the integer map, a custom node `cartographer_remapping.py` is included in our ros package.
8. To launch the entire navigation and SLAM stack, run:
`roslaunch turtlebot3_explore_env explore_env.launch`
## Tag Tracking
Once the turtlebot is deployed in the environment, and the navigation and SLAM node is launched, it is ready to detect tags and record the position of the apriltags in the environment. To handle this procedure, a custom node `tag_tracker.py` is used. To run this node, run:`python3 tag_tracker.py`
If the system is running as expected, you should be able to see the location of the apriltags in the Rviz environment. These poses are saved into a text file on completion of the reconnaisance
## Results
You can see that the generated probabilistic map is embedded with locations of AprilTags. The accuracy of detections was estimated to be between 20 to 30 cm.
![alt text](https://github.com/nrjsbudhe/Autonomous-Reconnaisance-using-TurtleBot3/blob/b929e0bc3fa6c16fd29b685df2bd15a914ff03d3/images/Screenshot_1.jpg)