Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isa1asn/line_following_robot_ros2
A line track follower robot with a camera sensor using ros2 and cv2
https://github.com/isa1asn/line_following_robot_ros2
cv2 numpy opencv-python python3 ros2 ros2-humble sensor xacro
Last synced: about 2 months ago
JSON representation
A line track follower robot with a camera sensor using ros2 and cv2
- Host: GitHub
- URL: https://github.com/isa1asn/line_following_robot_ros2
- Owner: Isa1asN
- Created: 2024-02-09T11:17:51.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T17:33:55.000Z (6 months ago)
- Last Synced: 2024-07-13T19:12:07.119Z (6 months ago)
- Topics: cv2, numpy, opencv-python, python3, ros2, ros2-humble, sensor, xacro
- Language: Python
- Homepage:
- Size: 33.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Line Following Robot using ROS2 and OpenCV
[YouTube video](https://youtu.be/0nfNSA2cqoE?si=NMAKeIKJ6WOGHYg-)
## Setup
Before running the robot, add the model path to the environment:
```bash
export GAZEBO_MODEL_PATH=/home/esayas/Desktop/line_follower/src/simple_robot_description/models:$GAZEBO_MODEL_PATH
```## Launch Gazebo Simulation
To launch the Gazebo simulation, use the following command:
```bash
ros2 launch simple_robot_description gazebo.launch.py
```
## View Camera FeedTo view the camera feed, run the following command:
```bash
ros2 run image_tools showimage --ros-args --remap image:=/camera1/image_raw
```
## Run Line Follower ScriptTo execute the line follower script, use the following command:
```bash
ros2 run simple_robot_description joint_commander
```