Required tools
sudo sh -c "echo 'deb http://packages.ros.org/ros/ubuntu $(lsb_release -cs) main' > /etc/apt/sources.list.d/ros-latest.list"wget http://packages.ros.org/ros.key -O - | sudo apt-key add -sudo apt-get updatesudo apt-get install python-rosdep python-catkin-tools ros-melodic-catkin python-wstool python-vcstoolROS Melodic ++
sudo apt-get install ros-melodic-desktop-fullAfter installation
Initialize rosdep
sudo rosdep initrosdep updateCreate a ROS Workspace
source /opt/ros/melodic/setup.bashmkdir -p ~/catkin_ws/srccd ~/catkin_ws/srccatkin_init_workspacecd ~/catkin_ws/catkin_makesource ~/catkin_ws/devel/setup.bashBe sure to always source the appropriate ROS setup file, e.g: add the above line to your ~/.bashrc
To make sure your workspace is properly overlayed by the setup script, make sure ROS_PACKAGE_PATH environment variable includes the directory you’re in:
echo $ROS_PACKAGE_PATHThis is the expected output:
/home/username/catkin_ws/src:/opt/ros/melodic/sharehttps://github.com/crigroup/openrave-installation
Beware of libboost version! The scripts will install libboost 1.58 which will conflict with 1.65 version
Below are installation instructions for different hardware setups, pick and install the ones that are relevant to you.
Azure Kinect Sensor SDK
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prodsudo apt-get updatesudo apt-get install libk4a1.3 sudo apt-get install libk4a1.3-devsudo apt-get install k4a-toolsOr follow this installation instruction
To test the installation, connect your Azure Kinect and run
sudo k4aviewerYou should be able to recognize the device, press "??" to start streaming.
In order to use the Azure Kinect SDK with the device and without being 'root', you will need to setup udev rules. To do so:
Copy 'scripts/99-k4a.rules' from here into '/etc/udev/rules.d/'.
Detach and reattach Azure Kinect devices if attached during this process.
Azure Kinect ROS driver
cd ~/catkin_ws/srcgit clone https://github.com/microsoft/Azure_Kinect_ROS_Driver.gitcd ~/catkin_ws && catkin_makeThe below package and instruction are still valid
https://github.com/crigroup/ensenso
sudo QT_X11_NO_MITSHM=1 ueyecameramanager
This seems to be due to new security policies on 18.04, the above temporary workaround should do the job.
error: ‘str’ is not a member of ‘boost’when compiling ensenso_grabber.cpp, probably that is because you are using new version of libboost. In that case, inserting the following into ensenso_grabber.cpp should fix the error.
#include <boost/format.hpp>std::bad_alloc issue:? different libboost versions conflict -> remove all /usr/lib/liboost* and /usr/include/boost/
Rmv build files and build again
Follow https://github.com/crigroup/robotiq to clone necessary repositories.
As you are using ROS Melodic, you will probably encounter errors with the new gazebo
The issue has been reported and temporarily fixed here https://github.com/crigroup/robotiq/issues/4#issuecomment-505989048
Or simply replace your mimic_joint_plugin.cpp file with https://drive.google.com/open?id=1FKmR92YMX1LCj7HrPY-XF7St2Ib01ILH
libpcl_keypoints.so.1.7: cannot open shared object file: No such file or directoryAs known issue when installing and running python_pcl in 18.04, but there has been limited progress on this issue
https://github.com/strawlab/python-pcl/issues/296
After so many attempts to build and fix the issue, I just gave up and decided to move to other libraries.
My recommendations:
https://github.com/intel-isl/Open3D
pip install open3d-python -U --no-cache-dir --userpip3 install open3d-python -U --no-cache-dir --userhttps://github.com/daavoo/pyntcloud
sudo apt-get install emacsDownload ".emacs" file and put it in your home folder https://drive.google.com/file/d/1aIZeQu1H0u7J1KeRKB5RGVlizgIFfqyl/view?usp=sharing
mkdir .emacs.dcd .emacs.dmkdir lispcd lispcurl -o tabbar.el https://raw.githubusercontent.com/dholm/tabbar/master/tabbar.el -o uncrustify-mode.el https://raw.githubusercontent.com/koko1000ban/emacs-uncrustify-mode/master/uncrustify-mode.el curl -o yaml-mode.el https://melpa.org/packages/yaml-mode-20200518.914.elErrors during the installation of the denso_common
If you encounter any errors
Install from source https://github.com/fsuarez6/bcap
could not convert ‘joint’ from ‘boost::shared_ptr<const urdf::Joint>’ to ‘urdf::JointConstSharedPtr {aka std::shared_ptr<const urdf::Joint>}boost::shared_ptr<const urdf::Joint>Open RC8_ros_driver.cpp and Replace
boost::shared_ptr<const urdf::Joint>with
urdf::JointConstSharedPtrIf you encounter any problems during the installations, do let me know! (: