Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependencies.rosinstall and better installation instructions #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
# yak_ros

Example ROS frontend node for [the Yak TSDF package](https://github.com/ros-industrial/yak).
This is an example ROS frontend node for [the Yak TSDF package](https://github.com/ros-industrial/yak). This package depends on Yak, so follow the Yak installation instructions to make sure its prerequisites are satisfied before building `yak_ros`.

## Installation

### ROS Melodic

These instructions assume that you have a ROS1 Catkin workspace at `~/catkin_ws`. Modify as needed to match your environment.

Download dependendencies that need to be built from source:

```
cd ~/catkin_ws/src
git clone https://github.com/ros-industrial/yak_ros.git
wstool init .
wstool merge -t . yak_ros/dependencies.rosinstall
wstool update -t .
Comment on lines +14 to +18
Copy link
Member

@gavanderhoorn gavanderhoorn Feb 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion:

mkdir -p ~/catkin_ws
wstool init ~/catkin_ws/src https://raw.githubusercontent.com/ros-industrial/yak_ros/master/yak_ros/dependencies.rosinstall

If ~/catkin_ws/src already exists this may not work, so depending on what sort of audience you are targetting with this documentation, you could stick with your current set of instructions (but then the wstool init . could also fail).

```

Use Catkin to build the workspace:

```
cd ~/catkin_ws
catkin build
source devel/setup.bash
```

### ROS2 (Dashing and newer)

(WIP)

## Demo

This package contains a simulated image generator node and a launch file to provide a self-contained demonstration of TSDF reconstruction from streaming depth images. Currently the demo is only supported for ROS1.

The demo depends on [the gl_depth_sim package](https://github.com/Jmeyer1292/gl_depth_sim) to provide simulated depth images.
The demo depends on [the gl_depth_sim package](https://github.com/Jmeyer1292/gl_depth_sim) to provide simulated depth images. Dependencies for the demo are listed separately in `demo_dependencies.rosinstall`.

```
cd ~/catkin_ws/src
wstool merge -t . yak_ros/demo_dependencies.rosinstall
wstool update -t .
```

The demo node depends on external packages that aren't required by the core `yak_ros` node, so compilationo of the demo node is skipped by default. To build the demo, pass the `BUILD_DEMO` flag to catkin as `True`:
The demo node depends on external packages that aren't required by the core `yak_ros` node, so compilation of the demo node is skipped by default. To build the demo, pass the `BUILD_DEMO` flag to catkin as `True`:

```
catkin build --cmake-args -DBUILD_DEMO=True
Expand Down
4 changes: 4 additions & 0 deletions demo_dependencies.rosinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- git:
local-name: gl_depth_sim
uri: https://github.com/Jmeyer1292/gl_depth_sim.git
version: master
4 changes: 4 additions & 0 deletions dependencies.rosinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- git:
local-name: yak
uri: https://github.com/ros-industrial/yak.git
version: devel