Please follow the steps to setup the project.
This package is tested on Ubuntu 18, ROS-Melodic. We recommend you to use this OS and ROS distribution only.
- Follow the Official Installation instruction from the ROS-Melodic website. We recommend to use the following command for step 1.4. This will ensure all the basic package availability and possibly avoid any "missing packages" errors.
sudo apt install ros-melodic-desktop-fullGo to your home direcory and type the following command in the terminal
mkdir -p catkin_ws/src
cd catkin_ws
catkin_make && source devel/setup.bashyou can also add source ~/catkin_ws/devel/setup.bash at the bottom of your .bashrc in the home direcory if you want to source the the workspace by defualt
Inside your cakin_ws/src, enter the following command to clone (download) this repository.
https://github.com/namikxgithub/ar_mainpulator.gityou need to install some dependencies and packges like Moveit! and rosbridge for the project to work
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-pip ros-melodic-robot-state-publisher ros-melodic-moveit ros-melodic-rosbridge-suite ros-melodic-joy ros-melodic-ros-control ros-melodic-ros-controllers ros-melodic-tf2-web-republisher
sudo -H pip install rospkg jsonpickleAfter installing all the packages go to the workspace and do catkin_make again and you are good to go!
All set! now we can proceed with the excution part...
- First launch the UR5_AR app in your android device or enter the playmode if you are using the unity editor.
- After that launch the
ar_testlaunch file in theebot_descriptionpackage. This can be launched by the following command.
roslaunch ebot_mani ar_test.launchThis will launch the UR5 arm in Rviz and Gazebo A TCP Server will start on the ROS running device to communicate with the AR app. The joint angles are published on the
SourceDestinationtopic which are subscribed by thearm_joint_angle.pyscript in the ebot_mani package to move the arm accordingly in gazebo using moveit!
Alright! Now you can fiddle around with the joint angles in the AR app and hit publish and you will see that the Arm moves in gazbo like you set in the APP Have Fun!