Simulation Implementation for "Edge AI-Driven Multi-Camera System for Adaptive Robot Speed Control in Safety-Critical Environments"
ICCAS.Simulation.mp4
- Description: ROS packages for controlling the Universal Robots UR3 robotic arm.
- Source: ur3
- Description: Intel Realsense camera integration with ROS.
- Source: realsense-ros
- Source: realsense-ros-description
- Description: Real-time object detection algorithm implemented using PyTorch.
- Source: yolov5
- Segmentation Model: yolov5-segmentation
-
Clone the repository:
cd ~/catkin_ws/src git clone https://github.com/IRaC-Lab/Robot-Speed-Control.git
-
Installing Dependencies:
cd ~/catkin_ws rosinstall ~/catkin_ws/src/Robot-Speed-Control /opt/ros/noetic src/Robot-Speed-Control/ur3/dependencies.rosinstall sudo apt-get update rosdep fix-permissions rosdep update rosdep install --from-paths src --ignore-src --rosdistro=noetic -y
-
Build the packages
cd ~/catkin_ws
catkin_makeStep 1: Install the latest Intel® RealSense™ SDK 2.0
-
Register the server's public key:
sudo mkdir -p /etc/apt/keyrings curl -sSf https://librealsense.intel.com/Debian/librealsense.pgp | sudo tee /etc/apt/keyrings/librealsense.pgp > /dev/null
Make sure apt HTTPS support is installed: sudo apt-get install apt-transport-https
-
Add the server to the list of repositories::
echo "deb [signed-by=/etc/apt/keyrings/librealsense.pgp] https://librealsense.intel.com/Debian/apt-repo `lsb_release -cs` main" | \ sudo tee /etc/apt/sources.list.d/librealsense.list sudo apt-get update
-
Install the libraries (see section below if upgrading packages):
sudo apt-get install librealsense2-dkms sudo apt-get install librealsense2-utils
-
Optionally install the developer and debug packages:
sudo apt-get install librealsense2-dev sudo apt-get install librealsense2-dbg
-
Upgrading the Packages::
sudo apt-get update sudo apt-get upgrade
Step 2: Install Intel® RealSense™ ROS from Sources
-
Check Version of Package:
cd ~/catkin_ws/src/Robot-Speed-Control/realsense-ros git checkout `git tag | sort -V | grep -P "^2.\d+\.\d+" | tail -1`
-
Install ddynamic_reconfigure package:
sudo apt-get update sudo apt-get install ros-noetic-ddynamic-reconfigure
-
Build the packages:
cd ~/catkin_ws catkin_make --only-pkg-with-deps realsense2_camera -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release catkin_make --only-pkg-with-deps realsense2_camera install
cd ~/catkin_ws/src/Robot-Speed-Control/yolov5
pip install -r requirements.txtSegmentation Model: (https://github.com/ultralytics/yolov5/releases/v7.0)
roslaunch ur_gripper_gazebo ur_gripper_85_person.launchroslaunch ur_gripper_85_moveit_config start_moveit.launchIf the MoveIt package is not installed:
sudo apt update
sudo apt install ros-noetic-moveitrosrun ur_control sim_ur_control.pyWhen rosrun does not work:
(in that directory) chmod +x (your script file)cd catkin_ws/src/Robot-Speed-Control/yolov5/segment
python3 predict.py --conf 0.7rosrun realsense2_camera align_depth_to_color.pyrosrun realsense2_camera depth_distance_seg.pyWhen rosrun does not work:
(in that directory) chmod +x (your script file)Each package within this repository is distributed under its respective license. Please refer to each package's original repository for specific licensing information.