- Create a catkin workspace if you have not done so
$ mkdir -p ~/catkin_ws/src && cd ~/catkin_ws/src
- Clone semantic_slam
git clone https://github.com/floatlazer/semantic_slam
- (with python-catkin-tools installed) Init the catkin_ws and source devel/setup.bash
cd ~/catkin_ws
catkin init
source devel/setup.bash
-
Once done, your ROS_PACKAGE_PATH environment would have been updated with the path to your src file. To check:
printenv | grep ROS_PACKAGE_PATH
-
Install dependencies for semantic_slam with rosdep (ensure rosdep has been init and updated)
rosdep install semantic_slam
sudo apt install ros-melodic-octomap ros-melodic-octomap-msgs #replace with your distro for ros
-
Build and compile the orb_slam2 first:
chmod +x build.sh
./build.sh
- Run build on your catkin_ws root folder to build semantic_slam
catkin build semantic_slam