Skip to content

Commit

Permalink
Move example, socket_publisher and pangolin_viewer (ros/ros2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-stella committed Jul 9, 2023
1 parent 2ac5fd3 commit d2790c6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 20 deletions.
31 changes: 21 additions & 10 deletions docs/ros2_package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,34 @@ Build Instructions
mkdir -p ~/lib/stella_vslam/build
cd ~/lib/stella_vslam/build
source /opt/ros/${ROS_DISTRO}/setup.bash
USE_PANGOLIN_VIEWER=ON # ON if using Pangolin
USE_SOCKET_PUBLISHER=OFF # ON if using SocketViewer
cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER \
-DINSTALL_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER \
-DUSE_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER \
-DINSTALL_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER \
..
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
sudo make install
# When building with support for PangolinViewer
cd ~/lib
git clone -b 0.0.1 --recursive https://github.com/stella-cv/pangolin_viewer.git
mkdir -p pangolin_viewer/build
cd pangolin_viewer/build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
sudo make install
# When building with support for SocketViewer
cd ~/lib
git clone -b 0.0.1 --recursive https://github.com/stella-cv/socket_publisher.git
mkdir -p socket_publisher/build
cd socket_publisher/build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
sudo make install
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone --recursive -b ros2 --depth 1 https://github.com/stella-cv/stella_vslam_ros.git
cd ~/ros2_ws
rosdep install -y -i --from-paths ~/ros2_ws/src --skip-keys=stella_vslam
colcon build --symlink-install --cmake-args -DUSE_PANGOLIN_VIEWER=ON -DUSE_SOCKET_PUBLISHER=OFF
colcon build --symlink-install
For using USB cam as a image source, download a repository of ``demos`` and pick ``image_tools`` module.

Expand Down
31 changes: 21 additions & 10 deletions docs/ros_package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,34 @@ Build Instructions
mkdir -p ~/lib/stella_vslam/build
cd ~/lib/stella_vslam/build
source /opt/ros/${ROS_DISTRO}/setup.bash
USE_PANGOLIN_VIEWER=ON # ON if using Pangolin
USE_SOCKET_PUBLISHER=OFF # ON if using SocketViewer
cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER \
-DINSTALL_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER \
-DUSE_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER \
-DINSTALL_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER \
..
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
sudo make install
# When building with support for PangolinViewer
cd ~/lib
git clone -b 0.0.1 --recursive https://github.com/stella-cv/pangolin_viewer.git
mkdir -p pangolin_viewer/build
cd pangolin_viewer/build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
sudo make install
# When building with support for SocketViewer
cd ~/lib
git clone -b 0.0.1 --recursive https://github.com/stella-cv/socket_publisher.git
mkdir -p socket_publisher/build
cd socket_publisher/build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
sudo make install
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
git clone --recursive -b ros --depth 1 https://github.com/stella-cv/stella_vslam_ros.git
cd ~/catkin_ws/
rosdep install -y -i --from-paths ~/catkin_ws/src --skip-keys=stella_vslam
catkin_make -j -DUSE_PANGOLIN_VIEWER=$USE_PANGOLIN_VIEWER -DUSE_SOCKET_PUBLISHER=$USE_SOCKET_PUBLISHER
catkin_make -j
Examples
========
Expand Down

0 comments on commit d2790c6

Please sign in to comment.