The XArmCubeTracker project integrates the XArm robotic arm with real-time cube tracking using a camera. The robotic arm is controlled to follow the movement of a cube detected in the camera's field of view. This project is implemented using ROS and requires the XArm repository.
Before using this package, make sure you have the following prerequisites installed:
- ROS (Robot Operating System)
- XArm repository
- OpenCV
- NumPy
- Clone this repository into your ROS workspace's
src
directory:git clone https://github.com/andrea2702/XArmCubeTracker.git
- Install the required dependencies:
sudo apt-get install ros-${ROS_DISTRO}-cv-bridge ros-${ROS_DISTRO}-image-transport pip install numpy opencv-python
Follow the instructions in the XArm repository to set up and control the XArm robotic arm.
Run the XarmVision script using rosrun:
rosrun XArmCubeTracker XarmVision
Place a cube in front of the camera, and the XArm will track its movement in the x and z axes.