Skip to content

logesh1516/Conveyor_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conveyor_simulation

Custom Conveyor simulation for ROS2 humble

This project is a simulation of a conveyor belt system, designed for use in robotic automation, industrial applications, and research purposes. The model includes features such as conveyor motion, sensors for object detection, and integration with ROS 2 and Gazebo classic.

OVERVIEW

This project is an improved version of the conveyor model developed by the IFRA (Intelligent Flexible Robotics and Assembly) Group, part of the Centre for Robotics and Assembly at Cranfield University. It integrates a realistic conveyor simulation into Gazebo and ROS 2 environments, supporting various research and industrial applications.

FEATURES

Realistic Conveyor Motion: Simulates belt movement for transporting objects. Sensor Integration: Includes IR sensors for object detection. ROS 2 Support: Compatible with ROS 2 for easy integration with robotic systems. Gazebo Integration: Fully functional in Gazebo for visualization and testing. Interactive Object Spawner: Use the summoner.py script to spawn objects dynamically.

INSTALLATION

cd ~/colcon_ws/src
git clone https://github.com/logesh1516/Conveyor_simulation.git
cd ~/colcon_ws
colcon build

SIMULATION

Basic simulation

cd ~/colcon_ws
source install/setup.bash
ros2 launch conveyor_description conveyor_model.launch.py 

Spawning Objects over the Conveyor

a) Single object

cd ~/colcon_ws
source install/setup.bash
ros2 run ros2_conveyorbelt SpawnObject.py --package "conveyor_description" --urdf "redcube.urdf" --name "redcube" --x -0.2 --y 0 --z 1
(or)
ros2 run ros2_conveyorbelt SpawnObject.py --package "conveyor_description" --urdf "bluecube.urdf" --name "bluecube" --x -0.2 --y 0 --z 1
(or)
ros2 run ros2_conveyorbelt SpawnObject.py --package "conveyor_description" --urdf "greencube.urdf" --name "greencube" --x -0.2 --y 0 --z 1

through this command only red,green and bluecubes can be spawned.

b) Multiple Object

I have created a python script to spawn multiple objects over the conveyor.

Each object can be spawned only once.

cd colcon_ws
source install/setup.bash
cd ~/src/Conveyor_simulation/ros2_conveyorbelt/python
python3 summoner.py

Simulation of the conveyor

a) Manual power input

Activate the ConveyorBelt with the desired speed -> Value = (0,100]:

cd ~/colcon_ws
source install/setup.bash
ros2 service call /CONVEYORPOWER conveyorbelt_msgs/srv/ConveyorBeltControl "{power: --}"

b) Conveyor Automation using Ir sensors

Two IR sensors are placed in the start and end position of the conveyor for the automation depending on the presence of the object.

cd ~/colcon_ws
source install/setup.bash
ros2 run conveyor_automation conveyor_automation_node

REFERENCE

About

Custom Conveyor simulation for ROS2 humble

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published