Skip to content

Commit

Permalink
updated build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
berndpfrommer committed May 29, 2024
1 parent 82815d8 commit d1e6034
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,14 @@ builds under both ROS1 and ROS2.
Currently tested on Ubuntu 20.04 (ROS Noetic and ROS2 Galactic) and
Ubuntu 22.04 (ROS2 Humble).


## How to build
Create a ROS workspace, clone this repo, and use ``vcs``
to pull in the remaining dependencies:

```
pkg=event_camera_renderer
mkdir -p ~/$pkg/src
cd ~/$pkg
git clone https://github.com/ros-event-camera/${pkg}.git src/${pkg}
cd src
vcs import < ${pkg}/${pkg}.repos
cd ..
```

### configure and build on ROS1:

Set the following shell variables:
```bash
repo=event_camera_renderer
url=https://github.com/ros-event-camera/${repo}.git
```
catkin config -DCMAKE_BUILD_TYPE=RelWithDebInfo # (optionally add -DCMAKE_EXPORT_COMPILE_COMMANDS=1)
catkin build
```

### configure and build on ROS2:

```
cd ~/$pkg/src
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo # (optionally add -DCMAKE_EXPORT_COMPILE_COMMANDS=1)
```
and follow the [instructions here](https://github.com/ros-misc-utilities/.github/blob/master/docs/build_ros_repository.md)

## How to use

Expand Down

0 comments on commit d1e6034

Please sign in to comment.